wiredsister / OpenTransplant

Organ Procurement Transplant System for "We, The People" developed using publicly available information about Organ Transplant & cutting edge medical research.
Apache License 2.0
41 stars 1 forks source link

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

Open wiredsister opened 3 years ago

wiredsister commented 3 years ago

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 commented 3 years ago

https://github.com/arenadotio/pgx

roddyyaga commented 3 years ago

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/).

wiredsister commented 3 years ago

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