Repository navigation
Open
Labels
area: connectionsConnecting, reconnecting, pooling and poolersdocumentationImprovements or additions to documentationenhancementNew feature or requestupstreamAnswers porsager/postgres reports
Description
Before designing the other serverless changes further, establish the platform facts they depend on, from documentation and experiments rather than assumptions.
Questions
- Does a frozen Vercel or Lambda instance's monotonic clock (
performance.now()) advance while frozen? Hand-out expiry uses the wall clock because this is unknown. - Do overdue timers fire immediately on thaw, and in what order relative to the incoming request?
- What happens to an invocation that reaches
maxDurationunder fluid compute: only that invocation, or the whole instance? Is there any signal before suspension? - What does
request.signaldo on a timeout compared with a client disconnect? @vercel/functionsattachDatabasePool: its current API, which drivers it supports, and whether this client works with it or needs an adapter or an idle hook (Observing pool clients going into idle state porsager/postgres#1100).- Does Node expose
TCP_USER_TIMEOUTor an equivalent for unacknowledged data? Keep-alive does not cover data in flight. - Which of these apply to Cloudflare workerd sockets, where a pool is not reused across requests (Fails with
Error: The script will never generate a response.on cloudflare pages porsager/postgres#1013)? - How other clients handle the same problems: node-postgres (
idleTimeoutMillis,query_timeout,statement_timeout), pgjdbc (socketTimeout,tcpKeepAlive), libpq (tcp_user_timeout, keep-alive parameters), the Neon serverless driver, Supabase guidance, and Prisma and Drizzle defaults on Vercel.
Method
A harness can freeze the client process with SIGSTOP for N seconds and resume it with SIGCONT, then check that the first request after thaw does not use a stale connection.
Same design limit as porsager#1013 (one pool shared across Cloudflare requests): porsager#884 and porsager#865.
Metadata
Metadata
Assignees
Labels
area: connectionsConnecting, reconnecting, pooling and poolersdocumentationImprovements or additions to documentationenhancementNew feature or requestupstreamAnswers porsager/postgres reports
Type
Projects
- StatusShow more project fieldsNext
Activity