What is Supabase Realtime? It is Supabase’s WebSocket service, which pushes database changes, Broadcast messages and Presence state to connected browsers. Updates that arrive late or never come usually trace to five causes, from a table missing from the supabase_realtime publication to the Free plan’s ceiling of 200 concurrent connections.

What is Supabase Realtime, and which of its three features is slow

Supabase Realtime is a service that keeps WebSocket connections open to your app’s clients and offers three features: Postgres Changes, which streams inserts, updates and deletes from the tables you publish; Broadcast, which sends low-latency messages between clients; and Presence, which tracks who is online. Each one slows down for different reasons.

There is no separate Supabase Realtime database to set up: Realtime streams changes from the Postgres tables your app already has. The table listener is Supabase Realtime Postgres Changes, which uses logical replication to stream changes from the database’s Write-Ahead Log (WAL) to subscribed clients. Its cost grows with every subscriber, because every change it sends is checked against each one. Broadcast and Presence carry messages your tables never store, unless you choose to send Broadcast messages from the database with a trigger.

What you seeLikely causeFirst check
No events at all, and no errorThe table is not in the supabase_realtime publicationDatabase → Publications in the dashboard, or a query on pg_publication_tables
Events arrive, then stop after a whileA background tab throttled the heartbeat and the socket droppedThe subscribe status and the heartbeatCallback status
Events arrive later as more users joinPostgres Changes authorizes each event once per subscriber, and the policy is slowThe policy’s query plan, and how many clients watch that table
The channel count keeps rising with no new usersChannels are opened and never removedsupabase.getChannels().length while moving between views
It works, then clients disconnect once traffic arrivesA plan limit on connections or messages per secondThe Realtime Reports charts and the limits table below

Pages that load slowly with no live update involved are a separate problem: slow Supabase queries and API calls have their own diagnosis, and fixing them does nothing for a channel that never connects.

Why Realtime delays matter once real users arrive

A demo has one browser, one subscriber and a handful of rows. Production has many tabs open at once, each one a subscriber, so a delay that did not exist for one user grows with every user who connects.

Audit data gives one reference point for performance in apps like these. We audited 21 third-party apps in June and July 2026, and their Performance & Scale pillar averaged 53.3 out of 100, scored on all 21. Those apps were a selected set, not a random sample, so the average describes them and is not a rate for AI-built apps in general.

If live updates are part of a launch, or part of what a first paying customer is buying, and nobody can say how the app behaves at the number of subscribers you expect, start with a free audit: a video call where we go over the live features with you and agree which delay to measure first. In our Production Hardening Sprint, our engineers simulate concurrent users, identify the first bottlenecks, fix them and rerun the workload (deliverable 9.2), and implement and test Row-Level Security or equivalent server-side scoping across all tables, with explicit rules for intentionally public data (deliverable 1.4). Hosting, paid tools and API usage are paid through your accounts, so a larger Realtime plan stays on your own bill.

Supabase Realtime not working: how to enable Supabase Realtime for a table

A Supabase Realtime subscription receives nothing until its table is in the supabase_realtime publication: the client subscribes, reports no error and gets no events. Adding the table is one toggle in the dashboard’s Publications settings or one SQL line, and every environment needs its own.

Turn it on under Database → Publications: open supabase_realtime and switch on each table the app listens to. In SQL, the first line below lists what is already published and the second adds a table.

select * from pg_publication_tables where pubname = 'supabase_realtime';
alter publication supabase_realtime add table public.messages;

Supabase’s troubleshooting guide notes that creating a table and enabling Realtime on it are two separate steps, so a table added after Realtime was first set up is easy to miss. If the table is published and some users still miss events, look at RLS next: Realtime applies the policy as the subscribing client’s role, so a row that client cannot select is never sent, and nothing errors.

By default an update event carries the new row only. To get the previous values on update and delete events, set the table’s replica identity to full.

alter table public.messages replica identity full;

Supabase’s Postgres Changes docs add two limits. RLS policies are not applied to DELETE statements, because Postgres has no way to verify that a user has access to a deleted record, and delete events can be filtered only on a table whose replica identity is full.

The publication and the policies are database objects, so a table published in one project is not published in another. That drift between environments is the usual story behind an app that works locally only.

