DEV Community

Discussion on: Quick Demo! Four months of building.

Collapse
 
mx profile image
Maxime Moreau

Hi, I love the project!

I'm curious about how superbase listen to postgresql changes. On superbase/realtime the readme, I've seen this line: "The beauty of listening to the replication functionality is that you can make changes to your database from anywhere - your API, directly in the DB, via a console etc - and you will still receive the changes via websockets.".
Do you have some informations (i.e links?) about how do superbase listens to the replication functionality? I've take a quick look of the source code and I didn't figure it out.

Thank you!

Collapse
 
supabase_io profile image
Supabase • Edited

Edison is correct! We use Postgres logical decoding - github.com/supabase/realtime/blob/...

Collapse
 
mx profile image
Maxime Moreau

Okay, thank you :)

Collapse
 
edisonywh profile image
Edison Yap

They mentioned they use WAL stream here

news.ycombinator.com/item?id=22114560