mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 09:25:06 +03:00
Clearing up the How it Works
This commit is contained in:
1 parent
d001f5992e
commit
5f3cfb6bf6
1 file changed
+6
-4
@@ -8,10 +8,11 @@ Supabase Realtime is an elixir server that allows you to listen to PostgreSQL in
|
||||
|
||||
## How it works
|
||||
|
||||
Realtime is built with [Phoenix](https://phoenixframework.org/), which is an Elixir framework that's amazing for listening via websockets.
|
||||
The Phoenix server listens to PostgreSQL's replication functionality and converts the byte stream into JSON. It then broadcasts the JSON over websockets.
|
||||
Realtime listens to PostgreSQL's replication functionality and converts the byte stream into JSON. It then broadcasts the JSON over websockets.
|
||||
|
||||
The great thing about this implementation is that you can make changes to your database from anywhere - your api, directly in the DB, via a console etc -
|
||||
It is built with [Phoenix](https://phoenixframework.org/), an Elixir framework that's incredibly scalable.
|
||||
|
||||
The great thing about this implementation 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 Realtime.
|
||||
|
||||
You can also scale the Phoenix servers without any additional load on your DB.
|
||||
@@ -33,4 +34,5 @@ Supabase Realtime is a passive listen/broadcast system. You don't use it to make
|
||||
|
||||
- You own your data. Realtime can be pointed at any PostgreSQL database that has replication enabled.
|
||||
- Build chat apps and other systems that require realtime functionality.
|
||||
- Listening to data changes on client side solves stale data problems and update collisions.
|
||||
- Listening to data changes on client side solves stale data problems and update collisions.
|
||||
- Many systems that give you realtime functionality require you to update via the same interface that the listener is on. Supabase is source agnostic. Update your database from anywhere and you'll still get the changes.
|
||||
Reference in new issue
Block a user