How fast should Supabase Realtime be? Latency benchmarks and how to measure it

Supabase benchmarks Realtime per feature, and Postgres Changes gets an estimator instead of one number, because its throughput depends on the database’s compute size, the client count and RLS. A delay is abnormal only against a benchmark of the same feature under similar load, read as median and p95 from your own samples.

Five of the rows on Supabase’s Realtime benchmarks page:

Feature (Supabase’s test)Concurrent usersThroughputMedianp95p99
Broadcast over WebSockets32,000224,000 msgs/sec6 ms28 ms213 ms
Broadcast, 1 KB payload4,00028,000 msgs/sec13 ms36 ms85 ms
Broadcast, 10 KB payload4,00028,000 msgs/sec16 ms42 ms93 ms
Broadcast from the database80,00010,000 msgs/sec46 ms132 ms159 ms
Realtime Authorization50,000over 150,000 msgs/sec19 ms49 ms96 ms

Benchmarks checked 2026-10-21. Supabase runs them with k6 against a Realtime cluster on AWS and notes that performance in production may vary. Postgres Changes has no row in that table. The page explains why: every change is checked against each subscriber, and if the database cannot authorize the changes fast enough, they are delayed until the client receives a timeout.

Supabase latency for a database query and Realtime delivery delay are different measurements. The 13 ms and 16 ms medians on that page belong to the Broadcast tests with 1 KB and 10 KB payloads, not to a database benchmark.

To measure your own delay, log the status the subscribe callback reports and the gap between the row’s created_at and the moment the event arrives. The snippet follows Supabase’s JavaScript reference and assumes the table sets created_at with a database default; it was not run for this page.

const channel = supabase
  .channel('messages-latency')
  .on('postgres_changes', { event: 'INSERT', schema: 'public', table: 'messages' }, (payload) => {
    const delayMs = Date.now() - new Date(payload.new.created_at).getTime();
    console.log('delay_ms', delayMs);
  })
  .subscribe((status, err) => {
    // SUBSCRIBED, TIMED_OUT, CLOSED or CHANNEL_ERROR
    console.log('realtime status', status, err);
  });

Collect samples over a named workload and read the median and the p95, not one event; the tail is where users feel it, and p95 and p99 latency explains how to read it. Browser and database clocks are not aligned, so treat the number as a trend between runs, not a certified figure. If the status never reaches SUBSCRIBED, the problem is the connection, not latency. Even SUBSCRIBED only means the WebSocket connected; it says nothing about whether the client may see the row.

The Realtime Reports charts, under Project Settings > Product Reports > Realtime, narrow the fault. Connected Clients and Postgres Changes Events are on every plan; Broadcast from Database Replication Lag and the two Private Channel Subscription RLS Execution Time charts need Pro, Team or Enterprise. Those RLS charts time the policies on realtime.messages that Realtime checks when users join or publish to private channels, not the policy on a table you watch through Postgres Changes.

Why postgres_changes gets slower as more users connect

Postgres Changes slows as users connect because it authorizes every event against each subscriber, so one change watched by 100 users means 100 checks. Changes are also processed on a single thread to preserve their order, so a larger compute add-on does not meaningfully raise throughput.

Those 100 checks are Supabase’s own example, and its docs draw the conclusion: throughput scales with the number of subscribers, not the write rate. The billing follows the same shape, since each database change counts as one message per client that listens to it.

The first lever is payload filtering on the server. Postgres Changes filters (room_id=eq.42 and the like) are evaluated by Realtime before sending, so filtered-out events never leave the database, and a column list shrinks each payload while the primary key is always included. The second lever is the policy itself, because RLS per subscriber means a slow policy is paid once for every client on every change. Supabase’s advice is to keep authorization cheap with indexed policies and to run your own benchmarks.

What a policy on a published table covers, and what it leaves open, is set out in what RLS covers in Realtime and Storage. The policy’s own plan can be read with EXPLAIN, using the steps in how to analyze a Postgres query.

Make the RLS policy cheap

