Supabase7 min readUpdated November 23, 2026

How Does Supabase Realtime Work?

It keeps a WebSocket open and pushes changes as they happen. The cost is connections and messages, not requests.

Supabase Realtime has three features: Broadcast for low-latency messages, Presence for who is online, and Postgres Changes for database updates. The Free plan includes 200 concurrent connections and 2 million messages; Pro includes 500 connections. Realtime is billed by concurrent connections and messages, so a chatty channel costs more than a quiet one.

Realtime has three features. Broadcast sends low-latency messages between clients, which is what you use for chat, cursor tracking, and game events. Presence tracks and synchronizes user state, which is what you use to show who is online. Postgres Changes listens to database changes and pushes them to subscribed clients.

What are the three Supabase Realtime features?

Realtime has three features. Broadcast sends low-latency messages between clients, which is what you use for chat, cursor tracking, and game events. Presence tracks and synchronizes user state, which is what you use to show who is online. Postgres Changes listens to database changes and pushes them to subscribed clients.
Broadcast is the cheapest and fastest because it does not touch the database. A cursor position does not need to be stored, so it goes straight through the channel. Postgres Changes is for state that must persist, like a new order or an updated record. Knowing which one to reach for is most of the design work. A team that routes every event through Postgres Changes pays for database writes it did not need. A team that routes persistent state through Broadcast loses it on reconnect. Match the feature to whether the event needs to survive.

How does Postgres Changes work?

Postgres Changes uses logical replication. Supabase sets up a replication slot, and when a row changes in a table you have enabled, the change is pushed to clients subscribed to that table. The client receives the new row, the old row, or both, depending on the event.
You subscribe from the client with a channel and a table filter. The subscription can be scoped to a specific row or a filter, so a client only receives the changes it cares about. That scoping is both a performance and a security concern. The cost is the replication overhead. Every change to an enabled table is processed, even if no client is subscribed. Enable replication only on the tables that need live updates, and keep the row payload small. A table with a large JSON column that changes often is an expensive thing to replicate.

How is Supabase Realtime priced?

Realtime is billed by concurrent connections and messages. The Free plan includes 200 concurrent connections and 2 million messages. Pro includes 500 concurrent connections, with messages billed beyond the included quota. A concurrent connection is a client with an open WebSocket at the same moment.
The connection count is about how many users are online at once, not how many use the app in a month. A chat app with 10,000 daily users but 300 online at peak needs 300 connections, not 10,000. The message count is about how chatty the channels are. A presence channel that broadcasts on every mouse move generates far more messages than a channel that broadcasts on a save. That is why the guidance is to use Broadcast for high-frequency events and to throttle what you send. The cheapest message is the one you do not send.

How do I scale Realtime connections?

Scaling Realtime is about managing connections and messages, not adding servers. On the client, close subscriptions when a screen unmounts. A leaked connection is a connection you pay for and a slot you cannot reuse.
On the server, scope subscriptions tightly. A client should subscribe to the rows it needs, not to a whole table. Use filters and RLS so a subscription cannot stream data the user should not see. This is both a cost control and a security control. For very high connection counts, consider whether every client needs a live connection. A dashboard that refreshes every 30 seconds does not need a WebSocket. Polling is cheaper and simpler for slow-changing data. Realtime is for the cases where the delay matters, and using it everywhere is how the connection count gets out of hand.

When should I not use Supabase Realtime?

Do not use Realtime for data that changes slowly. A settings page, a report, or a list that updates once a day does not need a live connection. Polling or a manual refresh is cheaper and easier to reason about.
Do not use it as a message queue. Realtime delivers to connected clients, and a client that is offline misses the message. If you need guaranteed delivery, write to the database and let the client read on reconnect. Realtime is a push channel, not a durable queue. Do not use Postgres Changes for high-frequency events. A cursor that moves 60 times a second should go through Broadcast, not through a database write that triggers replication. We have seen a collaborative editor route every keystroke through Postgres Changes and melt the database. The fix was to broadcast the keystrokes and persist only on save, which cut the load by orders of magnitude.

4 Tips to Get Started

1

Use Broadcast for high-frequency events like cursors. Postgres Changes is for database state, not for every keystroke.

2

Scope subscriptions with RLS. A channel that streams a whole table to every client is a data leak and a cost problem.

3

Close subscriptions when a screen unmounts. A leaked connection counts against your concurrent limit.

4

Watch the message count, not the connection count. A chatty channel burns the message quota faster than new users burn connections.

Ready to Stop Worrying About Infra?

Knowledge is the first step. Get a free 1-hour diagnostic and see where your infrastructure leaks time, money, and focus.

Sources & References

roqy.io cites authoritative sources including engineering blogs, vendor documentation, industry surveys, and academic research to ensure accuracy.

R

Ron Cohen — Founder & DevOps Engineer

Content reviewed by the roqy.io team. Our guides are based on publicly available data and cited sources above.

Disclaimer: This content is for informational and educational purposes only. It does not constitute professional advice or a guarantee of specific results. Infrastructure needs vary by team, stack, and stage. Consult a qualified engineer for advice tailored to your situation.

Frequently Asked Questions

How does Supabase Realtime work?

Realtime keeps a WebSocket open between the client and Supabase. It has three features: Broadcast for low-latency messages between clients, Presence for tracking who is online, and Postgres Changes for pushing database row changes to subscribed clients.

How much does Supabase Realtime cost?

The Free plan includes 200 concurrent connections and 2 million messages. Pro includes 500 concurrent connections, with messages billed beyond the included quota. The cost scales with connections and message volume.

What is the difference between Broadcast and Postgres Changes?

Broadcast sends messages between clients without touching the database, so it is fast and cheap for high-frequency events. Postgres Changes listens to database row changes and pushes them to subscribers, which is better for state that must persist.

Does Supabase Realtime respect row level security?

Yes, when you configure it. Realtime authorization uses RLS policies to decide which clients can subscribe to which channels and rows. Without it, a subscription can stream data a user should not see.

Get the DevOps Ecosystem Behind You

One accountable engineer. Full platform behind him. Month-to-month, no lock-in.