Post: realtime without a websocket service (Neon Functions #5)#1436
Open
bobbyonmagic wants to merge 1 commit into
Open
Post: realtime without a websocket service (Neon Functions #5)#1436bobbyonmagic wants to merge 1 commit into
bobbyonmagic wants to merge 1 commit into
Conversation
Deploying devops-daily with
|
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.