Lurker News
With the quarantine being placed in effect in a lot of cities across the world, we all likely have a little bit more time to focus on personal projects or learning something new from the comfort of our homes. What are you guys up to these days?

Comments (1,237) 697 threads

Show all comments

Showing thread 330 of 697

kiwicopple1 reply#
I’m working on making Postgres a real-time database (like Firebase): https://github.com/supabase/realtime

At its core it’s an elixir server which listens to Postgres’s built-in replication functionality, converts the byte stream to JSON, then blasts it out over websockets.
It’s working in production at a few companies now. My next goal is to build connectors to other systems like Kafka, SQS etc

anarazel1 reply#
FWIW, the README.md says "the Phoenix server listens to PostgreSQL's replication functionality (streaming WAL)" - that makes it sound like you're actually parsing the WAL itself. But you seem to be looking at the already decoded data (using postgres' logical decoding). That's the right thing to do, please don't get me wrong. Just suggesting to clarify.
kiwicopple#
That’s right it is using logical decoding. Thanks for the tip - I’ll update the readme so it’s more exact