Repository navigation
spike: Hold a Neon LISTEN session over a Preview SSE stream - #4194
Closed
sentry-junior[bot] wants to merge 6 commits into
Closed
sentry-junior[bot] wants to merge 6 commits into
sentry-junior[bot] wants to merge 6 commits into
Conversation
Throwaway spike for #3776. Do not merge. Co-Authored-By: BYK <[email protected]>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This comment has been minimized.
This comment has been minimized.
Previews have no Junior secrets, so skip junior upgrade and createApp there. Co-Authored-By: BYK <[email protected]>
Previews have no Junior secrets, so they build only the spike routes, without juniorNitro or junior snapshot create. Co-Authored-By: BYK <[email protected]>
nitro.config.ts imports @sentry/junior/nitro, so its dist must exist. Co-Authored-By: BYK <[email protected]>
This branch was successfully deployed
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.
Throwaway spike for #3776. Do not merge. It is closed when the spike ends.
It proves whether one Vercel function can hold a Postgres
LISTENsession on the direct (non--pooler) Neon endpoint for a full SSE stream and getNOTIFYfrom another connection.apps/example/spike-versions-listen.tsadds three GET routes in front of the example app. They run only whenVERCEL_ENVispreview, and every other environment gets a 404. Vercel deployment protection gates the Preview URL./__spike/versions-listen/stream:LISTENonjunior_spike_versions_listenover the direct URL. Streams each notification as SSE, runsSELECT 1every 15 s with a 5 s timeout, and ends at 285 s. It closes the session when the stream ends. At most 4 streams per instance./__spike/versions-listen/notify:pg_notifyon that channel over the pooled HTTP driver./__spike/versions-listen/stats: backend counts frompg_stat_activity,max_connections, andpg_postmaster_start_time().It reads and writes no tables and adds no migrations or triggers. It adds
@neondatabase/serverlessto the example app, so the lockfile changes.Open decision
via @BYK.
--
View Session [Sentry]