The best realtime database depends on the kind of app. Firebase is still the default for offline-first mobile sync. Supabase is the strongest Postgres option with published limits. Convex is best if you want reactive TypeScript queries, Appwrite if you want realtime events from every service plus a presence API, and PocketBase if you want one self-hosted binary. WoWSQL fits teams that want Postgres change events, broadcast and presence on flat plans ($0, $25, $99) with regions in Mumbai, US East and Frankfurt.
This guide compares the six on data model, transport, presence and broadcast, limits and pricing, then shows how to build a chat-style feature with WoWSQL Realtime. All vendor facts were checked on each vendor's own docs or pricing page on 23 November 2026.
Key facts
- Three kinds of "realtime database": synced data stores (Firebase), change feeds on top of a database (Supabase, WoWSQL, Appwrite, PocketBase), and reactive query engines (Convex).
- Firebase Realtime Database: 100 simultaneous connections on the free Spark plan, 200,000 per database on Blaze; $5/GB stored and $1/GB downloaded beyond the free quota (pricing, limits).
- Supabase Realtime: Broadcast, Presence and Postgres Changes; 200 concurrent connections on Free, 500 on Pro (limits).
- WoWSQL Realtime:
wss://<project>.wowsqlconnect.com/realtime/v1/websocket?apikey=…; INSERT, UPDATE and DELETE events plus broadcast and presence; enable a table first withPOST /realtime/v1/enable; payloads capped at 64 KiB (realtime docs).- WoWSQL plans (pricing): Realtime APIs are listed on Free $0, Pro $25/month and Scale $99/month. WoWSQL does not publish a concurrent-connection limit.
What "realtime database" actually means
People use the phrase for three different designs, and the difference matters more than any benchmark.
- Synced data stores. The client SDK holds a local copy and the server keeps it in sync. Firebase Realtime Database stores data "as JSON and synchronized in realtime to every connected client", and Cloud Firestore does the same with documents and listeners. Offline support is built in.
- Change feeds over a database. The database is the source of truth, and a realtime service pushes "row inserted / updated / deleted" events over a WebSocket or Server-Sent Events. Supabase, WoWSQL, Appwrite and PocketBase work this way. You keep SQL or a normal query API and add live updates where you need them.
- Reactive queries. You write query functions, and the platform re-runs them and pushes new results whenever the underlying data changes. Convex is the main example.
Most apps also need two non-database features: broadcast (send a short-lived message such as "Alex is typing" without storing it) and presence (who is online right now).
The 6 compared (23 November 2026)
| Model | Transport | Broadcast / presence | Free tier realtime | Paid entry | |
|---|---|---|---|---|---|
| Firebase (RTDB, Firestore) | JSON tree (RTDB) or documents (Firestore), synced to clients | Firebase SDKs | Build presence yourself (RTDB has an onDisconnect pattern) |
RTDB: 100 connections, 1 GB stored, 10 GB/month downloaded | Blaze pay as you go |
| Supabase | Postgres + Realtime service | WebSocket | Broadcast and Presence built in | 200 connections, 2M messages/month, 256 KB messages | Pro from $25 + compute |
| Convex | Reactive document database with TypeScript functions | WebSocket (Convex client) | Build on reactive queries | Free & Starter: 1,000 concurrent sessions | Professional $25 per developer/month |
| Appwrite | Appwrite databases + events from all services | WebSocket | Presences API built in | 250 connections, 2M messages | Start from $10, Pro from $25 |
| PocketBase | SQLite in one self-hosted binary | Server-Sent Events | Not built in | Self-hosted; your server's limits | Free and open source (MIT) |
| WoWSQL | Postgres + Realtime service | WebSocket | Broadcast and presence built in | Listed on Free; no published connection limit | Pro $25, Scale $99 |
Sources: Firebase pricing, Firestore billing for listeners; Supabase Realtime, Supabase pricing; Convex pricing; Appwrite Realtime, Appwrite pricing; PocketBase realtime API; WoWSQL realtime docs.
Firebase: the offline-first default
Firebase offers two realtime databases. Realtime Database (RTDB) is a single JSON tree with very low-latency sync and the most mature offline behaviour. Its limits are well documented: 200,000 simultaneous connections per database (100 on the free Spark plan), about 1,000 writes per second per database, and a maximum path depth of 32. To go further you shard across multiple databases. On Blaze you pay $5/GB stored and $1/GB downloaded beyond the free quota.
Cloud Firestore is the newer document database with richer queries. Its listeners are realtime too, but billing is per document: "you are charged for a read each time a document in the result set is added or updated", and a listener that reconnects after 30 minutes offline is billed like a fresh query.
Choose Firebase for mobile apps that must work offline and sync later, especially if you already use Google's tools. Watch out for data modelling without joins, and listener costs on busy collections.
Supabase: Postgres with broadcast and presence
Supabase Realtime has three features: Broadcast for low-latency client messages, Presence for online state, and Postgres Changes for database events. It publishes clear limits per plan: on Free, 200 concurrent connections, 100 messages per second and 256 KB broadcast payloads; on Pro, 500 connections with a spend cap, 10,000 without one, and 3,000 KB payloads. Pro includes 5 million messages a month, then $2.50 per million, and extra peak connections cost $10 per 1,000.
Choose Supabase if you want SQL, Row Level Security and realtime in one place, with the largest Postgres BaaS ecosystem. Watch out for Postgres Changes payloads: once a record exceeds the limit, fields over 64 bytes are dropped from the payload.
Convex: reactive queries in TypeScript
Convex is a "reactive database". Your queries are TypeScript functions on the server, and clients subscribed to a query get new results automatically when the data they read changes. There's no separate change feed to wire up, which makes it very productive for collaborative UIs. The Free & Starter plan includes 1,000 concurrent sessions and 0.5 GB of database storage; Professional is $25 per developer per month with 10,000 concurrent sessions and 50 GB. The backend is source-available under FSL-1.1-Apache-2.0 and can be self-hosted.
Choose Convex for collaborative, state-heavy apps built by TypeScript teams. Watch out for lock-in: data and logic live in Convex's model, not SQL.
Appwrite: realtime across every service
Appwrite Realtime pushes events from all Appwrite services over one WebSocket: row changes, file uploads and account events, on channels such as files or a specific table. It now has a full Presences API: records with a status, optional metadata and an expiry, which fire upsert, update and delete events and clean themselves up. The pricing page lists 250 concurrent connections and 2M messages a month on Free, and 500 connections and 6M messages on Pro, with extra connections at $5 per 1,000.
Choose Appwrite if you want realtime for files and auth as well as data, and an easy self-hosting path. Watch out for region choice: Appwrite Cloud has no India or UK region yet.
PocketBase: one binary, self-hosted
PocketBase is an open-source (MIT) backend in a single file, built on SQLite. Its realtime API uses Server-Sent Events: clients subscribe to a whole collection or one record and get create, update and delete events, filtered by the collection's list or view rules. Idle connections get a disconnect signal after 5 minutes and the SDK reconnects.
Choose PocketBase for internal tools, prototypes and small apps on a single server. Watch out for scaling: one SQLite-backed server, and you run it yourself.
WoWSQL: Postgres change events, broadcast and presence
WoWSQL Realtime runs next to your Postgres database. The realtime docs list three things: subscribe to INSERT, UPDATE and DELETE events on enabled tables, send broadcast messages on named channels, and track presence. It uses the same anon or service key as the REST API, passed as ?apikey= because browsers can't set WebSocket headers.
What the docs say, plainly:
- Enable each table before Postgres change events flow:
POST /realtime/v1/enablewith{"schema_name":"public","table_name":"messages"}. Broadcast and presence don't need a table or trigger. - Payloads are capped at 64 KiB.
- Close codes: a missing key closes the socket with 4001 and an invalid key with 4003. Don't reconnect on 4003.
- Filtering: SDK 3.10.0 filters by schema, table and event type. Filter rows in your callback if you need more.
What's not published: WoWSQL doesn't list concurrent-connection or message limits on its pricing page, and we don't quote latency figures. Measure with your own traffic, from the region your users are in.
Build a chat feature with WoWSQL Realtime
A chat screen needs all three features: new messages (Postgres changes), typing indicators (broadcast) and an online list (presence).
Step 1: Create the table and enable realtime
Create a project at app.wowsql.com/signup in the region closest to your users, then create a table:
create table public.messages (
id uuid primary key default gen_random_uuid(),
room text not null,
user_id uuid not null,
body text not null,
created_at timestamptz not null default now()
);
Enable change events once, from a setup script or server rather than app code:
curl -X POST "https://myproject.wowsqlconnect.com/realtime/v1/enable" \
-H "apikey: $WOWSQL_SERVICE_KEY" \
-H "Content-Type: application/json" \
-d '{"schema_name":"public","table_name":"messages"}'
Step 2: Subscribe to new messages and typing events
This follows the TypeScript SDK docs for @wowsql/sdk 3.10.0:
import WowSQLClient from '@wowsql/sdk'
const client = new WowSQLClient({
projectUrl: 'myproject', // → https://myproject.wowsqlconnect.com
apiKey: 'wowsql_anon_your_key_here',
})
const channel = client.realtime.channel('chat')
channel
.on('postgres_changes', { event: 'INSERT', schema: 'public', table: 'messages' }, (payload) => {
console.log('New message:', payload.new)
})
.on('broadcast', { event: 'typing' }, ({ payload }) => {
console.log('typing', payload)
})
.subscribe()
// Ephemeral: no row is stored
await channel.send({ type: 'broadcast', event: 'typing', payload: { user: 'Alice' } })
Step 3: Show who is online
Presence uses track() and presenceState() on a channel, both part of the published 3.10.0 package, as on the WoWSQL realtime page:
const room = client.realtime.channel('online-users')
room.on('presence', { event: 'sync' }, () => {
const state = room.presenceState()
console.log('Online now:', Object.keys(state).length)
})
room.subscribe(async (status) => {
if (status === 'SUBSCRIBED') {
await room.track({ user_id: currentUser.id, online_at: new Date().toISOString() })
}
})
Step 4: Secure it
- Writes go through the REST API with RLS. Insert messages with the signed-in user's token in
Authorizationand the anon key inapikey, and add an RLS policy souser_idmust equalauth.uid(). See What is Row Level Security?. - Treat broadcast and presence channels as open to anyone holding your anon key. The SDK notes that anyone who can connect may listen and send on channels they have joined. Don't put private data in broadcast payloads, and use hard-to-guess channel names for private rooms.
- Test what change events expose. Before enabling realtime on a table with sensitive columns, check what a client with the anon key actually receives. If in doubt, stream from a table that only holds non-sensitive fields.
For the theory behind this (LISTEN/NOTIFY vs logical replication), read Postgres realtime subscriptions over WebSockets, explained.
Which realtime database for which app?
| Use case | Strong picks | Why |
|---|---|---|
| Chat app | Supabase, WoWSQL, Appwrite | Messages in a table, typing via broadcast, presence built in |
| Offline-first mobile | Firebase | Mature local cache and sync |
| Collaborative editor or whiteboard | Convex, Supabase | Reactive queries, or broadcast for cursors |
| Live dashboard | Supabase, WoWSQL | SQL aggregates plus change events |
| Internal tool on one server | PocketBase, WoWSQL self-hosted | Single box, simple ops |
| Notifications on file uploads | Appwrite | Realtime events for storage, not just data |
Where others are better than WoWSQL
- Published limits. Supabase, Appwrite, Convex and Firebase publish connection and message quotas. WoWSQL doesn't yet, so load-test before a big launch.
- Offline sync. Firebase's offline cache is far more mature than any change-feed approach.
- Row-level event filters. WoWSQL's SDK filters by table and event type only.
- Larger payloads. Supabase Pro allows broadcast payloads up to 3,000 KB; WoWSQL caps payloads at 64 KiB.
- Ecosystem. Supabase and Firebase have many more realtime examples and UI components.
WoWSQL's case is simpler: Postgres as the source of truth, realtime included on every plan, flat pricing, and regions in Mumbai, US East and Frankfurt. Each client project gets its own database and scales within its own plan limits.
Related guides
- WoWSQL vs Firebase: Postgres or Firestore for your app?
- Postgres realtime subscriptions over WebSockets, explained
- Supabase vs Firebase (2026)
- Appwrite vs Supabase (2026)
- Connect Claude to your Postgres database with MCP
FAQ
What is the best realtime database for apps in 2026?
It depends on the app. Firebase is best for offline-first mobile sync, Supabase for Postgres with broadcast and presence, Convex for reactive TypeScript queries, Appwrite for realtime events across all services, PocketBase for a single self-hosted binary, and WoWSQL for Postgres change events, broadcast and presence on flat plans from $0.
What is a good Firebase Realtime Database alternative?
If you want SQL instead of a JSON tree, Supabase and WoWSQL both stream Postgres INSERT, UPDATE and DELETE events over WebSockets, with broadcast and presence. Convex suits teams that want reactive queries in TypeScript. Firebase remains stronger for offline-first sync.
Which realtime database is best for a chat app?
A Postgres backend with realtime works well: store messages in a table, subscribe to INSERT events, send typing indicators with broadcast and show online users with presence. Supabase, WoWSQL and Appwrite all provide those pieces. Protect message writes with Row Level Security or permissions.
Postgres realtime vs Firestore listeners: what's the difference?
Postgres realtime streams change events from tables you enable, while your data stays relational and queryable with SQL. Firestore listeners keep a query result in sync on the client with offline support, but Firestore charges a document read each time a document in the result set is added or updated.
Does WoWSQL support realtime?
Yes. WoWSQL Realtime streams INSERT, UPDATE and DELETE events from enabled tables, plus broadcast and presence, over wss://
How many realtime connections do I get on WoWSQL?
WoWSQL's pricing page lists Realtime APIs on every plan but doesn't publish a concurrent-connection or message limit as of 23 November 2026. If you expect heavy realtime traffic, load-test on Pro or Scale and contact support. Supabase, Appwrite and Firebase all publish connection quotas.