Good fit
- Teams where Realtime events work in dev but drop in production
- Applications hitting the concurrent peak connection limit under moderate load
- Products with real-time features (chat, notifications, live updates) that are unreliable
Your Realtime subscriptions work in development but drop events in production. The root cause: Realtime only sends a postgres_changes event to a client that is allowed to SELECT the changed row.
For teams where Supabase Realtime drops events, misses changes, or disconnects under load because of RLS conflicts and channel mismanagement. Realtime works differently than you expect. These are the specific configuration issues that cause production failures.
For postgres_changes, Realtime broadcasts a row only to clients who can SELECT it. The Realtime server reads the WAL through the supabase_realtime publication and evaluates your RLS policies as the subscribed user. If you never added a SELECT policy that user can pass, or the table is not in the publication, events are generated but silently filtered before delivery.
Your React components call supabase.channel(...).subscribe() on mount but never removeChannel on unmount, and StrictMode runs effects twice. After enough navigations you accumulate channels and connections that never close. The Free plan caps concurrent peak connections at 200; once you hit it, new joins are refused with a TooManyChannels or rate-limit error.
Realtime connections drop after network interruptions, when the server scales, or when the JWT expires and a fresh access_token is never sent on the channel. Your client does not detect the CLOSED state or re-subscribe. The UI shows stale data because the subscription died silently a while ago.
Best fit when Realtime works in development but fails in production, or when events are intermittently missing.
The events are silently dropped.
We diagnose the exact failures, fix the RLS configuration, repair subscription leaks, and load test past your current peak.
Build a verification script that inserts known events and checks delivery on the client. Confirm each table is in the supabase_realtime publication. Map RLS policies against the SELECT check Realtime runs as the subscribed user. Identify every leaked channel in the client code with getChannels().
Add or rewrite SELECT policies so they pass for the right users without weakening security, and move high-volume tables to Broadcast where it scales better. Fix the channel lifecycle in React components. Proof release: an automated test suite confirms every event is delivered.
Implement automatic reconnection with exponential backoff and refresh the access_token on the channel before the JWT expires. Add heartbeat monitoring to detect silent disconnections. Load test past your current peak.
Channel health dashboard. Alert for event delivery failures and peak connection usage. Realtime best practices guide for the team. Automated test suite handed off for ongoing verification.
Reliable Realtime with every event delivered, automatic reconnection, and monitoring.
We understand the PostgreSQL replication pipeline that Realtime is built on.
Most developers debug Realtime at the JavaScript client level. The real issue is how the WAL replication and the SELECT-based authorization check interact with your RLS policies. We fix at the source, not the symptom, and move to Broadcast when Postgres Changes will not scale.
Dropped Realtime events silently filtered in production
No more dropped events.
Fixed scope, fixed price.
Development typically runs without RLS enabled, so Realtime events flow freely. In production, Realtime only broadcasts a row to clients who can SELECT it, and checks your RLS policies as the subscribed user. With no passing SELECT policy, the subscription never fires because the event is silently dropped before it reaches your client.
No. We add or restructure SELECT policies so they pass for exactly the users who should see each row, compatible with both direct queries and Realtime, without broadening access. The security model stays the same; we just make sure the authorization check Realtime runs matches your intent.
Supabase allows 200 concurrent peak connections on Free and 500 on Pro, configurable higher on request. One browser tab uses a single connection that all its channels share, so with no leaks and shared channels this serves many concurrent users. If you need more, we tune the limits, move hot tables to Broadcast, or implement a fan-out pattern.
We build a verification script that inserts known rows and checks delivery on the client. The script measures delivery rate, latency, and ordering, and it logs getChannels() so leaks show up immediately. It runs against your staging environment with simulated concurrent users. You see exactly how many events are delivered out of how many sent.
Leaks happen when components subscribe to a channel on mount but never call removeChannel on unmount, often compounded by StrictMode running effects twice. Each leaked channel keeps holding resources. We audit every subscription in your codebase, add cleanup that returns removeChannel from useEffect, and verify with getChannels() that the channel count stays flat during normal usage.
Yes, but the SELECT policy has to be structured correctly. Realtime evaluates RLS per changed row as the subscribed user, which does not handle every join-heavy pattern well at volume. We restructure the policy, or for high-throughput tables move to Broadcast with broadcast_changes on a trigger, while maintaining the same security guarantees.
ByKostadin StambolievFounder and Imaginator
Published Updated