Skip to content

Post: realtime without a websocket service (Neon Functions #5)#1436

Open
bobbyonmagic wants to merge 1 commit into
mainfrom
post/neon-functions-realtime-without-websockets
Open

Post: realtime without a websocket service (Neon Functions #5)#1436
bobbyonmagic wants to merge 1 commit into
mainfrom
post/neon-functions-realtime-without-websockets

Conversation

@bobbyonmagic

Copy link
Copy Markdown
Collaborator

Fifth and final Functions-series post. Shows realtime fan-out with Postgres LISTEN/NOTIFY + SSE on a Neon Function, no separate websocket service. Covers the subtle serverless part (per-isolate client sets fanned via NOTIFY), the unpooled-connection gotcha for LISTEN, and the honest limits (not a durable queue, 8KB payload cap, one-way).

Tested live: deployed the realtime counter, connected two independent SSE subscribers, fired three increments, and both received every value (0,1,2,3) from the single NOTIFY. Companion repo: github.com/The-DevOps-Daily/neon-realtime-demo (function + web client, authored as bobbyonmagic).

Interactive blocks: code snippets for the LISTEN/NOTIFY/SSE core, an animated terminal of the two-subscriber run, a websocket-vs-LISTEN/NOTIFY table, a warning callout on the pooler gotcha, and a github card. OG generated, validated.

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 2, 2026

Copy link
Copy Markdown

Deploying devops-daily with  Cloudflare Pages  Cloudflare Pages

Latest commit: fb7634d
Status: ✅  Deploy successful!
Preview URL: https://9216a19e.devops-daily.pages.dev
Branch Preview URL: https://post-neon-functions-realtime.devops-daily.pages.dev

View logs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant