Andrew Fribush
fig. 2.36.1 · all four pieces assumed one process still alive after the response: on short-lived instances the limiter counts per Map, the daily drain strands the eleventh job, the deferred insert is cut off, and the only written policy allowed eval.
ALL FOUR ASSUMED ONE PROCESS, STILL ALIVE AFTER THE RESPONSEA LINE IS A PROCESS OVER TIME: SOLID WHILE IT RUNS, DOTTED WHILE SUSPENDED. ATICK IS A REQUEST. ACCENT: WHERE IT BREAKS.ONE LONG-LIVED PROCESSMANY SHORT-LIVED INSTANCES1 RATE LIMITER123456111222ONE MAP: THE 6TH AUTH TRY IN 5 MIN ISREFUSEDA MAP EACH: THE 6TH GETS IN; 3 WARMONES LET 15 THROUGH2 JOB QUEUE04:00 · 10 JOBSCRONA DAILY 04:00 RUN DRAINS ONE BATCH OF10WOKEN ONLY BY A CRON OR A REQUEST: THE11TH JOB WAITS ANOTHER DAY3 DEFERRED ENQUEUEREQUESTRESPONSEINSERTREQUESTRESPONSEINSERT?THE EVENT LOOP RUNS THE INSERT AFTERTHE RESPONSESUSPENDED AT THE RESPONSE: THE INSERTMAY NEVER RUN, NOTHING THROWS4 SECURITY POLICYnext devscript-src 'unsafe-eval'PRODUCTIONCSP HEADER: NONETHE DEV SERVER: TURBOPACK HOT RELOADNEEDS EVALNO POLICY SHIPPED; THE ONE WRITTEN,COMMENTED OUT, ALLOWED EVAL

source: dendrite commit 05a39e4 body and its parent: infra.config.ts lines 192, 195; src/infra/rate-limit.ts line 6; vercel.json; src/infra/jobs/processor.ts line 12; src/infra/jobs/queue.ts enqueueAsync · serverlessFour.data.ts

View in context: Four things that do not survive serverless → · All figures

Andrew Fribush, software and computer engineer in Austin. I build consequential systems where software meets institutions: finance, healthcare, commerce, government data, and the mechanisms that govern AI agents. Taking new engagements: hello@andrewfribush.com.