Supabase Realtime silently drops events Because there is no SELECT policy the replication check can pass

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.

  • Realtime reliability restored in 30 days
  • Zero dropped events under load
  • Dropped Realtime events silently filtered in production
  • Leaks Leaked channels causing connection exhaustion
  • Fine in dev Development without RLS hides the problem

How it shows up

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.

What this sprint fixes

  • A missing or incompatible SELECT policy silently blocking Realtime events
  • Leaked channels exhausting the concurrent connection limit
  • Events arriving in development but not in production

No SELECT policy passes the replication check

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.

Leaked channels exhaust the connection limit

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.

No reconnection logic for dropped connections

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.

Who it is for

Best fit when Realtime works in development but fails in production, or when events are intermittently missing.

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

Why Realtime issues are hard to debug

The events are silently dropped.

Repeated failure patterns

  • Development works perfectly because RLS is disabled, so the team never tests the RLS plus Realtime interaction
  • Dropped events produce no client error, and the subscription just never fires for rows the user cannot SELECT
  • Leaked channels build up slowly and only hit the connection ceiling under moderate concurrent load

What we do in 30 days

We diagnose the exact failures, fix the RLS configuration, repair subscription leaks, and load test past your current peak.

  1. Days 1-5: Diagnosis

    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().

  2. Days 6-14: Core fixes

    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.

  3. Days 15-24: Resilience

    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.

  4. Days 25-30: Monitoring and handoff

    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.

What you get

Reliable Realtime with every event delivered, automatic reconnection, and monitoring.

Realtime fixes

  • SELECT policies that pass the Realtime replication check (every event delivered)
  • Channel leaks fixed across all React components
  • Automatic reconnection with exponential backoff and JWT refresh

Monitoring and testing

  • Automated event-delivery test suite for ongoing verification
  • Channel and peak connection health dashboard
  • Realtime best practices guide for the development team

Why Pineido

We understand the PostgreSQL replication pipeline that Realtime is built on.

Replication-level understanding

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

Fix your Supabase Realtime in 30 days

No more dropped events.

Fixed scope, fixed price.

You leave with

  1. We build a verification script and diagnose the exact failure points within 5 days
  2. SELECT policies fixed and channel leaks repaired by day 14

Common questions, plain answers

Why does Realtime work in development but not production?

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.

Will fixing RLS for Realtime weaken security?

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.

How many concurrent Realtime connections can we handle?

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.

How do you test that Realtime events are delivered reliably?

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.

What causes subscription leaks and how do you find them?

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.

Can Realtime work with complex RLS policies involving joins?

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.

ByFounder and Imaginator

Published Updated