Supabase’s RLS performance guide times its fixes on a 100K-row table. Four of them apply to a table that Realtime watches.

  1. Index the column the policy filters on, when it is not already a primary key or unique. In the guide’s test, 171 ms fell to under 0.1 ms, and it reports gains over 100x on large tables.
  2. Wrap auth.uid() as (select auth.uid()), so Postgres caches the result instead of calling the function on each row: 179 ms fell to 9 ms. The guide allows this only when the result does not change with the row’s data.
  3. Add to authenticated. Anonymous requests are then turned away before the rest of the policy runs (170 ms to under 0.1 ms for anon access); the guide says this does not speed up the signed-in user’s query.
  4. Move a lookup on another table into a security definer function, such as the guide’s has_role(), so the policy skips that table’s own RLS, and call it as (select has_role()). The guide times only the wrapping: the same function unwrapped took 178,000 ms, wrapped 12 ms. Keep that function out of any schema exposed through the Data API, where Supabase’s RLS docs say it would be callable with its creator’s privileges.
-- Before: auth.uid() runs per row, no role, no index
create policy "read own messages" on public.messages
  for select using (auth.uid() = user_id);

-- After
create index messages_user_id_idx on public.messages using btree (user_id);
drop policy "read own messages" on public.messages;
create policy "read own messages" on public.messages
  for select to authenticated
  using ((select auth.uid()) = user_id);

The guide’s timings are query benchmarks, not Realtime ones. They matter here because the same policy runs once per subscriber for each change, so a few milliseconds saved on one query is saved again for every client watching. Indexes on joined tables, IN and ANY rewrites and how to measure each change are in the full set of RLS performance techniques.

Subscription patterns that make Realtime slow

Five client-side habits turn a quiet demo into a busy socket:

PatternWhat it costsSafer default
Subscribe to the whole table and filter in the clientEvery change is authorized and sent to every subscriber, and each one counts as a messageA server-side filter and a column list on the subscription
Postgres Changes for typing indicators or live view countsEach update is a table write, then one check per subscriberBroadcast for high-frequency updates; Presence for slow-changing state
One channel per row or per componentMore joins against the joins-per-second limit, and the limit of 100 channels per connectionOne channel per resource the user is looking at
Subscribe on mount and never unsubscribeChannels pile up until ChannelRateLimitReachedRemove the channel in the effect’s cleanup
An effect that runs twice in developmentA second listener on the same channel, or an error on the second runA cleanup function, which StrictMode then exercises

One WebSocket connection can carry many channels, so channel count and socket count are different measurements. Supabase’s TooManyChannels guide also says to create the Supabase client once, outside any component, and its main fix is a cleanup that runs when the component unmounts or its inputs change.

// Leaks: each room the user visits keeps its channel open
useEffect(() => {
  supabase
    .channel(`room-${roomId}`)
    .on('postgres_changes', { event: 'INSERT', schema: 'public', table: 'messages', filter: `room_id=eq.${roomId}` }, onMessage)
    .subscribe();
}, [roomId]);

// Cleaned up: the old channel is removed before the next one opens
useEffect(() => {
  const channel = supabase
    .channel(`room-${roomId}`)
    .on('postgres_changes', { event: 'INSERT', schema: 'public', table: 'messages', filter: `room_id=eq.${roomId}` }, onMessage)
    .subscribe();
  return () => {
    supabase.removeChannel(channel);
  };
}, [roomId]);

The same cost appears outside Realtime. In our June and July 2026 audits, a CRM’s decorative cursor trail forced React to re-render many times a second on every open tab, forever, even when nobody touched the app. Work that runs per open tab with no stop condition costs nothing in a demo and grows with every tab in production, and a channel that is never removed is the same kind of cost.

To check for a leak, log supabase.getChannels().length, move back and forth between the views that subscribe, and confirm the count returns to where it started. Supabase’s guide reads a count that climbs while navigating as a leak.

Duplicate updates: React StrictMode subscribes twice

React’s StrictMode runs one extra setup and cleanup cycle for every Effect in development only. Without a cleanup function, the first subscription is never undone, and the second run gets the same channel back from the client: a Broadcast listener is added twice and handles each event twice, while adding a postgres_changes listener to the already subscribed channel throws an error. A cleanup that removes the channel usually fixes it, and Supabase’s guide to the TooManyChannels error names StrictMode next to other causes, among them components that never unsubscribe, effects with missing dependencies, and a client recreated on every render. Duplicates that still appear in a production build come from somewhere else, because StrictMode’s checks do not run there. A likely source is two components that subscribe to the same table; give each resource one owner.

