2 ms·
It sounds like Supabase is pulling out the WAL listening bits into its own library? https://supabase.com/blog/supabase-realtime-multiplayer-general-availabilit
by cpursley 4y ago
It sounds like Supabase is pulling out the WAL listening bits into its own library?
https://supabase.com/blog/supabase-realtime-multiplayer-general-availability#extensions https://supabase.com/blog/supabase-realtime-multiplayer-gene...
If so, y'all might want to look into: https://github.com/elixir-ecto/postgrex/blob/master/lib/postgrex/replication_connection.ex https://github.com/elixir-ecto/postgrex/blob/master/lib/post...
- kiwicopple 4y agoThe database listener in this version of Realtime uses Postgrex - it's great
- cpursley 4y agoSuper! Y'all are doing amazing things. Where can I see that in the code? Or is not quite out yet?
- wenbo 4y agoWe started developing Realtime: Multiplayer version many months ago in a private repo just to experiment with Phoenix's Broadcast and Presence and over time we just added to it. We plan to move all the code over to https://github.com/supabase/realtime https://github.com/supabase/realtime in the next couple of weeks and you'll be able to see the code in its entirety.
- wenbo 4y agoWen Bo from the Supabase Realtime team here! We actually use https://github.com/supabase/walrus https://github.com/supabase/walrus to get the database changes and we're planning on moving to a Rust worker (https://github.com/supabase/walrus/tree/worker/worker https://github.com/supabase/walrus/tree/worker/worker) for better performance especially in the RLS-enabled use case. I promised José that I would check out Postgrex.ReplicationConnection and we might add it in to our Supabase Realtime some time in the future.