OpenTransplant
OpenTransplant copied to clipboard
Scheduling Services: (OCaml & Redis -- OCaml & Postgres)
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.
https://github.com/arenadotio/pgx
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/).
I am completely malleable, but I'm also looking for volunteers ☺️