Realtime does nothing in a server component

In the Next.js App Router, pages and layouts are Server Components by default and render on the server. Effects and browser-only APIs belong in Client Components. A Realtime subscription needs a browser that keeps its WebSocket open, so code that subscribes during a server render leaves nothing listening in the user’s tab. Move it into a component with 'use client' at the top of the file, inside an effect, and pass the first rows from the server component down as props.

postgres_changes vs Broadcast: which one your app should use

Broadcast suits many clients watching the same changes: it sends each change once and fans it out, where Postgres Changes authorizes every subscriber separately. Supabase’s guidance is to move to Broadcast once you expect over roughly 3,000 clients subscribed at the same time to the same changes.

postgres_changesBroadcast
What it is forListening to inserts, updates and deletes on published tablesLow-latency messages between clients, or database changes sent by a trigger
How it scalesOne authorization check per subscriber per change, on a single threadEach change sent once and fanned out to all subscribers
Where the load landsThe database, which authorizes each change for each subscriberThe Realtime service; from the database, one row in realtime.messages per change
When to switchSupabase says it is plenty for most applicationsMore than about 3,000 concurrent subscribers on the same changes

Broadcast from the database takes more setup. You write a trigger function that calls realtime.broadcast_changes(), attach a trigger to the table, and add an RLS policy on realtime.messages so users may receive the messages, since database broadcasts are private by default. Those messages are stored in realtime.messages and deleted after 3 days. Postgres Changes needs only the publication, and Supabase calls its throughput plenty for most applications.

Cursors, typing indicators and live view counts belong on Broadcast, with Presence kept for slow-changing state such as who is online; Supabase’s error reference gives the same split. If the ceilings themselves are the reason to look elsewhere, weigh what replacing Supabase would involve first.

Is Supabase Realtime free? Connection and message limits by plan

Supabase Realtime is included on the Free plan with lower ceilings: 200 concurrent connections and 100 messages a second, against 500 of each on Pro. Exceeding the message rate disconnects clients with a tenant_events error, and supabase-js reconnects once throughput falls below the plan limit.

Six of the rows in Supabase’s published Realtime limits:

LimitFreeProPro, no spend capTeamEnterprise
Concurrent connections20050010,00010,00010,000+
Messages per second1005002,5002,5002,500+
Channel joins per second1005002,5002,5002,500+
Channels per connection100100100100100+
Broadcast payload size256 KB3,000 KB3,000 KB3,000 KB3,000+ KB
Postgres change payload size1,024 KB1,024 KB1,024 KB1,024 KB1,024+ KB

Limits checked 2026-10-21. Supabase says all of these are configurable per project, and beyond the Free and Pro plans you can ask support to raise them.

Usage is metered two ways. Realtime Messages count each database change once per listening client and each Broadcast once sent plus once per receiver; the quota is 2 million a month on Free and 5 million on Pro and Team, then $2.50 per million, billed on Team and on Pro with the spend cap off. Realtime Peak Connections bill the highest concurrent count in the cycle; the quota is 200 on Free and 500 on Pro and Team, then $10 per 1,000 on the same terms. The plan fees themselves are set out in what each Supabase plan costs.

Two other ceilings sit near these and are not Realtime’s. Clients reach Realtime over WebSockets, while Realtime itself opens its own pools of database connections, sized by your compute add-on, so watch the database’s own connection limit as a separate number. And Supabase bills the data Realtime pushes to subscribed clients as Realtime Egress, so what Realtime messages add to egress is a third number to watch.

Updates stop after a while: the backgrounded tab dropped the socket

Browsers often slow down JavaScript timers in a background tab. The Realtime client can then miss its heartbeats, the server assumes the client has gone, and, in the words of Supabase’s guide to silent disconnections, “the WebSocket connection can silently drop”. The user returns to a screen that looks live and is not.

The guide gives two fixes and strongly recommends using both: worker: true moves the heartbeat to a Web Worker, which browser throttling generally affects less, and a heartbeatCallback reconnects when the status turns disconnected. On a client made with createClient, the reconnect method lives on client.realtime.

const client = createClient(SUPABASE_URL, SUPABASE_KEY, {
  realtime: {
    worker: true,
    heartbeatCallback: (status) => {
      if (status === 'disconnected') {
        client.realtime.connect();
      }
    },
  },
});

