OpenTransplant icon indicating copy to clipboard operation
OpenTransplant copied to clipboard

Scheduling Services: (OCaml & Redis -- OCaml & Postgres)

Open wiredsister opened this issue 3 years ago • 3 comments

Definition of feature:

OCaml will block on read on incoming queue (named organ-intake-request-01) in Redis and will process requests via Matcher on CLI and then respond by writing to queue (named organ-tracking-cache-01) in Redis by organ-tracking-id which is a UUID.

Another scheduled program reads from organ-tracking-cache-01 and writes to Postgres by row-key UUID that is the organ-tracking-id... but no idea at this point what the naming for the Postgres table needs to be or the document name to insert.

wiredsister avatar Jan 17 '21 04:01 wiredsister

https://github.com/arenadotio/pgx

wiredsister avatar Jan 17 '21 04:01 wiredsister

https://github.com/arenadotio/pgx

Drive-by suggestion: caqti is a lot more popular than pgx for accessing Postgres (compare https://opam.ocaml.org/packages/caqti/ and https://opam.ocaml.org/packages/pgx/), I'd also shill my library for making queries nicer to write with it (https://opam.ocaml.org/packages/ppx_rapper/).

roddyyaga avatar May 28 '21 21:05 roddyyaga

I am completely malleable, but I'm also looking for volunteers ☺️

wiredsister avatar May 28 '21 21:05 wiredsister