|
|
1 bulan lalu | |
|---|---|---|
| .. | ||
| src | 1 bulan lalu | |
| Dockerfile | 3 bulan lalu | |
| README.md | 3 bulan lalu | |
| package.json | 2 bulan lalu | |
| tsconfig.json | 3 bulan lalu | |
| turbo.json | 3 bulan lalu | |
per CLAUDE.md §7.4:
useQuery("getPosts", { userId })LISTEN channels for every table touchedNOTIFY (auto-generated triggers), recompute and push deltas to subscribed clientsstatus: Phase 1 complete (2026-05-09). wire protocol, refcounted LISTEN/UNLISTEN,
NOTIFY → re-invoke fan-out, channel diffing on touchedTables, postgres.js
v3 auto-reattach on reconnect. Caller auth is the runtime shared secret;
SDK-direct connection (per-project JWT) is a Phase 2 follow-up.
year-one scale target: 10,000 concurrent subscriptions. migrate to logical replication + WAL streaming if this becomes a bottleneck.