Supabase also states that Realtime does not guarantee every message gets delivered. Where a missed update matters, treat each event as a signal to re-fetch the current state rather than as the only copy of it.

Realtime error messages and what they mean

Supabase’s Realtime error codes and its troubleshooting guides explain each message:

MessageWhat it usually means
TIMED_OUTOften a mismatch between the realtime-js inside supabase-js and Node.js older than v22; upgrading Node.js to the latest LTS release is one documented fix, setting the WebSocket transport explicitly the other. A slow private-channel policy can also make a join time out
CHANNEL_ERRORThe channel failed to join or hit an error; log the err argument for the reason. On a private channel, a missing RLS policy for the join or a bad JWT is a common cause
TooManyChannels (ChannelRateLimitReached)The app created more channels than allowed, usually channels that are never cleaned up
ClientPresenceRateLimitReachedOne client sent Presence updates too often and its channel was closed; use Broadcast for high-frequency updates or throttle track() calls
tenant_eventsThe project is generating too many messages per second, so connections are disconnected; supabase-js reconnects when throughput drops below the plan limit
Concurrent Peak Connections quotaThe most simultaneous Realtime connections; 100 users connected to one chat channel are 100 concurrent peak connections

To reproduce an error and share the connection details with Supabase support, the limits page points to the Realtime Inspector.

How to check your own app: a Realtime load test with a fixed subscriber count

A Supabase Realtime setup is proven by a load test that holds a named number of subscribers on one channel, writes at a fixed rate, and records delivery delay at median and p95, error statuses and dropped connections, before and after each fix.

Run the six checks in order and keep the evidence each one names:

  1. 01 The publication lists every table the app subscribes to, in the production project. Keep the query result with its date.
  2. 02 Open the number of clients you expect on one channel, with a load tool or many browser tabs for a small test. Keep the Connected Clients chart for the run.
  3. 03 Write at a fixed rate for a fixed duration and log delay_ms for every event. Keep the median and the p95.
  4. 04 Record every status other than SUBSCRIBED and every disconnect, with the time it happened.
  5. 05 Move between the subscribed views many times and confirm the channel count returns to its starting value. Keep the before and after counts.
  6. 06 Change one thing, the policy or the subscription, then rerun the identical test. Keep both results side by side.

Write the workload down before the first run: clients, channel, write rate, duration and plan. A second run is only comparable when those match. Tools, scripted user journeys and ramp-up are covered in how to run a load test; the wider performance picture is in web performance optimization for an AI-built app.

Deliverable 9.2 of our sprint is verified the same way: we report the workload, duration, environment, concurrency, latency and error rate before and after changes. The six checks are that report applied to one Realtime channel.

Common questions about Realtime delays and row level security

In Supabase Realtime, when RLS is enabled and a table’s replica identity is set to full, what information do subscribers receive for delete operations?

Subscribers receive a delete event whose old record holds only the primary key: Supabase’s Postgres Changes troubleshooting guide says replica identity full is not enough by itself on a table with RLS, and there is no way around it while RLS is on. The policy cannot screen the delete itself either: Supabase’s Postgres Changes docs say Postgres has no way to check a user’s access to a record that no longer exists. So do not rely on other payload.old fields on a policy-protected table; use the key to update the screen or re-fetch what you need.

Should I enable row level security?

Yes. Supabase’s docs say to enable RLS on every table in an exposed schema, because without it the table is readable and writable by any role with a grant on it. The steps for each table are in how to enable RLS on every table. On a table you publish to Realtime, the policy also decides which subscribers receive each change, which is why its cost multiplies with the number of subscribers.

What does “realtime database” mean?

A realtime database is one whose changes reach connected clients as they happen, without the client asking again on a timer. Firebase sells a product by that name, Firebase Realtime Database. On Supabase the same result comes from ordinary Postgres tables plus Realtime’s Postgres Changes.

When should a team get help with Supabase Realtime delays?

Get help when the delay grows with each new user, when nobody on the team can reproduce it on demand, or when a launch depends on live features working at the expected user count. At AxonBuild we talk through the symptoms and the user numbers you expect with you in a free audit, and you leave with a short list of what to look at.