Skip to content

feat(core): add optional namespace for queue topic prefix - #2305

Merged
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace
Jun 11, 2026
Merged

feat(core): add optional namespace for queue topic prefix#2305
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace

Conversation

@willsather

@willsatherwillsather commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • add optional namespace configuration to queue topic prefixes
  • update QueuePrefix / ValidQueueName Zod schemas and world-local routing to accept namespaced prefixes
  • update world-postgres job queue prefix parsing
  • update/create tests to validate queuePrefix parsing

@willsather
willsather requested a review from a team as a code ownerJune 9, 2026 03:29
@changeset-bot

changeset-botBot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292ebf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
NameType
@workflow/worldMinor
@workflow/buildersMinor
@workflow/coreMinor
@workflow/world-localMinor
@workflow/world-postgresMinor
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@workflow/world-vercelPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
workflowMinor
@workflow/nuxtPatch
@workflow/aiMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.044s (+0.9%)1.008s (~)0.964s101.00x
💻 LocalNitro0.044s (+3.3%)1.007s (~)0.963s101.01x
🐘 PostgresNitro0.056s (-11.2% 🟢)1.013s (~)0.957s101.29x
💻 LocalNext.js (Turbopack)0.061s (+10.2% 🔺)1.006s (~)0.945s101.39x
🐘 PostgresNext.js (Turbopack)0.069s (-1.3%)1.013s (~)0.944s101.58x
🐘 PostgresExpress0.123s (+86.3% 🔺)1.041s (+2.6%)0.918s102.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.325s (+19.4% 🔺)2.514s (-7.3% 🟢)2.189s101.00x
▲ VercelNitro0.335s (+28.3% 🔺)2.236s (-8.2% 🟢)1.901s101.03x
▲ VercelNext.js (Turbopack)0.367s (+11.5% 🔺)2.239s (-4.4%)1.872s101.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (~)2.007s (~)0.912s101.00x
💻 LocalExpress1.095s (~)2.006s (~)0.911s101.00x
🐘 PostgresExpress1.099s (+0.6%)2.009s (~)0.910s101.00x
🐘 PostgresNitro1.107s (-0.6%)2.013s (~)0.906s101.01x
💻 LocalNext.js (Turbopack)1.134s (+2.3%)2.006s (~)0.873s101.04x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.010s (~)0.864s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.625s (+2.6%)3.783s (+5.9% 🔺)2.158s101.00x
▲ VercelNext.js (Turbopack)1.676s (+0.6%)3.472s (-14.9% 🟢)1.796s101.03x
▲ VercelNitro1.704s (+8.8% 🔺)3.302s (-6.5% 🟢)1.599s101.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.512s (~)11.018s (~)0.506s31.00x
💻 LocalNitro10.544s (~)11.024s (~)0.480s31.00x
💻 LocalExpress10.554s (~)11.023s (~)0.469s31.00x
🐘 PostgresExpress10.640s (-0.7%)11.040s (-2.7%)0.400s31.01x
💻 LocalNext.js (Turbopack)10.752s (+1.4%)11.023s (~)0.271s31.02x
🐘 PostgresNext.js (Turbopack)10.916s (+0.9%)11.352s (+3.0%)0.436s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro14.005s (+5.1% 🔺)15.619s (~)1.614s21.00x
▲ VercelExpress14.040s (+6.7% 🔺)16.710s (+8.2% 🔺)2.670s21.00x
▲ VercelNext.js (Turbopack)14.262s (+5.7% 🔺)15.726s (-2.3%)1.463s21.02x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.799s (+0.6%)14.027s (~)0.229s51.00x
🐘 PostgresNitro13.839s (~)14.020s (~)0.181s51.00x
💻 LocalExpress13.862s (~)14.226s (~)0.364s51.00x
🐘 PostgresExpress14.021s (+1.3%)14.231s (~)0.211s51.02x
🐘 PostgresNext.js (Turbopack)14.444s (-1.0%)15.021s (~)0.576s41.05x
💻 LocalNext.js (Turbopack)14.540s (+3.7%)15.029s (+2.8%)0.489s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.128s (-21.0% 🟢)22.147s (-18.7% 🟢)2.019s31.00x
▲ VercelNitro20.666s (-19.0% 🟢)22.220s (-19.5% 🟢)1.554s31.03x
▲ VercelNext.js (Turbopack)22.006s (-13.8% 🟢)23.701s (-12.9% 🟢)1.694s31.09x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.483s (-2.0%)13.017s (~)0.534s71.00x
💻 LocalNitro12.546s (+1.1%)13.025s (~)0.479s71.01x
💻 LocalExpress12.560s (~)13.027s (~)0.467s71.01x
🐘 PostgresExpress12.696s (~)13.174s (-1.0%)0.478s71.02x
💻 LocalNext.js (Turbopack)13.617s (+5.2% 🔺)14.027s (+5.4% 🔺)0.410s71.09x
🐘 PostgresNext.js (Turbopack)13.724s (~)14.019s (~)0.295s71.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.544s (-17.2% 🟢)29.208s (-14.7% 🟢)2.664s41.00x
▲ VercelNitro27.624s (-4.9%)29.818s (-5.0% 🟢)2.193s41.04x
▲ VercelNext.js (Turbopack)30.635s (+3.5%)32.836s (+3.1%)2.202s31.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.168s (-2.6%)2.008s (~)0.840s151.00x
🐘 PostgresExpress1.189s (-0.9%)2.007s (-0.7%)0.819s151.02x
💻 LocalNitro1.231s (+1.5%)2.006s (~)0.775s151.05x
🐘 PostgresNext.js (Turbopack)1.241s (-0.8%)2.007s (~)0.767s151.06x
💻 LocalExpress1.264s (~)2.007s (~)0.743s151.08x
💻 LocalNext.js (Turbopack)1.278s (+4.5%)2.006s (~)0.728s151.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.525s (-8.9% 🟢)4.306s (-0.8%)1.782s81.00x
▲ VercelNext.js (Turbopack)2.708s (+0.8%)4.325s (+2.5%)1.617s71.07x
▲ VercelExpress2.762s (~)4.410s (-6.6% 🟢)1.648s71.09x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-1.1%)2.007s (~)0.762s151.00x
🐘 PostgresExpress1.362s (+2.7%)2.016s (~)0.654s151.09x
🐘 PostgresNext.js (Turbopack)1.380s (-2.1%)2.007s (~)0.628s151.11x
💻 LocalNext.js (Turbopack)1.700s (-1.5%)2.073s (+3.3%)0.373s151.37x
💻 LocalNitro1.840s (+8.0% 🔺)2.149s (+3.7%)0.309s141.48x
💻 LocalExpress1.914s (+1.7%)2.315s (+4.2%)0.401s131.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.330s (-18.2% 🟢)4.700s (-24.3% 🟢)1.370s71.00x
▲ VercelExpress3.645s (-10.8% 🟢)5.687s (-7.8% 🟢)2.042s61.09x
▲ VercelNext.js (Turbopack)3.647s (-11.2% 🟢)5.432s (-11.5% 🟢)1.784s61.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.382s (-1.7%)2.008s (~)0.626s151.00x
🐘 PostgresExpress1.437s (+3.1%)2.160s (+7.4% 🔺)0.723s141.04x
🐘 PostgresNext.js (Turbopack)1.675s (-4.8%)2.223s (-3.1%)0.548s141.21x
💻 LocalNext.js (Turbopack)4.473s (+1.8%)5.156s (+2.9%)0.683s73.24x
💻 LocalNitro5.154s (+9.2% 🔺)5.680s (+13.4% 🔺)0.526s63.73x
💻 LocalExpress5.448s (+2.8%)6.013s (~)0.565s53.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.797s (-18.7% 🟢)7.028s (-11.0% 🟢)2.231s51.00x
▲ VercelNitro5.811s (-13.7% 🟢)8.021s (-7.9% 🟢)2.209s41.21x
▲ VercelNext.js (Turbopack)6.254s (+6.5% 🔺)8.409s (+8.1% 🔺)2.154s41.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.176s (-2.0%)2.008s (~)0.832s151.00x
🐘 PostgresExpress1.220s (+1.5%)2.020s (+0.6%)0.799s151.04x
🐘 PostgresNext.js (Turbopack)1.235s (-2.5%)2.009s (~)0.774s151.05x
💻 LocalNext.js (Turbopack)1.375s (+5.3% 🔺)2.006s (~)0.631s151.17x
💻 LocalExpress1.597s (-3.6%)2.007s (-3.2%)0.410s151.36x
💻 LocalNitro1.621s (+5.1% 🔺)2.007s (~)0.386s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.335s (-9.0% 🟢)3.982s (-5.1% 🟢)1.647s81.00x
▲ VercelNitro2.563s (-4.1%)3.891s (-10.2% 🟢)1.329s81.10x
▲ VercelNext.js (Turbopack)2.602s (-40.5% 🟢)4.311s (-31.5% 🟢)1.709s81.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.258s (-1.3%)2.009s (~)0.751s151.00x
🐘 PostgresExpress1.349s (+8.5% 🔺)2.082s (+3.5%)0.734s151.07x
🐘 PostgresNext.js (Turbopack)1.368s (-2.1%)2.008s (~)0.639s151.09x
💻 LocalNext.js (Turbopack)1.988s (-1.6%)2.508s (~)0.519s121.58x
💻 LocalExpress2.015s (-5.2% 🟢)2.472s (-4.6%)0.457s131.60x
💻 LocalNitro2.151s (+22.5% 🔺)2.593s (+25.1% 🔺)0.441s121.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.315s (-19.1% 🟢)4.859s (-19.1% 🟢)1.544s71.00x
▲ VercelExpress3.396s (-7.6% 🟢)5.325s (-5.1% 🟢)1.929s61.02x
▲ VercelNext.js (Turbopack)3.987s (-11.8% 🟢)5.384s (-12.7% 🟢)1.397s61.20x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.335s (-11.0% 🟢)2.006s (-16.3% 🟢)0.672s151.00x
🐘 PostgresNitro1.371s (-6.2% 🟢)2.007s (~)0.636s151.03x
🐘 PostgresNext.js (Turbopack)1.668s (+0.7%)2.077s (~)0.408s151.25x
💻 LocalNext.js (Turbopack)5.289s (+2.5%)5.849s (-2.8%)0.560s63.96x
💻 LocalNitro5.644s (+19.0% 🔺)6.180s (+15.6% 🔺)0.536s64.23x
💻 LocalExpress6.583s (+12.3% 🔺)7.018s (+12.9% 🔺)0.434s54.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.952s (~)6.573s (-2.4%)1.621s51.00x
▲ VercelExpress5.498s (+8.4% 🔺)7.998s (+20.7% 🔺)2.500s41.11x
▲ VercelNext.js (Turbopack)5.529s (-4.5%)7.480s (-1.3%)1.950s51.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.542s (-18.7% 🟢)1.025s (-2.2%)0.483s591.00x
🐘 PostgresNitro0.551s (-9.6% 🟢)1.006s (~)0.455s601.02x
💻 LocalExpress0.608s (-7.3% 🟢)1.005s (-3.3%)0.397s601.12x
💻 LocalNitro0.615s (-23.6% 🟢)1.005s (-16.6% 🟢)0.390s601.13x
🐘 PostgresNext.js (Turbopack)0.803s (-1.1%)1.023s (+1.7%)0.220s591.48x
💻 LocalNext.js (Turbopack)0.895s (+28.5% 🔺)1.058s (+5.3% 🔺)0.163s571.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.453s (-0.9%)7.343s (+3.2%)1.889s91.00x
▲ VercelNitro5.713s (-23.4% 🟢)7.108s (-25.3% 🟢)1.395s91.05x
▲ VercelNext.js (Turbopack)5.829s (+15.5% 🔺)7.381s (+7.8% 🔺)1.553s91.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.384s (-2.3%)2.009s (~)0.624s451.00x
🐘 PostgresExpress1.478s (-3.8%)2.084s (-3.2%)0.607s441.07x
💻 LocalExpress1.546s (-2.9%)2.007s (-1.1%)0.461s451.12x
💻 LocalNitro1.557s (+6.3% 🔺)2.007s (~)0.450s451.12x
🐘 PostgresNext.js (Turbopack)2.016s (+3.8%)2.343s (+7.7% 🔺)0.327s391.46x
💻 LocalNext.js (Turbopack)2.120s (+22.7% 🔺)3.008s (+48.3% 🔺)0.888s301.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.517s (+2.3%)15.691s (+1.4%)2.175s61.00x
▲ VercelExpress13.941s (-14.9% 🟢)16.387s (-10.5% 🟢)2.447s61.03x
▲ VercelNext.js (Turbopack)166.602s (+1027.7% 🔺)168.117s (+892.9% 🔺)1.514s212.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.821s (-3.2%)3.253s (-0.9%)0.432s371.00x
🐘 PostgresExpress3.127s (+7.4% 🔺)3.739s (+5.6% 🔺)0.612s331.11x
💻 LocalNitro3.335s (+4.0%)4.009s (~)0.674s301.18x
💻 LocalExpress3.367s (-1.5%)4.010s (~)0.643s301.19x
🐘 PostgresNext.js (Turbopack)3.891s (+0.8%)4.183s (+2.6%)0.291s291.38x
💻 LocalNext.js (Turbopack)4.385s (+17.6% 🔺)5.012s (+22.0% 🔺)0.627s241.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.618s (-14.0% 🟢)28.009s (-12.4% 🟢)2.391s51.00x
▲ VercelExpress26.866s (-6.9% 🟢)30.194s (-2.3%)3.328s51.05x
▲ VercelNext.js (Turbopack)27.500s (+1.9%)29.271s (~)1.772s51.07x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.221s (-6.2% 🟢)1.006s (~)0.786s601.00x
🐘 PostgresExpress0.261s (+3.6%)1.013s (~)0.751s601.18x
🐘 PostgresNext.js (Turbopack)0.265s (-6.0% 🟢)1.006s (~)0.741s601.20x
💻 LocalNitro0.423s (~)1.005s (~)0.582s601.91x
💻 LocalExpress0.434s (-6.6% 🟢)1.005s (~)0.571s601.97x
💻 LocalNext.js (Turbopack)0.603s (-1.3%)1.022s (-1.6%)0.419s592.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.389s (+1.9%)3.820s (-11.9% 🟢)1.431s161.00x
▲ VercelExpress2.413s (+9.1% 🔺)4.293s (+4.8%)1.880s141.01x
▲ VercelNext.js (Turbopack)2.541s (+15.5% 🔺)3.917s (-7.2% 🟢)1.376s161.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.329s (-11.2% 🟢)1.007s (~)0.677s901.00x
🐘 PostgresNext.js (Turbopack)0.495s (+2.5%)1.006s (~)0.512s901.50x
🐘 PostgresExpress0.551s (+62.5% 🔺)1.129s (+12.1% 🔺)0.578s801.67x
💻 LocalExpress2.148s (-2.0%)2.885s (+2.2%)0.736s326.52x
💻 LocalNitro2.172s (+5.2% 🔺)2.685s (+1.8%)0.513s346.60x
💻 LocalNext.js (Turbopack)2.347s (-4.2%)3.077s (-1.0%)0.731s307.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.478s (-87.4% 🟢)7.446s (-83.5% 🟢)1.968s131.00x
▲ VercelNitro5.543s (-87.3% 🟢)7.124s (-84.5% 🟢)1.581s131.01x
▲ VercelNext.js (Turbopack)5.628s (-10.2% 🟢)7.236s (-14.8% 🟢)1.608s131.03x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.656s (-7.2% 🟢)1.006s (~)0.350s1201.00x
🐘 PostgresExpress0.748s (+19.6% 🔺)1.164s (+10.3% 🔺)0.416s1041.14x
🐘 PostgresNext.js (Turbopack)0.972s (-0.8%)1.644s (+2.2%)0.672s741.48x
💻 LocalNitro9.731s (+11.7% 🔺)10.446s (+11.9% 🔺)0.715s1214.83x
💻 LocalNext.js (Turbopack)10.183s (-1.3%)10.861s (-3.9%)0.678s1215.52x
💻 LocalExpress10.295s (~)10.779s (-0.8%)0.484s1215.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.976s (-1.8%)17.377s (-0.7%)2.401s71.00x
▲ VercelNitro15.437s (-95.0% 🟢)17.367s (-94.5% 🟢)1.930s71.03x
▲ VercelNext.js (Turbopack)18.443s (-88.5% 🟢)20.158s (-87.6% 🟢)1.714s71.23x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.156s (-2.1%)1.998s (~)0.001s (-21.4% 🟢)2.009s (~)0.853s101.00x
💻 LocalExpress1.171s (~)2.005s (~)0.013s (~)2.021s (~)0.850s101.01x
💻 LocalNitro1.183s (+2.8%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.837s101.02x
🐘 PostgresExpress1.198s (~)1.990s (-0.5%)0.001s (-97.1% 🟢)2.013s (-1.5%)0.815s101.04x
💻 LocalNext.js (Turbopack)1.209s (+3.4%)2.003s (~)0.010s (+2.0%)2.018s (~)0.809s101.05x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.002s (~)0.001s (-33.3% 🟢)2.011s (~)0.788s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.135s (-1.4%)3.025s (-11.5% 🟢)1.522s (+195.0% 🔺)4.959s (+11.0% 🔺)2.824s101.00x
▲ VercelExpress2.136s (~)3.435s (+0.8%)0.359s (-31.7% 🟢)4.283s (-3.7%)2.147s101.00x
▲ VercelNext.js (Turbopack)2.523s (+12.6% 🔺)3.277s (-7.7% 🟢)1.467s (-88.2% 🟢)5.161s (-68.7% 🟢)2.637s101.18x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.590s (-4.4%)2.005s (~)0.005s (+32.5% 🔺)2.027s (~)0.438s301.00x
💻 LocalNitro1.597s (-8.4% 🟢)2.012s (~)0.012s (+28.8% 🔺)2.026s (-7.8% 🟢)0.430s301.00x
💻 LocalExpress1.619s (-1.1%)2.012s (~)0.014s (+22.7% 🔺)2.027s (~)0.409s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.6% 🔺)2.009s (~)0.013s (+25.4% 🔺)2.025s (~)0.293s301.09x
🐘 PostgresNext.js (Turbopack)1.738s (-1.4%)2.010s (~)0.005s (+30.6% 🔺)2.027s (~)0.288s301.09x
🐘 PostgresExpress1.888s (+8.7% 🔺)2.333s (+8.9% 🔺)0.008s (+155.3% 🔺)2.383s (+10.3% 🔺)0.495s261.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.848s (+1.6%)7.572s (+1.9%)0.251s (-29.0% 🟢)8.364s (~)2.516s81.00x
▲ VercelNitro5.935s (+3.3%)6.887s (-9.3% 🟢)0.494s (+46.4% 🔺)7.791s (-8.2% 🟢)1.856s81.01x
▲ VercelNext.js (Turbopack)5.956s (-6.5% 🟢)6.857s (-13.6% 🟢)0.270s (-25.3% 🟢)7.562s (-14.7% 🟢)1.606s81.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.718s (-0.6%)1.051s (+1.9%)0.000s (-66.1% 🟢)1.061s (+1.3%)0.343s571.00x
🐘 PostgresNext.js (Turbopack)0.833s (~)1.092s (+1.9%)0.000s (-49.1% 🟢)1.099s (+1.8%)0.266s551.16x
🐘 PostgresExpress1.143s (+16.9% 🔺)1.559s (+9.2% 🔺)0.000s (-100.0% 🟢)1.599s (+10.4% 🔺)0.456s381.59x
💻 LocalNitro1.398s (+3.3%)2.013s (~)0.000s (-46.7% 🟢)2.015s (~)0.618s301.95x
💻 LocalExpress1.444s (-2.6%)2.014s (~)0.001s (+53.3% 🔺)2.017s (~)0.572s302.01x
💻 LocalNext.js (Turbopack)1.479s (+2.2%)2.012s (~)0.000s (+25.0% 🔺)2.015s (~)0.536s302.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.231s (-2.3%)4.317s (-11.8% 🟢)0.000s (NaN%)4.733s (-13.3% 🟢)1.502s131.00x
▲ VercelNitro3.250s (-9.7% 🟢)4.423s (-12.8% 🟢)0.000s (NaN%)4.848s (-13.9% 🟢)1.598s131.01x
▲ VercelExpress3.702s (-8.8% 🟢)5.202s (-2.6%)0.000s (-100.0% 🟢)5.733s (-7.1% 🟢)2.031s111.15x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.427s (+1.2%)2.142s (+7.3% 🔺)0.000s (NaN%)2.154s (+7.0% 🔺)0.726s281.00x
🐘 PostgresNext.js (Turbopack)1.857s (+7.5% 🔺)2.444s (+8.1% 🔺)0.000s (+Infinity% 🔺)2.463s (+8.5% 🔺)0.606s251.30x
🐘 PostgresExpress2.699s (+67.1% 🔺)3.125s (+38.7% 🔺)0.000s (+Infinity% 🔺)3.188s (+39.9% 🔺)0.490s191.89x
💻 LocalNext.js (Turbopack)2.892s (-10.0% 🟢)3.553s (-8.8% 🟢)0.000s (+50.6% 🔺)3.557s (-8.8% 🟢)0.665s172.03x
💻 LocalNitro3.067s (-1.5%)3.777s (-3.0%)0.000s (+50.0% 🔺)3.780s (-3.1%)0.713s162.15x
💻 LocalExpress3.296s (-1.1%)3.966s (+3.3%)0.001s (+133.3% 🔺)3.969s (+3.2%)0.673s162.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.828s (-6.6% 🟢)6.206s (-7.1% 🟢)0.000s (-77.5% 🟢)6.604s (-8.3% 🟢)1.776s101.00x
▲ VercelExpress4.940s (-21.8% 🟢)6.586s (-13.7% 🟢)0.000s (-70.4% 🟢)7.197s (-12.1% 🟢)2.257s91.02x
▲ VercelNitro5.015s (-28.8% 🟢)6.205s (-27.6% 🟢)0.000s (+Infinity% 🔺)6.656s (-26.8% 🟢)1.640s101.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/21
🐘 PostgresNitro18/21
▲ VercelExpress10/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production126602191485
✅ 💻 Local Development167102191890
✅ 📦 Local Production167102191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7183010528235

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
✅ express109026
✅ fastify109026
✅ hono109026
✅ nextjs-turbopack13302
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

packages/builders/src/constants.ts imports getQueueTopicPrefix from @workflow/world, but @workflow/world is not declared in packages/builders/package.json dependencies, causing the build to fail with TS2307.

Fix on Vercel

@willsather
willsatherforce-pushed the willsather/add-queue-prefix-namespace branch from 187c205 to 805bea2CompareJune 9, 2026 03:37

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Indexing the fixed-shape Queues object with a QueuePrefix (now widened to string) triggers TS7053, breaking the @workflow/world-postgres build.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

setupListeners() references a deleted Queues constant, causing tsc to fail with TS2552 and breaking the @workflow/world-postgres build.

Fix on Vercel

Comment threadpackages/core/src/runtime/helpers.ts Outdated

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

With WORKFLOW_QUEUE_NAMESPACE set, parseQueueName/getQueueRoute/createTaskHandler in world-postgres still match only the non-namespaced default prefixes, so namespaced queue names produced by the core producer throw Invalid queue name (enqueue fails) and lose workflow-run serialization.

Fix on Vercel

ijjk added 2 commits June 10, 2026 17:27
* Fix namespaced queue routing reliability
* Inline queue namespace in generated routes
* Avoid loading Vercel functions during runtime import

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — solid contract design, thorough iteration; main ask is documentation

I built all five packages from this branch and ran the suites locally: 50 world tests, 6 builders constants tests, 8 world-local queue tests, 8 world-postgres queue tests, and the full core unit suite (1110 tests) — all green.

What's good

  • The naming contract is well-designed. Single-label namespace ([a-z][a-z0-9]* — no underscores) makes parseQueueName deterministic: I worked through the adversarial cases (__wkf_workflow_foo vs a hypothetical wkf namespace, multi-underscore labels, ids containing wkf_workflow_) and the regex backtracking always lands on a single unambiguous parse. The prefix/kind/id helpers centralize what was previously stringly-typed startsWith logic scattered across three packages.
  • The review iteration addressed the real correctness gaps. The original producer/consumer mismatch (entrypoint consuming a namespaced topic while start()/requeue paths enqueued un-namespaced) and the world-postgres Queues map throwing on namespaced prefixes were both caught and fixed; the follow-up routing-reliability commit routes every producer, consumer, and trigger site through resolveQueueNamespace, and bakes the namespace into generated routes at build time so the flow route doesn't depend on the runtime env.
  • runtime-import.test.ts is a good regression pin — mocking @vercel/functions to throw on load and asserting the runtime module still imports proves the lazy-loading actually holds, rather than depending on bundler luck.
  • Contract-level test coverage is comprehensive: prefix construction, namespace validation (digit-start/uppercase/empty/special chars rejected), schema acceptance/rejection, kind extraction, name parsing, and the world-local namespaced direct-handler routing test.

Main ask: documentation (should-fix, can be a fast-follow)

This PR introduces a user-facing env var (WORKFLOW_QUEUE_NAMESPACE) with a non-obvious operational requirement and ships zero docs. The critical thing to document is the build-time/runtime consistency requirement: the flow-route consumer gets the namespace baked at build, but producers (start(), resumeHook(), step-handler requeues) resolve it from the runtime env. If the env var is set in one phase but not the other (build-only env vars in some CI setups, or added to a running deployment without a rebuild), messages get enqueued to a topic no trigger listens on — silently. A short docs section ("set it as a regular project env var so build and runtime agree; changing it requires a redeploy; in-flight messages on the old topic are stranded") would save someone a very confusing afternoon. The migration story for an existing deployment that adopts a namespace (in-flight un-namespaced messages) deserves a sentence too.

Smaller notes (non-blocking)

  1. world-postgres namespace isolation is partial.getJobQueueName collapses every namespace into the same graphile job names (workflow_flows/workflow_steps). One app + one namespace works correctly (the task handler reconstructs queue names from its own configured prefix), but two namespaces sharing a database and jobPrefix — the closest analog of the stated multi-framework use case — would consume each other's jobs and reconstruct queue names under the wrong prefix. Either include the namespace in the job name (workflow_{ns}_flows) or document that postgres isolation requires distinct jobPrefix/databases.
  2. Module-load-time env resolution in two places: WORKFLOW_QUEUE_TRIGGER = createWorkflowQueueTrigger() and const stepHandler = createStepHandler(). Both bake process.env.WORKFLOW_QUEUE_NAMESPACE at import time. This works for the current build/runtime flows, but the trigger constant's docstring ("Default queue trigger (no namespace). Backward compatible.") is inaccurate whenever the env var is set in the importing process — worth rewording to "namespace resolved from the environment at import time."
  3. The lazy waitUntil has a small unhandled-rejection window: void import('@vercel/functions').then(({ waitUntil }) => waitUntil(promise)) — if the platform's waitUntil throws (e.g. called after response finalization on the cold path where the dynamic import does real work), that rejection is unobserved. A .catch with a debug log would make the failure mode visible. The lazy-loading itself is clearly deliberate (and pinned by the new test), so this is just hardening.
  4. Duplicated namespace helpers in builders/src/constants.ts vs world/src/queue.ts — clearly deliberate (the @workflow/world dependency was removed from builders in the same commit), but the two regex patterns must now stay in sync by hand. A cross-referencing comment on both sides ("mirror of …, keep in sync") would cheapen future drift.
  5. createStepHandler(namespace?)'s parameter is currently never passed explicitly (only the module-level createStepHandler() exists), so the V1 split-route step handler is env-only while the V2 combined route gets the baked option. Fine — V1 is legacy — but if the param is meant for future use a one-line comment saying so would keep someone from "cleaning it up."

CI

Checks were re-running on the head commit when I reviewed (post-fix-up push); nothing failing, and the changeset correctly covers all five touched packages with minor. Approving — the docs ask is the one thing I'd really like to see land before (or immediately after) this merges.

@github-actionsgithub-actionsBot mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2341. Merge conflicts were resolved by AI — please review carefully. (backport job run)

Sign up for freeto 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.

4 participants

@willsather@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Add copy buttons to all
 blocks
(function() {
function addCopyButtons() {
document.querySelectorAll('pre code').forEach(function(codeBlock) {
if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;
codeBlock.parentElement.setAttribute('data-copy-added', 'true');
var btn = document.createElement('button');
btn.textContent = 'Copy';
btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';
btn.onmouseover = function() { this.style.opacity = '1'; };
btn.onmouseout = function() { this.style.opacity = '0.7'; };
btn.onclick = function() {
navigator.clipboard.writeText(codeBlock.textContent).then(function() {
btn.textContent = 'Copied!';
setTimeout(function() { btn.textContent = 'Copy'; }, 1500);
});
};
codeBlock.parentElement.style.position = 'relative';
codeBlock.parentElement.appendChild(btn);
});
}
addCopyButtons();
// Re-run on dynamic content
var observer = new MutationObserver(addCopyButtons);
observer.observe(document.body, { childList: true, subtree: true });
})();
}
} catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); }
})();
(function(){
try {
var __m = "github.com";
var __re = new RegExp('^' + "github\\.com" + '
feat(core): add optional namespace for queue topic prefix by willsather · Pull Request #2305 · vercel/workflow · GitHub
Skip to content

feat(core): add optional namespace for queue topic prefix - #2305

Merged
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace
Jun 11, 2026
Merged

feat(core): add optional namespace for queue topic prefix#2305
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace

Conversation

@willsather

@willsatherwillsather commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • add optional namespace configuration to queue topic prefixes
  • update QueuePrefix / ValidQueueName Zod schemas and world-local routing to accept namespaced prefixes
  • update world-postgres job queue prefix parsing
  • update/create tests to validate queuePrefix parsing

@willsather
willsather requested a review from a team as a code ownerJune 9, 2026 03:29
@changeset-bot

changeset-botBot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292ebf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
NameType
@workflow/worldMinor
@workflow/buildersMinor
@workflow/coreMinor
@workflow/world-localMinor
@workflow/world-postgresMinor
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@workflow/world-vercelPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
workflowMinor
@workflow/nuxtPatch
@workflow/aiMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.044s (+0.9%)1.008s (~)0.964s101.00x
💻 LocalNitro0.044s (+3.3%)1.007s (~)0.963s101.01x
🐘 PostgresNitro0.056s (-11.2% 🟢)1.013s (~)0.957s101.29x
💻 LocalNext.js (Turbopack)0.061s (+10.2% 🔺)1.006s (~)0.945s101.39x
🐘 PostgresNext.js (Turbopack)0.069s (-1.3%)1.013s (~)0.944s101.58x
🐘 PostgresExpress0.123s (+86.3% 🔺)1.041s (+2.6%)0.918s102.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.325s (+19.4% 🔺)2.514s (-7.3% 🟢)2.189s101.00x
▲ VercelNitro0.335s (+28.3% 🔺)2.236s (-8.2% 🟢)1.901s101.03x
▲ VercelNext.js (Turbopack)0.367s (+11.5% 🔺)2.239s (-4.4%)1.872s101.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (~)2.007s (~)0.912s101.00x
💻 LocalExpress1.095s (~)2.006s (~)0.911s101.00x
🐘 PostgresExpress1.099s (+0.6%)2.009s (~)0.910s101.00x
🐘 PostgresNitro1.107s (-0.6%)2.013s (~)0.906s101.01x
💻 LocalNext.js (Turbopack)1.134s (+2.3%)2.006s (~)0.873s101.04x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.010s (~)0.864s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.625s (+2.6%)3.783s (+5.9% 🔺)2.158s101.00x
▲ VercelNext.js (Turbopack)1.676s (+0.6%)3.472s (-14.9% 🟢)1.796s101.03x
▲ VercelNitro1.704s (+8.8% 🔺)3.302s (-6.5% 🟢)1.599s101.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.512s (~)11.018s (~)0.506s31.00x
💻 LocalNitro10.544s (~)11.024s (~)0.480s31.00x
💻 LocalExpress10.554s (~)11.023s (~)0.469s31.00x
🐘 PostgresExpress10.640s (-0.7%)11.040s (-2.7%)0.400s31.01x
💻 LocalNext.js (Turbopack)10.752s (+1.4%)11.023s (~)0.271s31.02x
🐘 PostgresNext.js (Turbopack)10.916s (+0.9%)11.352s (+3.0%)0.436s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro14.005s (+5.1% 🔺)15.619s (~)1.614s21.00x
▲ VercelExpress14.040s (+6.7% 🔺)16.710s (+8.2% 🔺)2.670s21.00x
▲ VercelNext.js (Turbopack)14.262s (+5.7% 🔺)15.726s (-2.3%)1.463s21.02x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.799s (+0.6%)14.027s (~)0.229s51.00x
🐘 PostgresNitro13.839s (~)14.020s (~)0.181s51.00x
💻 LocalExpress13.862s (~)14.226s (~)0.364s51.00x
🐘 PostgresExpress14.021s (+1.3%)14.231s (~)0.211s51.02x
🐘 PostgresNext.js (Turbopack)14.444s (-1.0%)15.021s (~)0.576s41.05x
💻 LocalNext.js (Turbopack)14.540s (+3.7%)15.029s (+2.8%)0.489s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.128s (-21.0% 🟢)22.147s (-18.7% 🟢)2.019s31.00x
▲ VercelNitro20.666s (-19.0% 🟢)22.220s (-19.5% 🟢)1.554s31.03x
▲ VercelNext.js (Turbopack)22.006s (-13.8% 🟢)23.701s (-12.9% 🟢)1.694s31.09x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.483s (-2.0%)13.017s (~)0.534s71.00x
💻 LocalNitro12.546s (+1.1%)13.025s (~)0.479s71.01x
💻 LocalExpress12.560s (~)13.027s (~)0.467s71.01x
🐘 PostgresExpress12.696s (~)13.174s (-1.0%)0.478s71.02x
💻 LocalNext.js (Turbopack)13.617s (+5.2% 🔺)14.027s (+5.4% 🔺)0.410s71.09x
🐘 PostgresNext.js (Turbopack)13.724s (~)14.019s (~)0.295s71.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.544s (-17.2% 🟢)29.208s (-14.7% 🟢)2.664s41.00x
▲ VercelNitro27.624s (-4.9%)29.818s (-5.0% 🟢)2.193s41.04x
▲ VercelNext.js (Turbopack)30.635s (+3.5%)32.836s (+3.1%)2.202s31.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.168s (-2.6%)2.008s (~)0.840s151.00x
🐘 PostgresExpress1.189s (-0.9%)2.007s (-0.7%)0.819s151.02x
💻 LocalNitro1.231s (+1.5%)2.006s (~)0.775s151.05x
🐘 PostgresNext.js (Turbopack)1.241s (-0.8%)2.007s (~)0.767s151.06x
💻 LocalExpress1.264s (~)2.007s (~)0.743s151.08x
💻 LocalNext.js (Turbopack)1.278s (+4.5%)2.006s (~)0.728s151.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.525s (-8.9% 🟢)4.306s (-0.8%)1.782s81.00x
▲ VercelNext.js (Turbopack)2.708s (+0.8%)4.325s (+2.5%)1.617s71.07x
▲ VercelExpress2.762s (~)4.410s (-6.6% 🟢)1.648s71.09x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-1.1%)2.007s (~)0.762s151.00x
🐘 PostgresExpress1.362s (+2.7%)2.016s (~)0.654s151.09x
🐘 PostgresNext.js (Turbopack)1.380s (-2.1%)2.007s (~)0.628s151.11x
💻 LocalNext.js (Turbopack)1.700s (-1.5%)2.073s (+3.3%)0.373s151.37x
💻 LocalNitro1.840s (+8.0% 🔺)2.149s (+3.7%)0.309s141.48x
💻 LocalExpress1.914s (+1.7%)2.315s (+4.2%)0.401s131.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.330s (-18.2% 🟢)4.700s (-24.3% 🟢)1.370s71.00x
▲ VercelExpress3.645s (-10.8% 🟢)5.687s (-7.8% 🟢)2.042s61.09x
▲ VercelNext.js (Turbopack)3.647s (-11.2% 🟢)5.432s (-11.5% 🟢)1.784s61.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.382s (-1.7%)2.008s (~)0.626s151.00x
🐘 PostgresExpress1.437s (+3.1%)2.160s (+7.4% 🔺)0.723s141.04x
🐘 PostgresNext.js (Turbopack)1.675s (-4.8%)2.223s (-3.1%)0.548s141.21x
💻 LocalNext.js (Turbopack)4.473s (+1.8%)5.156s (+2.9%)0.683s73.24x
💻 LocalNitro5.154s (+9.2% 🔺)5.680s (+13.4% 🔺)0.526s63.73x
💻 LocalExpress5.448s (+2.8%)6.013s (~)0.565s53.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.797s (-18.7% 🟢)7.028s (-11.0% 🟢)2.231s51.00x
▲ VercelNitro5.811s (-13.7% 🟢)8.021s (-7.9% 🟢)2.209s41.21x
▲ VercelNext.js (Turbopack)6.254s (+6.5% 🔺)8.409s (+8.1% 🔺)2.154s41.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.176s (-2.0%)2.008s (~)0.832s151.00x
🐘 PostgresExpress1.220s (+1.5%)2.020s (+0.6%)0.799s151.04x
🐘 PostgresNext.js (Turbopack)1.235s (-2.5%)2.009s (~)0.774s151.05x
💻 LocalNext.js (Turbopack)1.375s (+5.3% 🔺)2.006s (~)0.631s151.17x
💻 LocalExpress1.597s (-3.6%)2.007s (-3.2%)0.410s151.36x
💻 LocalNitro1.621s (+5.1% 🔺)2.007s (~)0.386s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.335s (-9.0% 🟢)3.982s (-5.1% 🟢)1.647s81.00x
▲ VercelNitro2.563s (-4.1%)3.891s (-10.2% 🟢)1.329s81.10x
▲ VercelNext.js (Turbopack)2.602s (-40.5% 🟢)4.311s (-31.5% 🟢)1.709s81.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.258s (-1.3%)2.009s (~)0.751s151.00x
🐘 PostgresExpress1.349s (+8.5% 🔺)2.082s (+3.5%)0.734s151.07x
🐘 PostgresNext.js (Turbopack)1.368s (-2.1%)2.008s (~)0.639s151.09x
💻 LocalNext.js (Turbopack)1.988s (-1.6%)2.508s (~)0.519s121.58x
💻 LocalExpress2.015s (-5.2% 🟢)2.472s (-4.6%)0.457s131.60x
💻 LocalNitro2.151s (+22.5% 🔺)2.593s (+25.1% 🔺)0.441s121.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.315s (-19.1% 🟢)4.859s (-19.1% 🟢)1.544s71.00x
▲ VercelExpress3.396s (-7.6% 🟢)5.325s (-5.1% 🟢)1.929s61.02x
▲ VercelNext.js (Turbopack)3.987s (-11.8% 🟢)5.384s (-12.7% 🟢)1.397s61.20x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.335s (-11.0% 🟢)2.006s (-16.3% 🟢)0.672s151.00x
🐘 PostgresNitro1.371s (-6.2% 🟢)2.007s (~)0.636s151.03x
🐘 PostgresNext.js (Turbopack)1.668s (+0.7%)2.077s (~)0.408s151.25x
💻 LocalNext.js (Turbopack)5.289s (+2.5%)5.849s (-2.8%)0.560s63.96x
💻 LocalNitro5.644s (+19.0% 🔺)6.180s (+15.6% 🔺)0.536s64.23x
💻 LocalExpress6.583s (+12.3% 🔺)7.018s (+12.9% 🔺)0.434s54.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.952s (~)6.573s (-2.4%)1.621s51.00x
▲ VercelExpress5.498s (+8.4% 🔺)7.998s (+20.7% 🔺)2.500s41.11x
▲ VercelNext.js (Turbopack)5.529s (-4.5%)7.480s (-1.3%)1.950s51.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.542s (-18.7% 🟢)1.025s (-2.2%)0.483s591.00x
🐘 PostgresNitro0.551s (-9.6% 🟢)1.006s (~)0.455s601.02x
💻 LocalExpress0.608s (-7.3% 🟢)1.005s (-3.3%)0.397s601.12x
💻 LocalNitro0.615s (-23.6% 🟢)1.005s (-16.6% 🟢)0.390s601.13x
🐘 PostgresNext.js (Turbopack)0.803s (-1.1%)1.023s (+1.7%)0.220s591.48x
💻 LocalNext.js (Turbopack)0.895s (+28.5% 🔺)1.058s (+5.3% 🔺)0.163s571.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.453s (-0.9%)7.343s (+3.2%)1.889s91.00x
▲ VercelNitro5.713s (-23.4% 🟢)7.108s (-25.3% 🟢)1.395s91.05x
▲ VercelNext.js (Turbopack)5.829s (+15.5% 🔺)7.381s (+7.8% 🔺)1.553s91.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.384s (-2.3%)2.009s (~)0.624s451.00x
🐘 PostgresExpress1.478s (-3.8%)2.084s (-3.2%)0.607s441.07x
💻 LocalExpress1.546s (-2.9%)2.007s (-1.1%)0.461s451.12x
💻 LocalNitro1.557s (+6.3% 🔺)2.007s (~)0.450s451.12x
🐘 PostgresNext.js (Turbopack)2.016s (+3.8%)2.343s (+7.7% 🔺)0.327s391.46x
💻 LocalNext.js (Turbopack)2.120s (+22.7% 🔺)3.008s (+48.3% 🔺)0.888s301.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.517s (+2.3%)15.691s (+1.4%)2.175s61.00x
▲ VercelExpress13.941s (-14.9% 🟢)16.387s (-10.5% 🟢)2.447s61.03x
▲ VercelNext.js (Turbopack)166.602s (+1027.7% 🔺)168.117s (+892.9% 🔺)1.514s212.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.821s (-3.2%)3.253s (-0.9%)0.432s371.00x
🐘 PostgresExpress3.127s (+7.4% 🔺)3.739s (+5.6% 🔺)0.612s331.11x
💻 LocalNitro3.335s (+4.0%)4.009s (~)0.674s301.18x
💻 LocalExpress3.367s (-1.5%)4.010s (~)0.643s301.19x
🐘 PostgresNext.js (Turbopack)3.891s (+0.8%)4.183s (+2.6%)0.291s291.38x
💻 LocalNext.js (Turbopack)4.385s (+17.6% 🔺)5.012s (+22.0% 🔺)0.627s241.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.618s (-14.0% 🟢)28.009s (-12.4% 🟢)2.391s51.00x
▲ VercelExpress26.866s (-6.9% 🟢)30.194s (-2.3%)3.328s51.05x
▲ VercelNext.js (Turbopack)27.500s (+1.9%)29.271s (~)1.772s51.07x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.221s (-6.2% 🟢)1.006s (~)0.786s601.00x
🐘 PostgresExpress0.261s (+3.6%)1.013s (~)0.751s601.18x
🐘 PostgresNext.js (Turbopack)0.265s (-6.0% 🟢)1.006s (~)0.741s601.20x
💻 LocalNitro0.423s (~)1.005s (~)0.582s601.91x
💻 LocalExpress0.434s (-6.6% 🟢)1.005s (~)0.571s601.97x
💻 LocalNext.js (Turbopack)0.603s (-1.3%)1.022s (-1.6%)0.419s592.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.389s (+1.9%)3.820s (-11.9% 🟢)1.431s161.00x
▲ VercelExpress2.413s (+9.1% 🔺)4.293s (+4.8%)1.880s141.01x
▲ VercelNext.js (Turbopack)2.541s (+15.5% 🔺)3.917s (-7.2% 🟢)1.376s161.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.329s (-11.2% 🟢)1.007s (~)0.677s901.00x
🐘 PostgresNext.js (Turbopack)0.495s (+2.5%)1.006s (~)0.512s901.50x
🐘 PostgresExpress0.551s (+62.5% 🔺)1.129s (+12.1% 🔺)0.578s801.67x
💻 LocalExpress2.148s (-2.0%)2.885s (+2.2%)0.736s326.52x
💻 LocalNitro2.172s (+5.2% 🔺)2.685s (+1.8%)0.513s346.60x
💻 LocalNext.js (Turbopack)2.347s (-4.2%)3.077s (-1.0%)0.731s307.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.478s (-87.4% 🟢)7.446s (-83.5% 🟢)1.968s131.00x
▲ VercelNitro5.543s (-87.3% 🟢)7.124s (-84.5% 🟢)1.581s131.01x
▲ VercelNext.js (Turbopack)5.628s (-10.2% 🟢)7.236s (-14.8% 🟢)1.608s131.03x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.656s (-7.2% 🟢)1.006s (~)0.350s1201.00x
🐘 PostgresExpress0.748s (+19.6% 🔺)1.164s (+10.3% 🔺)0.416s1041.14x
🐘 PostgresNext.js (Turbopack)0.972s (-0.8%)1.644s (+2.2%)0.672s741.48x
💻 LocalNitro9.731s (+11.7% 🔺)10.446s (+11.9% 🔺)0.715s1214.83x
💻 LocalNext.js (Turbopack)10.183s (-1.3%)10.861s (-3.9%)0.678s1215.52x
💻 LocalExpress10.295s (~)10.779s (-0.8%)0.484s1215.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.976s (-1.8%)17.377s (-0.7%)2.401s71.00x
▲ VercelNitro15.437s (-95.0% 🟢)17.367s (-94.5% 🟢)1.930s71.03x
▲ VercelNext.js (Turbopack)18.443s (-88.5% 🟢)20.158s (-87.6% 🟢)1.714s71.23x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.156s (-2.1%)1.998s (~)0.001s (-21.4% 🟢)2.009s (~)0.853s101.00x
💻 LocalExpress1.171s (~)2.005s (~)0.013s (~)2.021s (~)0.850s101.01x
💻 LocalNitro1.183s (+2.8%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.837s101.02x
🐘 PostgresExpress1.198s (~)1.990s (-0.5%)0.001s (-97.1% 🟢)2.013s (-1.5%)0.815s101.04x
💻 LocalNext.js (Turbopack)1.209s (+3.4%)2.003s (~)0.010s (+2.0%)2.018s (~)0.809s101.05x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.002s (~)0.001s (-33.3% 🟢)2.011s (~)0.788s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.135s (-1.4%)3.025s (-11.5% 🟢)1.522s (+195.0% 🔺)4.959s (+11.0% 🔺)2.824s101.00x
▲ VercelExpress2.136s (~)3.435s (+0.8%)0.359s (-31.7% 🟢)4.283s (-3.7%)2.147s101.00x
▲ VercelNext.js (Turbopack)2.523s (+12.6% 🔺)3.277s (-7.7% 🟢)1.467s (-88.2% 🟢)5.161s (-68.7% 🟢)2.637s101.18x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.590s (-4.4%)2.005s (~)0.005s (+32.5% 🔺)2.027s (~)0.438s301.00x
💻 LocalNitro1.597s (-8.4% 🟢)2.012s (~)0.012s (+28.8% 🔺)2.026s (-7.8% 🟢)0.430s301.00x
💻 LocalExpress1.619s (-1.1%)2.012s (~)0.014s (+22.7% 🔺)2.027s (~)0.409s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.6% 🔺)2.009s (~)0.013s (+25.4% 🔺)2.025s (~)0.293s301.09x
🐘 PostgresNext.js (Turbopack)1.738s (-1.4%)2.010s (~)0.005s (+30.6% 🔺)2.027s (~)0.288s301.09x
🐘 PostgresExpress1.888s (+8.7% 🔺)2.333s (+8.9% 🔺)0.008s (+155.3% 🔺)2.383s (+10.3% 🔺)0.495s261.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.848s (+1.6%)7.572s (+1.9%)0.251s (-29.0% 🟢)8.364s (~)2.516s81.00x
▲ VercelNitro5.935s (+3.3%)6.887s (-9.3% 🟢)0.494s (+46.4% 🔺)7.791s (-8.2% 🟢)1.856s81.01x
▲ VercelNext.js (Turbopack)5.956s (-6.5% 🟢)6.857s (-13.6% 🟢)0.270s (-25.3% 🟢)7.562s (-14.7% 🟢)1.606s81.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.718s (-0.6%)1.051s (+1.9%)0.000s (-66.1% 🟢)1.061s (+1.3%)0.343s571.00x
🐘 PostgresNext.js (Turbopack)0.833s (~)1.092s (+1.9%)0.000s (-49.1% 🟢)1.099s (+1.8%)0.266s551.16x
🐘 PostgresExpress1.143s (+16.9% 🔺)1.559s (+9.2% 🔺)0.000s (-100.0% 🟢)1.599s (+10.4% 🔺)0.456s381.59x
💻 LocalNitro1.398s (+3.3%)2.013s (~)0.000s (-46.7% 🟢)2.015s (~)0.618s301.95x
💻 LocalExpress1.444s (-2.6%)2.014s (~)0.001s (+53.3% 🔺)2.017s (~)0.572s302.01x
💻 LocalNext.js (Turbopack)1.479s (+2.2%)2.012s (~)0.000s (+25.0% 🔺)2.015s (~)0.536s302.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.231s (-2.3%)4.317s (-11.8% 🟢)0.000s (NaN%)4.733s (-13.3% 🟢)1.502s131.00x
▲ VercelNitro3.250s (-9.7% 🟢)4.423s (-12.8% 🟢)0.000s (NaN%)4.848s (-13.9% 🟢)1.598s131.01x
▲ VercelExpress3.702s (-8.8% 🟢)5.202s (-2.6%)0.000s (-100.0% 🟢)5.733s (-7.1% 🟢)2.031s111.15x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.427s (+1.2%)2.142s (+7.3% 🔺)0.000s (NaN%)2.154s (+7.0% 🔺)0.726s281.00x
🐘 PostgresNext.js (Turbopack)1.857s (+7.5% 🔺)2.444s (+8.1% 🔺)0.000s (+Infinity% 🔺)2.463s (+8.5% 🔺)0.606s251.30x
🐘 PostgresExpress2.699s (+67.1% 🔺)3.125s (+38.7% 🔺)0.000s (+Infinity% 🔺)3.188s (+39.9% 🔺)0.490s191.89x
💻 LocalNext.js (Turbopack)2.892s (-10.0% 🟢)3.553s (-8.8% 🟢)0.000s (+50.6% 🔺)3.557s (-8.8% 🟢)0.665s172.03x
💻 LocalNitro3.067s (-1.5%)3.777s (-3.0%)0.000s (+50.0% 🔺)3.780s (-3.1%)0.713s162.15x
💻 LocalExpress3.296s (-1.1%)3.966s (+3.3%)0.001s (+133.3% 🔺)3.969s (+3.2%)0.673s162.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.828s (-6.6% 🟢)6.206s (-7.1% 🟢)0.000s (-77.5% 🟢)6.604s (-8.3% 🟢)1.776s101.00x
▲ VercelExpress4.940s (-21.8% 🟢)6.586s (-13.7% 🟢)0.000s (-70.4% 🟢)7.197s (-12.1% 🟢)2.257s91.02x
▲ VercelNitro5.015s (-28.8% 🟢)6.205s (-27.6% 🟢)0.000s (+Infinity% 🔺)6.656s (-26.8% 🟢)1.640s101.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/21
🐘 PostgresNitro18/21
▲ VercelExpress10/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production126602191485
✅ 💻 Local Development167102191890
✅ 📦 Local Production167102191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7183010528235

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
✅ express109026
✅ fastify109026
✅ hono109026
✅ nextjs-turbopack13302
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

packages/builders/src/constants.ts imports getQueueTopicPrefix from @workflow/world, but @workflow/world is not declared in packages/builders/package.json dependencies, causing the build to fail with TS2307.

Fix on Vercel

@willsather
willsatherforce-pushed the willsather/add-queue-prefix-namespace branch from 187c205 to 805bea2CompareJune 9, 2026 03:37

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Indexing the fixed-shape Queues object with a QueuePrefix (now widened to string) triggers TS7053, breaking the @workflow/world-postgres build.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

setupListeners() references a deleted Queues constant, causing tsc to fail with TS2552 and breaking the @workflow/world-postgres build.

Fix on Vercel

Comment threadpackages/core/src/runtime/helpers.ts Outdated

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

With WORKFLOW_QUEUE_NAMESPACE set, parseQueueName/getQueueRoute/createTaskHandler in world-postgres still match only the non-namespaced default prefixes, so namespaced queue names produced by the core producer throw Invalid queue name (enqueue fails) and lose workflow-run serialization.

Fix on Vercel

ijjk added 2 commits June 10, 2026 17:27
* Fix namespaced queue routing reliability
* Inline queue namespace in generated routes
* Avoid loading Vercel functions during runtime import

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — solid contract design, thorough iteration; main ask is documentation

I built all five packages from this branch and ran the suites locally: 50 world tests, 6 builders constants tests, 8 world-local queue tests, 8 world-postgres queue tests, and the full core unit suite (1110 tests) — all green.

What's good

  • The naming contract is well-designed. Single-label namespace ([a-z][a-z0-9]* — no underscores) makes parseQueueName deterministic: I worked through the adversarial cases (__wkf_workflow_foo vs a hypothetical wkf namespace, multi-underscore labels, ids containing wkf_workflow_) and the regex backtracking always lands on a single unambiguous parse. The prefix/kind/id helpers centralize what was previously stringly-typed startsWith logic scattered across three packages.
  • The review iteration addressed the real correctness gaps. The original producer/consumer mismatch (entrypoint consuming a namespaced topic while start()/requeue paths enqueued un-namespaced) and the world-postgres Queues map throwing on namespaced prefixes were both caught and fixed; the follow-up routing-reliability commit routes every producer, consumer, and trigger site through resolveQueueNamespace, and bakes the namespace into generated routes at build time so the flow route doesn't depend on the runtime env.
  • runtime-import.test.ts is a good regression pin — mocking @vercel/functions to throw on load and asserting the runtime module still imports proves the lazy-loading actually holds, rather than depending on bundler luck.
  • Contract-level test coverage is comprehensive: prefix construction, namespace validation (digit-start/uppercase/empty/special chars rejected), schema acceptance/rejection, kind extraction, name parsing, and the world-local namespaced direct-handler routing test.

Main ask: documentation (should-fix, can be a fast-follow)

This PR introduces a user-facing env var (WORKFLOW_QUEUE_NAMESPACE) with a non-obvious operational requirement and ships zero docs. The critical thing to document is the build-time/runtime consistency requirement: the flow-route consumer gets the namespace baked at build, but producers (start(), resumeHook(), step-handler requeues) resolve it from the runtime env. If the env var is set in one phase but not the other (build-only env vars in some CI setups, or added to a running deployment without a rebuild), messages get enqueued to a topic no trigger listens on — silently. A short docs section ("set it as a regular project env var so build and runtime agree; changing it requires a redeploy; in-flight messages on the old topic are stranded") would save someone a very confusing afternoon. The migration story for an existing deployment that adopts a namespace (in-flight un-namespaced messages) deserves a sentence too.

Smaller notes (non-blocking)

  1. world-postgres namespace isolation is partial.getJobQueueName collapses every namespace into the same graphile job names (workflow_flows/workflow_steps). One app + one namespace works correctly (the task handler reconstructs queue names from its own configured prefix), but two namespaces sharing a database and jobPrefix — the closest analog of the stated multi-framework use case — would consume each other's jobs and reconstruct queue names under the wrong prefix. Either include the namespace in the job name (workflow_{ns}_flows) or document that postgres isolation requires distinct jobPrefix/databases.
  2. Module-load-time env resolution in two places: WORKFLOW_QUEUE_TRIGGER = createWorkflowQueueTrigger() and const stepHandler = createStepHandler(). Both bake process.env.WORKFLOW_QUEUE_NAMESPACE at import time. This works for the current build/runtime flows, but the trigger constant's docstring ("Default queue trigger (no namespace). Backward compatible.") is inaccurate whenever the env var is set in the importing process — worth rewording to "namespace resolved from the environment at import time."
  3. The lazy waitUntil has a small unhandled-rejection window: void import('@vercel/functions').then(({ waitUntil }) => waitUntil(promise)) — if the platform's waitUntil throws (e.g. called after response finalization on the cold path where the dynamic import does real work), that rejection is unobserved. A .catch with a debug log would make the failure mode visible. The lazy-loading itself is clearly deliberate (and pinned by the new test), so this is just hardening.
  4. Duplicated namespace helpers in builders/src/constants.ts vs world/src/queue.ts — clearly deliberate (the @workflow/world dependency was removed from builders in the same commit), but the two regex patterns must now stay in sync by hand. A cross-referencing comment on both sides ("mirror of …, keep in sync") would cheapen future drift.
  5. createStepHandler(namespace?)'s parameter is currently never passed explicitly (only the module-level createStepHandler() exists), so the V1 split-route step handler is env-only while the V2 combined route gets the baked option. Fine — V1 is legacy — but if the param is meant for future use a one-line comment saying so would keep someone from "cleaning it up."

CI

Checks were re-running on the head commit when I reviewed (post-fix-up push); nothing failing, and the changeset correctly covers all five touched packages with minor. Approving — the docs ask is the one thing I'd really like to see land before (or immediately after) this merges.

@github-actionsgithub-actionsBot mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2341. Merge conflicts were resolved by AI — please review carefully. (backport job run)

Sign up for freeto 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.

4 participants

@willsather@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Force GitHub README to respect dark mode (function() { var style = document.createElement('style'); style.textContent = ' .markdown-body { color-scheme: dark light; } .markdown-body pre { background: #161b22 !important; } .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; } .markdown-body table th, .markdown-body table td { border-color: #30363d !important; } .markdown-body img { background: #0d1117; } .markdown-body blockquote { border-left-color: #8b949e; } .markdown-body hr { border-color: #30363d; } '; document.head.appendChild(style); })(); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' feat(core): add optional namespace for queue topic prefix by willsather · Pull Request #2305 · vercel/workflow · GitHub
Skip to content

feat(core): add optional namespace for queue topic prefix - #2305

Merged
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace
Jun 11, 2026
Merged

feat(core): add optional namespace for queue topic prefix#2305
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace

Conversation

@willsather

@willsatherwillsather commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • add optional namespace configuration to queue topic prefixes
  • update QueuePrefix / ValidQueueName Zod schemas and world-local routing to accept namespaced prefixes
  • update world-postgres job queue prefix parsing
  • update/create tests to validate queuePrefix parsing

@willsather
willsather requested a review from a team as a code ownerJune 9, 2026 03:29
@changeset-bot

changeset-botBot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292ebf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
NameType
@workflow/worldMinor
@workflow/buildersMinor
@workflow/coreMinor
@workflow/world-localMinor
@workflow/world-postgresMinor
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@workflow/world-vercelPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
workflowMinor
@workflow/nuxtPatch
@workflow/aiMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.044s (+0.9%)1.008s (~)0.964s101.00x
💻 LocalNitro0.044s (+3.3%)1.007s (~)0.963s101.01x
🐘 PostgresNitro0.056s (-11.2% 🟢)1.013s (~)0.957s101.29x
💻 LocalNext.js (Turbopack)0.061s (+10.2% 🔺)1.006s (~)0.945s101.39x
🐘 PostgresNext.js (Turbopack)0.069s (-1.3%)1.013s (~)0.944s101.58x
🐘 PostgresExpress0.123s (+86.3% 🔺)1.041s (+2.6%)0.918s102.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.325s (+19.4% 🔺)2.514s (-7.3% 🟢)2.189s101.00x
▲ VercelNitro0.335s (+28.3% 🔺)2.236s (-8.2% 🟢)1.901s101.03x
▲ VercelNext.js (Turbopack)0.367s (+11.5% 🔺)2.239s (-4.4%)1.872s101.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (~)2.007s (~)0.912s101.00x
💻 LocalExpress1.095s (~)2.006s (~)0.911s101.00x
🐘 PostgresExpress1.099s (+0.6%)2.009s (~)0.910s101.00x
🐘 PostgresNitro1.107s (-0.6%)2.013s (~)0.906s101.01x
💻 LocalNext.js (Turbopack)1.134s (+2.3%)2.006s (~)0.873s101.04x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.010s (~)0.864s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.625s (+2.6%)3.783s (+5.9% 🔺)2.158s101.00x
▲ VercelNext.js (Turbopack)1.676s (+0.6%)3.472s (-14.9% 🟢)1.796s101.03x
▲ VercelNitro1.704s (+8.8% 🔺)3.302s (-6.5% 🟢)1.599s101.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.512s (~)11.018s (~)0.506s31.00x
💻 LocalNitro10.544s (~)11.024s (~)0.480s31.00x
💻 LocalExpress10.554s (~)11.023s (~)0.469s31.00x
🐘 PostgresExpress10.640s (-0.7%)11.040s (-2.7%)0.400s31.01x
💻 LocalNext.js (Turbopack)10.752s (+1.4%)11.023s (~)0.271s31.02x
🐘 PostgresNext.js (Turbopack)10.916s (+0.9%)11.352s (+3.0%)0.436s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro14.005s (+5.1% 🔺)15.619s (~)1.614s21.00x
▲ VercelExpress14.040s (+6.7% 🔺)16.710s (+8.2% 🔺)2.670s21.00x
▲ VercelNext.js (Turbopack)14.262s (+5.7% 🔺)15.726s (-2.3%)1.463s21.02x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.799s (+0.6%)14.027s (~)0.229s51.00x
🐘 PostgresNitro13.839s (~)14.020s (~)0.181s51.00x
💻 LocalExpress13.862s (~)14.226s (~)0.364s51.00x
🐘 PostgresExpress14.021s (+1.3%)14.231s (~)0.211s51.02x
🐘 PostgresNext.js (Turbopack)14.444s (-1.0%)15.021s (~)0.576s41.05x
💻 LocalNext.js (Turbopack)14.540s (+3.7%)15.029s (+2.8%)0.489s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.128s (-21.0% 🟢)22.147s (-18.7% 🟢)2.019s31.00x
▲ VercelNitro20.666s (-19.0% 🟢)22.220s (-19.5% 🟢)1.554s31.03x
▲ VercelNext.js (Turbopack)22.006s (-13.8% 🟢)23.701s (-12.9% 🟢)1.694s31.09x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.483s (-2.0%)13.017s (~)0.534s71.00x
💻 LocalNitro12.546s (+1.1%)13.025s (~)0.479s71.01x
💻 LocalExpress12.560s (~)13.027s (~)0.467s71.01x
🐘 PostgresExpress12.696s (~)13.174s (-1.0%)0.478s71.02x
💻 LocalNext.js (Turbopack)13.617s (+5.2% 🔺)14.027s (+5.4% 🔺)0.410s71.09x
🐘 PostgresNext.js (Turbopack)13.724s (~)14.019s (~)0.295s71.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.544s (-17.2% 🟢)29.208s (-14.7% 🟢)2.664s41.00x
▲ VercelNitro27.624s (-4.9%)29.818s (-5.0% 🟢)2.193s41.04x
▲ VercelNext.js (Turbopack)30.635s (+3.5%)32.836s (+3.1%)2.202s31.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.168s (-2.6%)2.008s (~)0.840s151.00x
🐘 PostgresExpress1.189s (-0.9%)2.007s (-0.7%)0.819s151.02x
💻 LocalNitro1.231s (+1.5%)2.006s (~)0.775s151.05x
🐘 PostgresNext.js (Turbopack)1.241s (-0.8%)2.007s (~)0.767s151.06x
💻 LocalExpress1.264s (~)2.007s (~)0.743s151.08x
💻 LocalNext.js (Turbopack)1.278s (+4.5%)2.006s (~)0.728s151.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.525s (-8.9% 🟢)4.306s (-0.8%)1.782s81.00x
▲ VercelNext.js (Turbopack)2.708s (+0.8%)4.325s (+2.5%)1.617s71.07x
▲ VercelExpress2.762s (~)4.410s (-6.6% 🟢)1.648s71.09x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-1.1%)2.007s (~)0.762s151.00x
🐘 PostgresExpress1.362s (+2.7%)2.016s (~)0.654s151.09x
🐘 PostgresNext.js (Turbopack)1.380s (-2.1%)2.007s (~)0.628s151.11x
💻 LocalNext.js (Turbopack)1.700s (-1.5%)2.073s (+3.3%)0.373s151.37x
💻 LocalNitro1.840s (+8.0% 🔺)2.149s (+3.7%)0.309s141.48x
💻 LocalExpress1.914s (+1.7%)2.315s (+4.2%)0.401s131.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.330s (-18.2% 🟢)4.700s (-24.3% 🟢)1.370s71.00x
▲ VercelExpress3.645s (-10.8% 🟢)5.687s (-7.8% 🟢)2.042s61.09x
▲ VercelNext.js (Turbopack)3.647s (-11.2% 🟢)5.432s (-11.5% 🟢)1.784s61.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.382s (-1.7%)2.008s (~)0.626s151.00x
🐘 PostgresExpress1.437s (+3.1%)2.160s (+7.4% 🔺)0.723s141.04x
🐘 PostgresNext.js (Turbopack)1.675s (-4.8%)2.223s (-3.1%)0.548s141.21x
💻 LocalNext.js (Turbopack)4.473s (+1.8%)5.156s (+2.9%)0.683s73.24x
💻 LocalNitro5.154s (+9.2% 🔺)5.680s (+13.4% 🔺)0.526s63.73x
💻 LocalExpress5.448s (+2.8%)6.013s (~)0.565s53.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.797s (-18.7% 🟢)7.028s (-11.0% 🟢)2.231s51.00x
▲ VercelNitro5.811s (-13.7% 🟢)8.021s (-7.9% 🟢)2.209s41.21x
▲ VercelNext.js (Turbopack)6.254s (+6.5% 🔺)8.409s (+8.1% 🔺)2.154s41.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.176s (-2.0%)2.008s (~)0.832s151.00x
🐘 PostgresExpress1.220s (+1.5%)2.020s (+0.6%)0.799s151.04x
🐘 PostgresNext.js (Turbopack)1.235s (-2.5%)2.009s (~)0.774s151.05x
💻 LocalNext.js (Turbopack)1.375s (+5.3% 🔺)2.006s (~)0.631s151.17x
💻 LocalExpress1.597s (-3.6%)2.007s (-3.2%)0.410s151.36x
💻 LocalNitro1.621s (+5.1% 🔺)2.007s (~)0.386s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.335s (-9.0% 🟢)3.982s (-5.1% 🟢)1.647s81.00x
▲ VercelNitro2.563s (-4.1%)3.891s (-10.2% 🟢)1.329s81.10x
▲ VercelNext.js (Turbopack)2.602s (-40.5% 🟢)4.311s (-31.5% 🟢)1.709s81.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.258s (-1.3%)2.009s (~)0.751s151.00x
🐘 PostgresExpress1.349s (+8.5% 🔺)2.082s (+3.5%)0.734s151.07x
🐘 PostgresNext.js (Turbopack)1.368s (-2.1%)2.008s (~)0.639s151.09x
💻 LocalNext.js (Turbopack)1.988s (-1.6%)2.508s (~)0.519s121.58x
💻 LocalExpress2.015s (-5.2% 🟢)2.472s (-4.6%)0.457s131.60x
💻 LocalNitro2.151s (+22.5% 🔺)2.593s (+25.1% 🔺)0.441s121.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.315s (-19.1% 🟢)4.859s (-19.1% 🟢)1.544s71.00x
▲ VercelExpress3.396s (-7.6% 🟢)5.325s (-5.1% 🟢)1.929s61.02x
▲ VercelNext.js (Turbopack)3.987s (-11.8% 🟢)5.384s (-12.7% 🟢)1.397s61.20x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.335s (-11.0% 🟢)2.006s (-16.3% 🟢)0.672s151.00x
🐘 PostgresNitro1.371s (-6.2% 🟢)2.007s (~)0.636s151.03x
🐘 PostgresNext.js (Turbopack)1.668s (+0.7%)2.077s (~)0.408s151.25x
💻 LocalNext.js (Turbopack)5.289s (+2.5%)5.849s (-2.8%)0.560s63.96x
💻 LocalNitro5.644s (+19.0% 🔺)6.180s (+15.6% 🔺)0.536s64.23x
💻 LocalExpress6.583s (+12.3% 🔺)7.018s (+12.9% 🔺)0.434s54.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.952s (~)6.573s (-2.4%)1.621s51.00x
▲ VercelExpress5.498s (+8.4% 🔺)7.998s (+20.7% 🔺)2.500s41.11x
▲ VercelNext.js (Turbopack)5.529s (-4.5%)7.480s (-1.3%)1.950s51.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.542s (-18.7% 🟢)1.025s (-2.2%)0.483s591.00x
🐘 PostgresNitro0.551s (-9.6% 🟢)1.006s (~)0.455s601.02x
💻 LocalExpress0.608s (-7.3% 🟢)1.005s (-3.3%)0.397s601.12x
💻 LocalNitro0.615s (-23.6% 🟢)1.005s (-16.6% 🟢)0.390s601.13x
🐘 PostgresNext.js (Turbopack)0.803s (-1.1%)1.023s (+1.7%)0.220s591.48x
💻 LocalNext.js (Turbopack)0.895s (+28.5% 🔺)1.058s (+5.3% 🔺)0.163s571.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.453s (-0.9%)7.343s (+3.2%)1.889s91.00x
▲ VercelNitro5.713s (-23.4% 🟢)7.108s (-25.3% 🟢)1.395s91.05x
▲ VercelNext.js (Turbopack)5.829s (+15.5% 🔺)7.381s (+7.8% 🔺)1.553s91.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.384s (-2.3%)2.009s (~)0.624s451.00x
🐘 PostgresExpress1.478s (-3.8%)2.084s (-3.2%)0.607s441.07x
💻 LocalExpress1.546s (-2.9%)2.007s (-1.1%)0.461s451.12x
💻 LocalNitro1.557s (+6.3% 🔺)2.007s (~)0.450s451.12x
🐘 PostgresNext.js (Turbopack)2.016s (+3.8%)2.343s (+7.7% 🔺)0.327s391.46x
💻 LocalNext.js (Turbopack)2.120s (+22.7% 🔺)3.008s (+48.3% 🔺)0.888s301.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.517s (+2.3%)15.691s (+1.4%)2.175s61.00x
▲ VercelExpress13.941s (-14.9% 🟢)16.387s (-10.5% 🟢)2.447s61.03x
▲ VercelNext.js (Turbopack)166.602s (+1027.7% 🔺)168.117s (+892.9% 🔺)1.514s212.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.821s (-3.2%)3.253s (-0.9%)0.432s371.00x
🐘 PostgresExpress3.127s (+7.4% 🔺)3.739s (+5.6% 🔺)0.612s331.11x
💻 LocalNitro3.335s (+4.0%)4.009s (~)0.674s301.18x
💻 LocalExpress3.367s (-1.5%)4.010s (~)0.643s301.19x
🐘 PostgresNext.js (Turbopack)3.891s (+0.8%)4.183s (+2.6%)0.291s291.38x
💻 LocalNext.js (Turbopack)4.385s (+17.6% 🔺)5.012s (+22.0% 🔺)0.627s241.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.618s (-14.0% 🟢)28.009s (-12.4% 🟢)2.391s51.00x
▲ VercelExpress26.866s (-6.9% 🟢)30.194s (-2.3%)3.328s51.05x
▲ VercelNext.js (Turbopack)27.500s (+1.9%)29.271s (~)1.772s51.07x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.221s (-6.2% 🟢)1.006s (~)0.786s601.00x
🐘 PostgresExpress0.261s (+3.6%)1.013s (~)0.751s601.18x
🐘 PostgresNext.js (Turbopack)0.265s (-6.0% 🟢)1.006s (~)0.741s601.20x
💻 LocalNitro0.423s (~)1.005s (~)0.582s601.91x
💻 LocalExpress0.434s (-6.6% 🟢)1.005s (~)0.571s601.97x
💻 LocalNext.js (Turbopack)0.603s (-1.3%)1.022s (-1.6%)0.419s592.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.389s (+1.9%)3.820s (-11.9% 🟢)1.431s161.00x
▲ VercelExpress2.413s (+9.1% 🔺)4.293s (+4.8%)1.880s141.01x
▲ VercelNext.js (Turbopack)2.541s (+15.5% 🔺)3.917s (-7.2% 🟢)1.376s161.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.329s (-11.2% 🟢)1.007s (~)0.677s901.00x
🐘 PostgresNext.js (Turbopack)0.495s (+2.5%)1.006s (~)0.512s901.50x
🐘 PostgresExpress0.551s (+62.5% 🔺)1.129s (+12.1% 🔺)0.578s801.67x
💻 LocalExpress2.148s (-2.0%)2.885s (+2.2%)0.736s326.52x
💻 LocalNitro2.172s (+5.2% 🔺)2.685s (+1.8%)0.513s346.60x
💻 LocalNext.js (Turbopack)2.347s (-4.2%)3.077s (-1.0%)0.731s307.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.478s (-87.4% 🟢)7.446s (-83.5% 🟢)1.968s131.00x
▲ VercelNitro5.543s (-87.3% 🟢)7.124s (-84.5% 🟢)1.581s131.01x
▲ VercelNext.js (Turbopack)5.628s (-10.2% 🟢)7.236s (-14.8% 🟢)1.608s131.03x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.656s (-7.2% 🟢)1.006s (~)0.350s1201.00x
🐘 PostgresExpress0.748s (+19.6% 🔺)1.164s (+10.3% 🔺)0.416s1041.14x
🐘 PostgresNext.js (Turbopack)0.972s (-0.8%)1.644s (+2.2%)0.672s741.48x
💻 LocalNitro9.731s (+11.7% 🔺)10.446s (+11.9% 🔺)0.715s1214.83x
💻 LocalNext.js (Turbopack)10.183s (-1.3%)10.861s (-3.9%)0.678s1215.52x
💻 LocalExpress10.295s (~)10.779s (-0.8%)0.484s1215.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.976s (-1.8%)17.377s (-0.7%)2.401s71.00x
▲ VercelNitro15.437s (-95.0% 🟢)17.367s (-94.5% 🟢)1.930s71.03x
▲ VercelNext.js (Turbopack)18.443s (-88.5% 🟢)20.158s (-87.6% 🟢)1.714s71.23x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.156s (-2.1%)1.998s (~)0.001s (-21.4% 🟢)2.009s (~)0.853s101.00x
💻 LocalExpress1.171s (~)2.005s (~)0.013s (~)2.021s (~)0.850s101.01x
💻 LocalNitro1.183s (+2.8%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.837s101.02x
🐘 PostgresExpress1.198s (~)1.990s (-0.5%)0.001s (-97.1% 🟢)2.013s (-1.5%)0.815s101.04x
💻 LocalNext.js (Turbopack)1.209s (+3.4%)2.003s (~)0.010s (+2.0%)2.018s (~)0.809s101.05x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.002s (~)0.001s (-33.3% 🟢)2.011s (~)0.788s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.135s (-1.4%)3.025s (-11.5% 🟢)1.522s (+195.0% 🔺)4.959s (+11.0% 🔺)2.824s101.00x
▲ VercelExpress2.136s (~)3.435s (+0.8%)0.359s (-31.7% 🟢)4.283s (-3.7%)2.147s101.00x
▲ VercelNext.js (Turbopack)2.523s (+12.6% 🔺)3.277s (-7.7% 🟢)1.467s (-88.2% 🟢)5.161s (-68.7% 🟢)2.637s101.18x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.590s (-4.4%)2.005s (~)0.005s (+32.5% 🔺)2.027s (~)0.438s301.00x
💻 LocalNitro1.597s (-8.4% 🟢)2.012s (~)0.012s (+28.8% 🔺)2.026s (-7.8% 🟢)0.430s301.00x
💻 LocalExpress1.619s (-1.1%)2.012s (~)0.014s (+22.7% 🔺)2.027s (~)0.409s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.6% 🔺)2.009s (~)0.013s (+25.4% 🔺)2.025s (~)0.293s301.09x
🐘 PostgresNext.js (Turbopack)1.738s (-1.4%)2.010s (~)0.005s (+30.6% 🔺)2.027s (~)0.288s301.09x
🐘 PostgresExpress1.888s (+8.7% 🔺)2.333s (+8.9% 🔺)0.008s (+155.3% 🔺)2.383s (+10.3% 🔺)0.495s261.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.848s (+1.6%)7.572s (+1.9%)0.251s (-29.0% 🟢)8.364s (~)2.516s81.00x
▲ VercelNitro5.935s (+3.3%)6.887s (-9.3% 🟢)0.494s (+46.4% 🔺)7.791s (-8.2% 🟢)1.856s81.01x
▲ VercelNext.js (Turbopack)5.956s (-6.5% 🟢)6.857s (-13.6% 🟢)0.270s (-25.3% 🟢)7.562s (-14.7% 🟢)1.606s81.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.718s (-0.6%)1.051s (+1.9%)0.000s (-66.1% 🟢)1.061s (+1.3%)0.343s571.00x
🐘 PostgresNext.js (Turbopack)0.833s (~)1.092s (+1.9%)0.000s (-49.1% 🟢)1.099s (+1.8%)0.266s551.16x
🐘 PostgresExpress1.143s (+16.9% 🔺)1.559s (+9.2% 🔺)0.000s (-100.0% 🟢)1.599s (+10.4% 🔺)0.456s381.59x
💻 LocalNitro1.398s (+3.3%)2.013s (~)0.000s (-46.7% 🟢)2.015s (~)0.618s301.95x
💻 LocalExpress1.444s (-2.6%)2.014s (~)0.001s (+53.3% 🔺)2.017s (~)0.572s302.01x
💻 LocalNext.js (Turbopack)1.479s (+2.2%)2.012s (~)0.000s (+25.0% 🔺)2.015s (~)0.536s302.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.231s (-2.3%)4.317s (-11.8% 🟢)0.000s (NaN%)4.733s (-13.3% 🟢)1.502s131.00x
▲ VercelNitro3.250s (-9.7% 🟢)4.423s (-12.8% 🟢)0.000s (NaN%)4.848s (-13.9% 🟢)1.598s131.01x
▲ VercelExpress3.702s (-8.8% 🟢)5.202s (-2.6%)0.000s (-100.0% 🟢)5.733s (-7.1% 🟢)2.031s111.15x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.427s (+1.2%)2.142s (+7.3% 🔺)0.000s (NaN%)2.154s (+7.0% 🔺)0.726s281.00x
🐘 PostgresNext.js (Turbopack)1.857s (+7.5% 🔺)2.444s (+8.1% 🔺)0.000s (+Infinity% 🔺)2.463s (+8.5% 🔺)0.606s251.30x
🐘 PostgresExpress2.699s (+67.1% 🔺)3.125s (+38.7% 🔺)0.000s (+Infinity% 🔺)3.188s (+39.9% 🔺)0.490s191.89x
💻 LocalNext.js (Turbopack)2.892s (-10.0% 🟢)3.553s (-8.8% 🟢)0.000s (+50.6% 🔺)3.557s (-8.8% 🟢)0.665s172.03x
💻 LocalNitro3.067s (-1.5%)3.777s (-3.0%)0.000s (+50.0% 🔺)3.780s (-3.1%)0.713s162.15x
💻 LocalExpress3.296s (-1.1%)3.966s (+3.3%)0.001s (+133.3% 🔺)3.969s (+3.2%)0.673s162.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.828s (-6.6% 🟢)6.206s (-7.1% 🟢)0.000s (-77.5% 🟢)6.604s (-8.3% 🟢)1.776s101.00x
▲ VercelExpress4.940s (-21.8% 🟢)6.586s (-13.7% 🟢)0.000s (-70.4% 🟢)7.197s (-12.1% 🟢)2.257s91.02x
▲ VercelNitro5.015s (-28.8% 🟢)6.205s (-27.6% 🟢)0.000s (+Infinity% 🔺)6.656s (-26.8% 🟢)1.640s101.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/21
🐘 PostgresNitro18/21
▲ VercelExpress10/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production126602191485
✅ 💻 Local Development167102191890
✅ 📦 Local Production167102191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7183010528235

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
✅ express109026
✅ fastify109026
✅ hono109026
✅ nextjs-turbopack13302
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

packages/builders/src/constants.ts imports getQueueTopicPrefix from @workflow/world, but @workflow/world is not declared in packages/builders/package.json dependencies, causing the build to fail with TS2307.

Fix on Vercel

@willsather
willsatherforce-pushed the willsather/add-queue-prefix-namespace branch from 187c205 to 805bea2CompareJune 9, 2026 03:37

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Indexing the fixed-shape Queues object with a QueuePrefix (now widened to string) triggers TS7053, breaking the @workflow/world-postgres build.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

setupListeners() references a deleted Queues constant, causing tsc to fail with TS2552 and breaking the @workflow/world-postgres build.

Fix on Vercel

Comment threadpackages/core/src/runtime/helpers.ts Outdated

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

With WORKFLOW_QUEUE_NAMESPACE set, parseQueueName/getQueueRoute/createTaskHandler in world-postgres still match only the non-namespaced default prefixes, so namespaced queue names produced by the core producer throw Invalid queue name (enqueue fails) and lose workflow-run serialization.

Fix on Vercel

ijjk added 2 commits June 10, 2026 17:27
* Fix namespaced queue routing reliability
* Inline queue namespace in generated routes
* Avoid loading Vercel functions during runtime import

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — solid contract design, thorough iteration; main ask is documentation

I built all five packages from this branch and ran the suites locally: 50 world tests, 6 builders constants tests, 8 world-local queue tests, 8 world-postgres queue tests, and the full core unit suite (1110 tests) — all green.

What's good

  • The naming contract is well-designed. Single-label namespace ([a-z][a-z0-9]* — no underscores) makes parseQueueName deterministic: I worked through the adversarial cases (__wkf_workflow_foo vs a hypothetical wkf namespace, multi-underscore labels, ids containing wkf_workflow_) and the regex backtracking always lands on a single unambiguous parse. The prefix/kind/id helpers centralize what was previously stringly-typed startsWith logic scattered across three packages.
  • The review iteration addressed the real correctness gaps. The original producer/consumer mismatch (entrypoint consuming a namespaced topic while start()/requeue paths enqueued un-namespaced) and the world-postgres Queues map throwing on namespaced prefixes were both caught and fixed; the follow-up routing-reliability commit routes every producer, consumer, and trigger site through resolveQueueNamespace, and bakes the namespace into generated routes at build time so the flow route doesn't depend on the runtime env.
  • runtime-import.test.ts is a good regression pin — mocking @vercel/functions to throw on load and asserting the runtime module still imports proves the lazy-loading actually holds, rather than depending on bundler luck.
  • Contract-level test coverage is comprehensive: prefix construction, namespace validation (digit-start/uppercase/empty/special chars rejected), schema acceptance/rejection, kind extraction, name parsing, and the world-local namespaced direct-handler routing test.

Main ask: documentation (should-fix, can be a fast-follow)

This PR introduces a user-facing env var (WORKFLOW_QUEUE_NAMESPACE) with a non-obvious operational requirement and ships zero docs. The critical thing to document is the build-time/runtime consistency requirement: the flow-route consumer gets the namespace baked at build, but producers (start(), resumeHook(), step-handler requeues) resolve it from the runtime env. If the env var is set in one phase but not the other (build-only env vars in some CI setups, or added to a running deployment without a rebuild), messages get enqueued to a topic no trigger listens on — silently. A short docs section ("set it as a regular project env var so build and runtime agree; changing it requires a redeploy; in-flight messages on the old topic are stranded") would save someone a very confusing afternoon. The migration story for an existing deployment that adopts a namespace (in-flight un-namespaced messages) deserves a sentence too.

Smaller notes (non-blocking)

  1. world-postgres namespace isolation is partial.getJobQueueName collapses every namespace into the same graphile job names (workflow_flows/workflow_steps). One app + one namespace works correctly (the task handler reconstructs queue names from its own configured prefix), but two namespaces sharing a database and jobPrefix — the closest analog of the stated multi-framework use case — would consume each other's jobs and reconstruct queue names under the wrong prefix. Either include the namespace in the job name (workflow_{ns}_flows) or document that postgres isolation requires distinct jobPrefix/databases.
  2. Module-load-time env resolution in two places: WORKFLOW_QUEUE_TRIGGER = createWorkflowQueueTrigger() and const stepHandler = createStepHandler(). Both bake process.env.WORKFLOW_QUEUE_NAMESPACE at import time. This works for the current build/runtime flows, but the trigger constant's docstring ("Default queue trigger (no namespace). Backward compatible.") is inaccurate whenever the env var is set in the importing process — worth rewording to "namespace resolved from the environment at import time."
  3. The lazy waitUntil has a small unhandled-rejection window: void import('@vercel/functions').then(({ waitUntil }) => waitUntil(promise)) — if the platform's waitUntil throws (e.g. called after response finalization on the cold path where the dynamic import does real work), that rejection is unobserved. A .catch with a debug log would make the failure mode visible. The lazy-loading itself is clearly deliberate (and pinned by the new test), so this is just hardening.
  4. Duplicated namespace helpers in builders/src/constants.ts vs world/src/queue.ts — clearly deliberate (the @workflow/world dependency was removed from builders in the same commit), but the two regex patterns must now stay in sync by hand. A cross-referencing comment on both sides ("mirror of …, keep in sync") would cheapen future drift.
  5. createStepHandler(namespace?)'s parameter is currently never passed explicitly (only the module-level createStepHandler() exists), so the V1 split-route step handler is env-only while the V2 combined route gets the baked option. Fine — V1 is legacy — but if the param is meant for future use a one-line comment saying so would keep someone from "cleaning it up."

CI

Checks were re-running on the head commit when I reviewed (post-fix-up push); nothing failing, and the changeset correctly covers all five touched packages with minor. Approving — the docs ask is the one thing I'd really like to see land before (or immediately after) this merges.

@github-actionsgithub-actionsBot mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2341. Merge conflicts were resolved by AI — please review carefully. (backport job run)

Sign up for freeto 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.

4 participants

@willsather@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Highlight search terms from Google/DuckDuckGo/Bing referrer (function() { var ref = document.referrer; var terms = []; if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) { var url = new URL(ref); var q = url.searchParams.get('q') || url.searchParams.get('p'); if (q) { terms = q.split(/\s+/).filter(function(t) { return t.length > 2; }); } } if (terms.length === 0) return; var style = document.createElement('style'); style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }'; document.head.appendChild(style); function highlight(node) { if (node.nodeType === 3) { // text node var text = node.textContent; var found = false; terms.forEach(function(term) { var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\]\\]/g, '\\') + ')', 'gi'); if (regex.test(text)) { found = true; var frag = document.createDocumentFragment(); var parts = text.split(regex); parts.forEach(function(part, i) { if (i % 2 === 0) { frag.appendChild(document.createTextNode(part)); } else { var span = document.createElement('span'); span.className = 'userscript-highlight'; span.textContent = part; frag.appendChild(span); } }); node.parentNode.replaceChild(frag, node); } }); } else if (node.nodeType === 1 && node.childNodes) { // element var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT']; if (!skipTags.includes(node.tagName)) { Array.from(node.childNodes).forEach(highlight); } } } highlight(document.body); // Re-highlight on dynamic content var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1 || node.nodeType === 3) highlight(node); }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' feat(core): add optional namespace for queue topic prefix by willsather · Pull Request #2305 · vercel/workflow · GitHub
Skip to content

feat(core): add optional namespace for queue topic prefix - #2305

Merged
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace
Jun 11, 2026
Merged

feat(core): add optional namespace for queue topic prefix#2305
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace

Conversation

@willsather

@willsatherwillsather commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • add optional namespace configuration to queue topic prefixes
  • update QueuePrefix / ValidQueueName Zod schemas and world-local routing to accept namespaced prefixes
  • update world-postgres job queue prefix parsing
  • update/create tests to validate queuePrefix parsing

@willsather
willsather requested a review from a team as a code ownerJune 9, 2026 03:29
@changeset-bot

changeset-botBot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292ebf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
NameType
@workflow/worldMinor
@workflow/buildersMinor
@workflow/coreMinor
@workflow/world-localMinor
@workflow/world-postgresMinor
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@workflow/world-vercelPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
workflowMinor
@workflow/nuxtPatch
@workflow/aiMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.044s (+0.9%)1.008s (~)0.964s101.00x
💻 LocalNitro0.044s (+3.3%)1.007s (~)0.963s101.01x
🐘 PostgresNitro0.056s (-11.2% 🟢)1.013s (~)0.957s101.29x
💻 LocalNext.js (Turbopack)0.061s (+10.2% 🔺)1.006s (~)0.945s101.39x
🐘 PostgresNext.js (Turbopack)0.069s (-1.3%)1.013s (~)0.944s101.58x
🐘 PostgresExpress0.123s (+86.3% 🔺)1.041s (+2.6%)0.918s102.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.325s (+19.4% 🔺)2.514s (-7.3% 🟢)2.189s101.00x
▲ VercelNitro0.335s (+28.3% 🔺)2.236s (-8.2% 🟢)1.901s101.03x
▲ VercelNext.js (Turbopack)0.367s (+11.5% 🔺)2.239s (-4.4%)1.872s101.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (~)2.007s (~)0.912s101.00x
💻 LocalExpress1.095s (~)2.006s (~)0.911s101.00x
🐘 PostgresExpress1.099s (+0.6%)2.009s (~)0.910s101.00x
🐘 PostgresNitro1.107s (-0.6%)2.013s (~)0.906s101.01x
💻 LocalNext.js (Turbopack)1.134s (+2.3%)2.006s (~)0.873s101.04x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.010s (~)0.864s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.625s (+2.6%)3.783s (+5.9% 🔺)2.158s101.00x
▲ VercelNext.js (Turbopack)1.676s (+0.6%)3.472s (-14.9% 🟢)1.796s101.03x
▲ VercelNitro1.704s (+8.8% 🔺)3.302s (-6.5% 🟢)1.599s101.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.512s (~)11.018s (~)0.506s31.00x
💻 LocalNitro10.544s (~)11.024s (~)0.480s31.00x
💻 LocalExpress10.554s (~)11.023s (~)0.469s31.00x
🐘 PostgresExpress10.640s (-0.7%)11.040s (-2.7%)0.400s31.01x
💻 LocalNext.js (Turbopack)10.752s (+1.4%)11.023s (~)0.271s31.02x
🐘 PostgresNext.js (Turbopack)10.916s (+0.9%)11.352s (+3.0%)0.436s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro14.005s (+5.1% 🔺)15.619s (~)1.614s21.00x
▲ VercelExpress14.040s (+6.7% 🔺)16.710s (+8.2% 🔺)2.670s21.00x
▲ VercelNext.js (Turbopack)14.262s (+5.7% 🔺)15.726s (-2.3%)1.463s21.02x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.799s (+0.6%)14.027s (~)0.229s51.00x
🐘 PostgresNitro13.839s (~)14.020s (~)0.181s51.00x
💻 LocalExpress13.862s (~)14.226s (~)0.364s51.00x
🐘 PostgresExpress14.021s (+1.3%)14.231s (~)0.211s51.02x
🐘 PostgresNext.js (Turbopack)14.444s (-1.0%)15.021s (~)0.576s41.05x
💻 LocalNext.js (Turbopack)14.540s (+3.7%)15.029s (+2.8%)0.489s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.128s (-21.0% 🟢)22.147s (-18.7% 🟢)2.019s31.00x
▲ VercelNitro20.666s (-19.0% 🟢)22.220s (-19.5% 🟢)1.554s31.03x
▲ VercelNext.js (Turbopack)22.006s (-13.8% 🟢)23.701s (-12.9% 🟢)1.694s31.09x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.483s (-2.0%)13.017s (~)0.534s71.00x
💻 LocalNitro12.546s (+1.1%)13.025s (~)0.479s71.01x
💻 LocalExpress12.560s (~)13.027s (~)0.467s71.01x
🐘 PostgresExpress12.696s (~)13.174s (-1.0%)0.478s71.02x
💻 LocalNext.js (Turbopack)13.617s (+5.2% 🔺)14.027s (+5.4% 🔺)0.410s71.09x
🐘 PostgresNext.js (Turbopack)13.724s (~)14.019s (~)0.295s71.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.544s (-17.2% 🟢)29.208s (-14.7% 🟢)2.664s41.00x
▲ VercelNitro27.624s (-4.9%)29.818s (-5.0% 🟢)2.193s41.04x
▲ VercelNext.js (Turbopack)30.635s (+3.5%)32.836s (+3.1%)2.202s31.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.168s (-2.6%)2.008s (~)0.840s151.00x
🐘 PostgresExpress1.189s (-0.9%)2.007s (-0.7%)0.819s151.02x
💻 LocalNitro1.231s (+1.5%)2.006s (~)0.775s151.05x
🐘 PostgresNext.js (Turbopack)1.241s (-0.8%)2.007s (~)0.767s151.06x
💻 LocalExpress1.264s (~)2.007s (~)0.743s151.08x
💻 LocalNext.js (Turbopack)1.278s (+4.5%)2.006s (~)0.728s151.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.525s (-8.9% 🟢)4.306s (-0.8%)1.782s81.00x
▲ VercelNext.js (Turbopack)2.708s (+0.8%)4.325s (+2.5%)1.617s71.07x
▲ VercelExpress2.762s (~)4.410s (-6.6% 🟢)1.648s71.09x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-1.1%)2.007s (~)0.762s151.00x
🐘 PostgresExpress1.362s (+2.7%)2.016s (~)0.654s151.09x
🐘 PostgresNext.js (Turbopack)1.380s (-2.1%)2.007s (~)0.628s151.11x
💻 LocalNext.js (Turbopack)1.700s (-1.5%)2.073s (+3.3%)0.373s151.37x
💻 LocalNitro1.840s (+8.0% 🔺)2.149s (+3.7%)0.309s141.48x
💻 LocalExpress1.914s (+1.7%)2.315s (+4.2%)0.401s131.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.330s (-18.2% 🟢)4.700s (-24.3% 🟢)1.370s71.00x
▲ VercelExpress3.645s (-10.8% 🟢)5.687s (-7.8% 🟢)2.042s61.09x
▲ VercelNext.js (Turbopack)3.647s (-11.2% 🟢)5.432s (-11.5% 🟢)1.784s61.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.382s (-1.7%)2.008s (~)0.626s151.00x
🐘 PostgresExpress1.437s (+3.1%)2.160s (+7.4% 🔺)0.723s141.04x
🐘 PostgresNext.js (Turbopack)1.675s (-4.8%)2.223s (-3.1%)0.548s141.21x
💻 LocalNext.js (Turbopack)4.473s (+1.8%)5.156s (+2.9%)0.683s73.24x
💻 LocalNitro5.154s (+9.2% 🔺)5.680s (+13.4% 🔺)0.526s63.73x
💻 LocalExpress5.448s (+2.8%)6.013s (~)0.565s53.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.797s (-18.7% 🟢)7.028s (-11.0% 🟢)2.231s51.00x
▲ VercelNitro5.811s (-13.7% 🟢)8.021s (-7.9% 🟢)2.209s41.21x
▲ VercelNext.js (Turbopack)6.254s (+6.5% 🔺)8.409s (+8.1% 🔺)2.154s41.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.176s (-2.0%)2.008s (~)0.832s151.00x
🐘 PostgresExpress1.220s (+1.5%)2.020s (+0.6%)0.799s151.04x
🐘 PostgresNext.js (Turbopack)1.235s (-2.5%)2.009s (~)0.774s151.05x
💻 LocalNext.js (Turbopack)1.375s (+5.3% 🔺)2.006s (~)0.631s151.17x
💻 LocalExpress1.597s (-3.6%)2.007s (-3.2%)0.410s151.36x
💻 LocalNitro1.621s (+5.1% 🔺)2.007s (~)0.386s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.335s (-9.0% 🟢)3.982s (-5.1% 🟢)1.647s81.00x
▲ VercelNitro2.563s (-4.1%)3.891s (-10.2% 🟢)1.329s81.10x
▲ VercelNext.js (Turbopack)2.602s (-40.5% 🟢)4.311s (-31.5% 🟢)1.709s81.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.258s (-1.3%)2.009s (~)0.751s151.00x
🐘 PostgresExpress1.349s (+8.5% 🔺)2.082s (+3.5%)0.734s151.07x
🐘 PostgresNext.js (Turbopack)1.368s (-2.1%)2.008s (~)0.639s151.09x
💻 LocalNext.js (Turbopack)1.988s (-1.6%)2.508s (~)0.519s121.58x
💻 LocalExpress2.015s (-5.2% 🟢)2.472s (-4.6%)0.457s131.60x
💻 LocalNitro2.151s (+22.5% 🔺)2.593s (+25.1% 🔺)0.441s121.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.315s (-19.1% 🟢)4.859s (-19.1% 🟢)1.544s71.00x
▲ VercelExpress3.396s (-7.6% 🟢)5.325s (-5.1% 🟢)1.929s61.02x
▲ VercelNext.js (Turbopack)3.987s (-11.8% 🟢)5.384s (-12.7% 🟢)1.397s61.20x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.335s (-11.0% 🟢)2.006s (-16.3% 🟢)0.672s151.00x
🐘 PostgresNitro1.371s (-6.2% 🟢)2.007s (~)0.636s151.03x
🐘 PostgresNext.js (Turbopack)1.668s (+0.7%)2.077s (~)0.408s151.25x
💻 LocalNext.js (Turbopack)5.289s (+2.5%)5.849s (-2.8%)0.560s63.96x
💻 LocalNitro5.644s (+19.0% 🔺)6.180s (+15.6% 🔺)0.536s64.23x
💻 LocalExpress6.583s (+12.3% 🔺)7.018s (+12.9% 🔺)0.434s54.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.952s (~)6.573s (-2.4%)1.621s51.00x
▲ VercelExpress5.498s (+8.4% 🔺)7.998s (+20.7% 🔺)2.500s41.11x
▲ VercelNext.js (Turbopack)5.529s (-4.5%)7.480s (-1.3%)1.950s51.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.542s (-18.7% 🟢)1.025s (-2.2%)0.483s591.00x
🐘 PostgresNitro0.551s (-9.6% 🟢)1.006s (~)0.455s601.02x
💻 LocalExpress0.608s (-7.3% 🟢)1.005s (-3.3%)0.397s601.12x
💻 LocalNitro0.615s (-23.6% 🟢)1.005s (-16.6% 🟢)0.390s601.13x
🐘 PostgresNext.js (Turbopack)0.803s (-1.1%)1.023s (+1.7%)0.220s591.48x
💻 LocalNext.js (Turbopack)0.895s (+28.5% 🔺)1.058s (+5.3% 🔺)0.163s571.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.453s (-0.9%)7.343s (+3.2%)1.889s91.00x
▲ VercelNitro5.713s (-23.4% 🟢)7.108s (-25.3% 🟢)1.395s91.05x
▲ VercelNext.js (Turbopack)5.829s (+15.5% 🔺)7.381s (+7.8% 🔺)1.553s91.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.384s (-2.3%)2.009s (~)0.624s451.00x
🐘 PostgresExpress1.478s (-3.8%)2.084s (-3.2%)0.607s441.07x
💻 LocalExpress1.546s (-2.9%)2.007s (-1.1%)0.461s451.12x
💻 LocalNitro1.557s (+6.3% 🔺)2.007s (~)0.450s451.12x
🐘 PostgresNext.js (Turbopack)2.016s (+3.8%)2.343s (+7.7% 🔺)0.327s391.46x
💻 LocalNext.js (Turbopack)2.120s (+22.7% 🔺)3.008s (+48.3% 🔺)0.888s301.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.517s (+2.3%)15.691s (+1.4%)2.175s61.00x
▲ VercelExpress13.941s (-14.9% 🟢)16.387s (-10.5% 🟢)2.447s61.03x
▲ VercelNext.js (Turbopack)166.602s (+1027.7% 🔺)168.117s (+892.9% 🔺)1.514s212.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.821s (-3.2%)3.253s (-0.9%)0.432s371.00x
🐘 PostgresExpress3.127s (+7.4% 🔺)3.739s (+5.6% 🔺)0.612s331.11x
💻 LocalNitro3.335s (+4.0%)4.009s (~)0.674s301.18x
💻 LocalExpress3.367s (-1.5%)4.010s (~)0.643s301.19x
🐘 PostgresNext.js (Turbopack)3.891s (+0.8%)4.183s (+2.6%)0.291s291.38x
💻 LocalNext.js (Turbopack)4.385s (+17.6% 🔺)5.012s (+22.0% 🔺)0.627s241.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.618s (-14.0% 🟢)28.009s (-12.4% 🟢)2.391s51.00x
▲ VercelExpress26.866s (-6.9% 🟢)30.194s (-2.3%)3.328s51.05x
▲ VercelNext.js (Turbopack)27.500s (+1.9%)29.271s (~)1.772s51.07x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.221s (-6.2% 🟢)1.006s (~)0.786s601.00x
🐘 PostgresExpress0.261s (+3.6%)1.013s (~)0.751s601.18x
🐘 PostgresNext.js (Turbopack)0.265s (-6.0% 🟢)1.006s (~)0.741s601.20x
💻 LocalNitro0.423s (~)1.005s (~)0.582s601.91x
💻 LocalExpress0.434s (-6.6% 🟢)1.005s (~)0.571s601.97x
💻 LocalNext.js (Turbopack)0.603s (-1.3%)1.022s (-1.6%)0.419s592.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.389s (+1.9%)3.820s (-11.9% 🟢)1.431s161.00x
▲ VercelExpress2.413s (+9.1% 🔺)4.293s (+4.8%)1.880s141.01x
▲ VercelNext.js (Turbopack)2.541s (+15.5% 🔺)3.917s (-7.2% 🟢)1.376s161.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.329s (-11.2% 🟢)1.007s (~)0.677s901.00x
🐘 PostgresNext.js (Turbopack)0.495s (+2.5%)1.006s (~)0.512s901.50x
🐘 PostgresExpress0.551s (+62.5% 🔺)1.129s (+12.1% 🔺)0.578s801.67x
💻 LocalExpress2.148s (-2.0%)2.885s (+2.2%)0.736s326.52x
💻 LocalNitro2.172s (+5.2% 🔺)2.685s (+1.8%)0.513s346.60x
💻 LocalNext.js (Turbopack)2.347s (-4.2%)3.077s (-1.0%)0.731s307.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.478s (-87.4% 🟢)7.446s (-83.5% 🟢)1.968s131.00x
▲ VercelNitro5.543s (-87.3% 🟢)7.124s (-84.5% 🟢)1.581s131.01x
▲ VercelNext.js (Turbopack)5.628s (-10.2% 🟢)7.236s (-14.8% 🟢)1.608s131.03x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.656s (-7.2% 🟢)1.006s (~)0.350s1201.00x
🐘 PostgresExpress0.748s (+19.6% 🔺)1.164s (+10.3% 🔺)0.416s1041.14x
🐘 PostgresNext.js (Turbopack)0.972s (-0.8%)1.644s (+2.2%)0.672s741.48x
💻 LocalNitro9.731s (+11.7% 🔺)10.446s (+11.9% 🔺)0.715s1214.83x
💻 LocalNext.js (Turbopack)10.183s (-1.3%)10.861s (-3.9%)0.678s1215.52x
💻 LocalExpress10.295s (~)10.779s (-0.8%)0.484s1215.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.976s (-1.8%)17.377s (-0.7%)2.401s71.00x
▲ VercelNitro15.437s (-95.0% 🟢)17.367s (-94.5% 🟢)1.930s71.03x
▲ VercelNext.js (Turbopack)18.443s (-88.5% 🟢)20.158s (-87.6% 🟢)1.714s71.23x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.156s (-2.1%)1.998s (~)0.001s (-21.4% 🟢)2.009s (~)0.853s101.00x
💻 LocalExpress1.171s (~)2.005s (~)0.013s (~)2.021s (~)0.850s101.01x
💻 LocalNitro1.183s (+2.8%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.837s101.02x
🐘 PostgresExpress1.198s (~)1.990s (-0.5%)0.001s (-97.1% 🟢)2.013s (-1.5%)0.815s101.04x
💻 LocalNext.js (Turbopack)1.209s (+3.4%)2.003s (~)0.010s (+2.0%)2.018s (~)0.809s101.05x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.002s (~)0.001s (-33.3% 🟢)2.011s (~)0.788s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.135s (-1.4%)3.025s (-11.5% 🟢)1.522s (+195.0% 🔺)4.959s (+11.0% 🔺)2.824s101.00x
▲ VercelExpress2.136s (~)3.435s (+0.8%)0.359s (-31.7% 🟢)4.283s (-3.7%)2.147s101.00x
▲ VercelNext.js (Turbopack)2.523s (+12.6% 🔺)3.277s (-7.7% 🟢)1.467s (-88.2% 🟢)5.161s (-68.7% 🟢)2.637s101.18x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.590s (-4.4%)2.005s (~)0.005s (+32.5% 🔺)2.027s (~)0.438s301.00x
💻 LocalNitro1.597s (-8.4% 🟢)2.012s (~)0.012s (+28.8% 🔺)2.026s (-7.8% 🟢)0.430s301.00x
💻 LocalExpress1.619s (-1.1%)2.012s (~)0.014s (+22.7% 🔺)2.027s (~)0.409s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.6% 🔺)2.009s (~)0.013s (+25.4% 🔺)2.025s (~)0.293s301.09x
🐘 PostgresNext.js (Turbopack)1.738s (-1.4%)2.010s (~)0.005s (+30.6% 🔺)2.027s (~)0.288s301.09x
🐘 PostgresExpress1.888s (+8.7% 🔺)2.333s (+8.9% 🔺)0.008s (+155.3% 🔺)2.383s (+10.3% 🔺)0.495s261.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.848s (+1.6%)7.572s (+1.9%)0.251s (-29.0% 🟢)8.364s (~)2.516s81.00x
▲ VercelNitro5.935s (+3.3%)6.887s (-9.3% 🟢)0.494s (+46.4% 🔺)7.791s (-8.2% 🟢)1.856s81.01x
▲ VercelNext.js (Turbopack)5.956s (-6.5% 🟢)6.857s (-13.6% 🟢)0.270s (-25.3% 🟢)7.562s (-14.7% 🟢)1.606s81.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.718s (-0.6%)1.051s (+1.9%)0.000s (-66.1% 🟢)1.061s (+1.3%)0.343s571.00x
🐘 PostgresNext.js (Turbopack)0.833s (~)1.092s (+1.9%)0.000s (-49.1% 🟢)1.099s (+1.8%)0.266s551.16x
🐘 PostgresExpress1.143s (+16.9% 🔺)1.559s (+9.2% 🔺)0.000s (-100.0% 🟢)1.599s (+10.4% 🔺)0.456s381.59x
💻 LocalNitro1.398s (+3.3%)2.013s (~)0.000s (-46.7% 🟢)2.015s (~)0.618s301.95x
💻 LocalExpress1.444s (-2.6%)2.014s (~)0.001s (+53.3% 🔺)2.017s (~)0.572s302.01x
💻 LocalNext.js (Turbopack)1.479s (+2.2%)2.012s (~)0.000s (+25.0% 🔺)2.015s (~)0.536s302.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.231s (-2.3%)4.317s (-11.8% 🟢)0.000s (NaN%)4.733s (-13.3% 🟢)1.502s131.00x
▲ VercelNitro3.250s (-9.7% 🟢)4.423s (-12.8% 🟢)0.000s (NaN%)4.848s (-13.9% 🟢)1.598s131.01x
▲ VercelExpress3.702s (-8.8% 🟢)5.202s (-2.6%)0.000s (-100.0% 🟢)5.733s (-7.1% 🟢)2.031s111.15x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.427s (+1.2%)2.142s (+7.3% 🔺)0.000s (NaN%)2.154s (+7.0% 🔺)0.726s281.00x
🐘 PostgresNext.js (Turbopack)1.857s (+7.5% 🔺)2.444s (+8.1% 🔺)0.000s (+Infinity% 🔺)2.463s (+8.5% 🔺)0.606s251.30x
🐘 PostgresExpress2.699s (+67.1% 🔺)3.125s (+38.7% 🔺)0.000s (+Infinity% 🔺)3.188s (+39.9% 🔺)0.490s191.89x
💻 LocalNext.js (Turbopack)2.892s (-10.0% 🟢)3.553s (-8.8% 🟢)0.000s (+50.6% 🔺)3.557s (-8.8% 🟢)0.665s172.03x
💻 LocalNitro3.067s (-1.5%)3.777s (-3.0%)0.000s (+50.0% 🔺)3.780s (-3.1%)0.713s162.15x
💻 LocalExpress3.296s (-1.1%)3.966s (+3.3%)0.001s (+133.3% 🔺)3.969s (+3.2%)0.673s162.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.828s (-6.6% 🟢)6.206s (-7.1% 🟢)0.000s (-77.5% 🟢)6.604s (-8.3% 🟢)1.776s101.00x
▲ VercelExpress4.940s (-21.8% 🟢)6.586s (-13.7% 🟢)0.000s (-70.4% 🟢)7.197s (-12.1% 🟢)2.257s91.02x
▲ VercelNitro5.015s (-28.8% 🟢)6.205s (-27.6% 🟢)0.000s (+Infinity% 🔺)6.656s (-26.8% 🟢)1.640s101.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/21
🐘 PostgresNitro18/21
▲ VercelExpress10/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production126602191485
✅ 💻 Local Development167102191890
✅ 📦 Local Production167102191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7183010528235

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
✅ express109026
✅ fastify109026
✅ hono109026
✅ nextjs-turbopack13302
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

packages/builders/src/constants.ts imports getQueueTopicPrefix from @workflow/world, but @workflow/world is not declared in packages/builders/package.json dependencies, causing the build to fail with TS2307.

Fix on Vercel

@willsather
willsatherforce-pushed the willsather/add-queue-prefix-namespace branch from 187c205 to 805bea2CompareJune 9, 2026 03:37

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Indexing the fixed-shape Queues object with a QueuePrefix (now widened to string) triggers TS7053, breaking the @workflow/world-postgres build.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

setupListeners() references a deleted Queues constant, causing tsc to fail with TS2552 and breaking the @workflow/world-postgres build.

Fix on Vercel

Comment threadpackages/core/src/runtime/helpers.ts Outdated

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

With WORKFLOW_QUEUE_NAMESPACE set, parseQueueName/getQueueRoute/createTaskHandler in world-postgres still match only the non-namespaced default prefixes, so namespaced queue names produced by the core producer throw Invalid queue name (enqueue fails) and lose workflow-run serialization.

Fix on Vercel

ijjk added 2 commits June 10, 2026 17:27
* Fix namespaced queue routing reliability
* Inline queue namespace in generated routes
* Avoid loading Vercel functions during runtime import

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — solid contract design, thorough iteration; main ask is documentation

I built all five packages from this branch and ran the suites locally: 50 world tests, 6 builders constants tests, 8 world-local queue tests, 8 world-postgres queue tests, and the full core unit suite (1110 tests) — all green.

What's good

  • The naming contract is well-designed. Single-label namespace ([a-z][a-z0-9]* — no underscores) makes parseQueueName deterministic: I worked through the adversarial cases (__wkf_workflow_foo vs a hypothetical wkf namespace, multi-underscore labels, ids containing wkf_workflow_) and the regex backtracking always lands on a single unambiguous parse. The prefix/kind/id helpers centralize what was previously stringly-typed startsWith logic scattered across three packages.
  • The review iteration addressed the real correctness gaps. The original producer/consumer mismatch (entrypoint consuming a namespaced topic while start()/requeue paths enqueued un-namespaced) and the world-postgres Queues map throwing on namespaced prefixes were both caught and fixed; the follow-up routing-reliability commit routes every producer, consumer, and trigger site through resolveQueueNamespace, and bakes the namespace into generated routes at build time so the flow route doesn't depend on the runtime env.
  • runtime-import.test.ts is a good regression pin — mocking @vercel/functions to throw on load and asserting the runtime module still imports proves the lazy-loading actually holds, rather than depending on bundler luck.
  • Contract-level test coverage is comprehensive: prefix construction, namespace validation (digit-start/uppercase/empty/special chars rejected), schema acceptance/rejection, kind extraction, name parsing, and the world-local namespaced direct-handler routing test.

Main ask: documentation (should-fix, can be a fast-follow)

This PR introduces a user-facing env var (WORKFLOW_QUEUE_NAMESPACE) with a non-obvious operational requirement and ships zero docs. The critical thing to document is the build-time/runtime consistency requirement: the flow-route consumer gets the namespace baked at build, but producers (start(), resumeHook(), step-handler requeues) resolve it from the runtime env. If the env var is set in one phase but not the other (build-only env vars in some CI setups, or added to a running deployment without a rebuild), messages get enqueued to a topic no trigger listens on — silently. A short docs section ("set it as a regular project env var so build and runtime agree; changing it requires a redeploy; in-flight messages on the old topic are stranded") would save someone a very confusing afternoon. The migration story for an existing deployment that adopts a namespace (in-flight un-namespaced messages) deserves a sentence too.

Smaller notes (non-blocking)

  1. world-postgres namespace isolation is partial.getJobQueueName collapses every namespace into the same graphile job names (workflow_flows/workflow_steps). One app + one namespace works correctly (the task handler reconstructs queue names from its own configured prefix), but two namespaces sharing a database and jobPrefix — the closest analog of the stated multi-framework use case — would consume each other's jobs and reconstruct queue names under the wrong prefix. Either include the namespace in the job name (workflow_{ns}_flows) or document that postgres isolation requires distinct jobPrefix/databases.
  2. Module-load-time env resolution in two places: WORKFLOW_QUEUE_TRIGGER = createWorkflowQueueTrigger() and const stepHandler = createStepHandler(). Both bake process.env.WORKFLOW_QUEUE_NAMESPACE at import time. This works for the current build/runtime flows, but the trigger constant's docstring ("Default queue trigger (no namespace). Backward compatible.") is inaccurate whenever the env var is set in the importing process — worth rewording to "namespace resolved from the environment at import time."
  3. The lazy waitUntil has a small unhandled-rejection window: void import('@vercel/functions').then(({ waitUntil }) => waitUntil(promise)) — if the platform's waitUntil throws (e.g. called after response finalization on the cold path where the dynamic import does real work), that rejection is unobserved. A .catch with a debug log would make the failure mode visible. The lazy-loading itself is clearly deliberate (and pinned by the new test), so this is just hardening.
  4. Duplicated namespace helpers in builders/src/constants.ts vs world/src/queue.ts — clearly deliberate (the @workflow/world dependency was removed from builders in the same commit), but the two regex patterns must now stay in sync by hand. A cross-referencing comment on both sides ("mirror of …, keep in sync") would cheapen future drift.
  5. createStepHandler(namespace?)'s parameter is currently never passed explicitly (only the module-level createStepHandler() exists), so the V1 split-route step handler is env-only while the V2 combined route gets the baked option. Fine — V1 is legacy — but if the param is meant for future use a one-line comment saying so would keep someone from "cleaning it up."

CI

Checks were re-running on the head commit when I reviewed (post-fix-up push); nothing failing, and the changeset correctly covers all five touched packages with minor. Approving — the docs ask is the one thing I'd really like to see land before (or immediately after) this merges.

@github-actionsgithub-actionsBot mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2341. Merge conflicts were resolved by AI — please review carefully. (backport job run)

Sign up for freeto 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.

4 participants

@willsather@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Strip utm_, fbclid, gclid, etc. from all links on page (function() { var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content', 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid', 'ref', 'ref_src', 'source', 'medium', 'campaign']; function cleanUrl(url) { try { var u = new URL(url, window.location.origin); var changed = false; trackingParams.forEach(function(p) { if (u.searchParams.has(p)) { u.searchParams.delete(p); changed = true; } }); return changed ? u.toString() : url; } catch (e) { return url; } } function cleanLinks() { document.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } cleanLinks(); var observer = new MutationObserver(function(mutations) { mutations.forEach(function(m) { m.addedNodes.forEach(function(node) { if (node.nodeType === 1) { if (node.tagName === 'A') cleanLinks(); node.querySelectorAll('a[href]').forEach(function(a) { var clean = cleanUrl(a.href); if (clean !== a.href) a.href = clean; }); } }); }); }); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + ' feat(core): add optional namespace for queue topic prefix by willsather · Pull Request #2305 · vercel/workflow · GitHub
Skip to content

feat(core): add optional namespace for queue topic prefix - #2305

Merged
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace
Jun 11, 2026
Merged

feat(core): add optional namespace for queue topic prefix#2305
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace

Conversation

@willsather

@willsatherwillsather commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • add optional namespace configuration to queue topic prefixes
  • update QueuePrefix / ValidQueueName Zod schemas and world-local routing to accept namespaced prefixes
  • update world-postgres job queue prefix parsing
  • update/create tests to validate queuePrefix parsing

@willsather
willsather requested a review from a team as a code ownerJune 9, 2026 03:29
@changeset-bot

changeset-botBot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292ebf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
NameType
@workflow/worldMinor
@workflow/buildersMinor
@workflow/coreMinor
@workflow/world-localMinor
@workflow/world-postgresMinor
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@workflow/world-vercelPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
workflowMinor
@workflow/nuxtPatch
@workflow/aiMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.044s (+0.9%)1.008s (~)0.964s101.00x
💻 LocalNitro0.044s (+3.3%)1.007s (~)0.963s101.01x
🐘 PostgresNitro0.056s (-11.2% 🟢)1.013s (~)0.957s101.29x
💻 LocalNext.js (Turbopack)0.061s (+10.2% 🔺)1.006s (~)0.945s101.39x
🐘 PostgresNext.js (Turbopack)0.069s (-1.3%)1.013s (~)0.944s101.58x
🐘 PostgresExpress0.123s (+86.3% 🔺)1.041s (+2.6%)0.918s102.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.325s (+19.4% 🔺)2.514s (-7.3% 🟢)2.189s101.00x
▲ VercelNitro0.335s (+28.3% 🔺)2.236s (-8.2% 🟢)1.901s101.03x
▲ VercelNext.js (Turbopack)0.367s (+11.5% 🔺)2.239s (-4.4%)1.872s101.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (~)2.007s (~)0.912s101.00x
💻 LocalExpress1.095s (~)2.006s (~)0.911s101.00x
🐘 PostgresExpress1.099s (+0.6%)2.009s (~)0.910s101.00x
🐘 PostgresNitro1.107s (-0.6%)2.013s (~)0.906s101.01x
💻 LocalNext.js (Turbopack)1.134s (+2.3%)2.006s (~)0.873s101.04x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.010s (~)0.864s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.625s (+2.6%)3.783s (+5.9% 🔺)2.158s101.00x
▲ VercelNext.js (Turbopack)1.676s (+0.6%)3.472s (-14.9% 🟢)1.796s101.03x
▲ VercelNitro1.704s (+8.8% 🔺)3.302s (-6.5% 🟢)1.599s101.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.512s (~)11.018s (~)0.506s31.00x
💻 LocalNitro10.544s (~)11.024s (~)0.480s31.00x
💻 LocalExpress10.554s (~)11.023s (~)0.469s31.00x
🐘 PostgresExpress10.640s (-0.7%)11.040s (-2.7%)0.400s31.01x
💻 LocalNext.js (Turbopack)10.752s (+1.4%)11.023s (~)0.271s31.02x
🐘 PostgresNext.js (Turbopack)10.916s (+0.9%)11.352s (+3.0%)0.436s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro14.005s (+5.1% 🔺)15.619s (~)1.614s21.00x
▲ VercelExpress14.040s (+6.7% 🔺)16.710s (+8.2% 🔺)2.670s21.00x
▲ VercelNext.js (Turbopack)14.262s (+5.7% 🔺)15.726s (-2.3%)1.463s21.02x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.799s (+0.6%)14.027s (~)0.229s51.00x
🐘 PostgresNitro13.839s (~)14.020s (~)0.181s51.00x
💻 LocalExpress13.862s (~)14.226s (~)0.364s51.00x
🐘 PostgresExpress14.021s (+1.3%)14.231s (~)0.211s51.02x
🐘 PostgresNext.js (Turbopack)14.444s (-1.0%)15.021s (~)0.576s41.05x
💻 LocalNext.js (Turbopack)14.540s (+3.7%)15.029s (+2.8%)0.489s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.128s (-21.0% 🟢)22.147s (-18.7% 🟢)2.019s31.00x
▲ VercelNitro20.666s (-19.0% 🟢)22.220s (-19.5% 🟢)1.554s31.03x
▲ VercelNext.js (Turbopack)22.006s (-13.8% 🟢)23.701s (-12.9% 🟢)1.694s31.09x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.483s (-2.0%)13.017s (~)0.534s71.00x
💻 LocalNitro12.546s (+1.1%)13.025s (~)0.479s71.01x
💻 LocalExpress12.560s (~)13.027s (~)0.467s71.01x
🐘 PostgresExpress12.696s (~)13.174s (-1.0%)0.478s71.02x
💻 LocalNext.js (Turbopack)13.617s (+5.2% 🔺)14.027s (+5.4% 🔺)0.410s71.09x
🐘 PostgresNext.js (Turbopack)13.724s (~)14.019s (~)0.295s71.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.544s (-17.2% 🟢)29.208s (-14.7% 🟢)2.664s41.00x
▲ VercelNitro27.624s (-4.9%)29.818s (-5.0% 🟢)2.193s41.04x
▲ VercelNext.js (Turbopack)30.635s (+3.5%)32.836s (+3.1%)2.202s31.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.168s (-2.6%)2.008s (~)0.840s151.00x
🐘 PostgresExpress1.189s (-0.9%)2.007s (-0.7%)0.819s151.02x
💻 LocalNitro1.231s (+1.5%)2.006s (~)0.775s151.05x
🐘 PostgresNext.js (Turbopack)1.241s (-0.8%)2.007s (~)0.767s151.06x
💻 LocalExpress1.264s (~)2.007s (~)0.743s151.08x
💻 LocalNext.js (Turbopack)1.278s (+4.5%)2.006s (~)0.728s151.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.525s (-8.9% 🟢)4.306s (-0.8%)1.782s81.00x
▲ VercelNext.js (Turbopack)2.708s (+0.8%)4.325s (+2.5%)1.617s71.07x
▲ VercelExpress2.762s (~)4.410s (-6.6% 🟢)1.648s71.09x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-1.1%)2.007s (~)0.762s151.00x
🐘 PostgresExpress1.362s (+2.7%)2.016s (~)0.654s151.09x
🐘 PostgresNext.js (Turbopack)1.380s (-2.1%)2.007s (~)0.628s151.11x
💻 LocalNext.js (Turbopack)1.700s (-1.5%)2.073s (+3.3%)0.373s151.37x
💻 LocalNitro1.840s (+8.0% 🔺)2.149s (+3.7%)0.309s141.48x
💻 LocalExpress1.914s (+1.7%)2.315s (+4.2%)0.401s131.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.330s (-18.2% 🟢)4.700s (-24.3% 🟢)1.370s71.00x
▲ VercelExpress3.645s (-10.8% 🟢)5.687s (-7.8% 🟢)2.042s61.09x
▲ VercelNext.js (Turbopack)3.647s (-11.2% 🟢)5.432s (-11.5% 🟢)1.784s61.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.382s (-1.7%)2.008s (~)0.626s151.00x
🐘 PostgresExpress1.437s (+3.1%)2.160s (+7.4% 🔺)0.723s141.04x
🐘 PostgresNext.js (Turbopack)1.675s (-4.8%)2.223s (-3.1%)0.548s141.21x
💻 LocalNext.js (Turbopack)4.473s (+1.8%)5.156s (+2.9%)0.683s73.24x
💻 LocalNitro5.154s (+9.2% 🔺)5.680s (+13.4% 🔺)0.526s63.73x
💻 LocalExpress5.448s (+2.8%)6.013s (~)0.565s53.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.797s (-18.7% 🟢)7.028s (-11.0% 🟢)2.231s51.00x
▲ VercelNitro5.811s (-13.7% 🟢)8.021s (-7.9% 🟢)2.209s41.21x
▲ VercelNext.js (Turbopack)6.254s (+6.5% 🔺)8.409s (+8.1% 🔺)2.154s41.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.176s (-2.0%)2.008s (~)0.832s151.00x
🐘 PostgresExpress1.220s (+1.5%)2.020s (+0.6%)0.799s151.04x
🐘 PostgresNext.js (Turbopack)1.235s (-2.5%)2.009s (~)0.774s151.05x
💻 LocalNext.js (Turbopack)1.375s (+5.3% 🔺)2.006s (~)0.631s151.17x
💻 LocalExpress1.597s (-3.6%)2.007s (-3.2%)0.410s151.36x
💻 LocalNitro1.621s (+5.1% 🔺)2.007s (~)0.386s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.335s (-9.0% 🟢)3.982s (-5.1% 🟢)1.647s81.00x
▲ VercelNitro2.563s (-4.1%)3.891s (-10.2% 🟢)1.329s81.10x
▲ VercelNext.js (Turbopack)2.602s (-40.5% 🟢)4.311s (-31.5% 🟢)1.709s81.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.258s (-1.3%)2.009s (~)0.751s151.00x
🐘 PostgresExpress1.349s (+8.5% 🔺)2.082s (+3.5%)0.734s151.07x
🐘 PostgresNext.js (Turbopack)1.368s (-2.1%)2.008s (~)0.639s151.09x
💻 LocalNext.js (Turbopack)1.988s (-1.6%)2.508s (~)0.519s121.58x
💻 LocalExpress2.015s (-5.2% 🟢)2.472s (-4.6%)0.457s131.60x
💻 LocalNitro2.151s (+22.5% 🔺)2.593s (+25.1% 🔺)0.441s121.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.315s (-19.1% 🟢)4.859s (-19.1% 🟢)1.544s71.00x
▲ VercelExpress3.396s (-7.6% 🟢)5.325s (-5.1% 🟢)1.929s61.02x
▲ VercelNext.js (Turbopack)3.987s (-11.8% 🟢)5.384s (-12.7% 🟢)1.397s61.20x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.335s (-11.0% 🟢)2.006s (-16.3% 🟢)0.672s151.00x
🐘 PostgresNitro1.371s (-6.2% 🟢)2.007s (~)0.636s151.03x
🐘 PostgresNext.js (Turbopack)1.668s (+0.7%)2.077s (~)0.408s151.25x
💻 LocalNext.js (Turbopack)5.289s (+2.5%)5.849s (-2.8%)0.560s63.96x
💻 LocalNitro5.644s (+19.0% 🔺)6.180s (+15.6% 🔺)0.536s64.23x
💻 LocalExpress6.583s (+12.3% 🔺)7.018s (+12.9% 🔺)0.434s54.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.952s (~)6.573s (-2.4%)1.621s51.00x
▲ VercelExpress5.498s (+8.4% 🔺)7.998s (+20.7% 🔺)2.500s41.11x
▲ VercelNext.js (Turbopack)5.529s (-4.5%)7.480s (-1.3%)1.950s51.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.542s (-18.7% 🟢)1.025s (-2.2%)0.483s591.00x
🐘 PostgresNitro0.551s (-9.6% 🟢)1.006s (~)0.455s601.02x
💻 LocalExpress0.608s (-7.3% 🟢)1.005s (-3.3%)0.397s601.12x
💻 LocalNitro0.615s (-23.6% 🟢)1.005s (-16.6% 🟢)0.390s601.13x
🐘 PostgresNext.js (Turbopack)0.803s (-1.1%)1.023s (+1.7%)0.220s591.48x
💻 LocalNext.js (Turbopack)0.895s (+28.5% 🔺)1.058s (+5.3% 🔺)0.163s571.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.453s (-0.9%)7.343s (+3.2%)1.889s91.00x
▲ VercelNitro5.713s (-23.4% 🟢)7.108s (-25.3% 🟢)1.395s91.05x
▲ VercelNext.js (Turbopack)5.829s (+15.5% 🔺)7.381s (+7.8% 🔺)1.553s91.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.384s (-2.3%)2.009s (~)0.624s451.00x
🐘 PostgresExpress1.478s (-3.8%)2.084s (-3.2%)0.607s441.07x
💻 LocalExpress1.546s (-2.9%)2.007s (-1.1%)0.461s451.12x
💻 LocalNitro1.557s (+6.3% 🔺)2.007s (~)0.450s451.12x
🐘 PostgresNext.js (Turbopack)2.016s (+3.8%)2.343s (+7.7% 🔺)0.327s391.46x
💻 LocalNext.js (Turbopack)2.120s (+22.7% 🔺)3.008s (+48.3% 🔺)0.888s301.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.517s (+2.3%)15.691s (+1.4%)2.175s61.00x
▲ VercelExpress13.941s (-14.9% 🟢)16.387s (-10.5% 🟢)2.447s61.03x
▲ VercelNext.js (Turbopack)166.602s (+1027.7% 🔺)168.117s (+892.9% 🔺)1.514s212.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.821s (-3.2%)3.253s (-0.9%)0.432s371.00x
🐘 PostgresExpress3.127s (+7.4% 🔺)3.739s (+5.6% 🔺)0.612s331.11x
💻 LocalNitro3.335s (+4.0%)4.009s (~)0.674s301.18x
💻 LocalExpress3.367s (-1.5%)4.010s (~)0.643s301.19x
🐘 PostgresNext.js (Turbopack)3.891s (+0.8%)4.183s (+2.6%)0.291s291.38x
💻 LocalNext.js (Turbopack)4.385s (+17.6% 🔺)5.012s (+22.0% 🔺)0.627s241.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.618s (-14.0% 🟢)28.009s (-12.4% 🟢)2.391s51.00x
▲ VercelExpress26.866s (-6.9% 🟢)30.194s (-2.3%)3.328s51.05x
▲ VercelNext.js (Turbopack)27.500s (+1.9%)29.271s (~)1.772s51.07x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.221s (-6.2% 🟢)1.006s (~)0.786s601.00x
🐘 PostgresExpress0.261s (+3.6%)1.013s (~)0.751s601.18x
🐘 PostgresNext.js (Turbopack)0.265s (-6.0% 🟢)1.006s (~)0.741s601.20x
💻 LocalNitro0.423s (~)1.005s (~)0.582s601.91x
💻 LocalExpress0.434s (-6.6% 🟢)1.005s (~)0.571s601.97x
💻 LocalNext.js (Turbopack)0.603s (-1.3%)1.022s (-1.6%)0.419s592.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.389s (+1.9%)3.820s (-11.9% 🟢)1.431s161.00x
▲ VercelExpress2.413s (+9.1% 🔺)4.293s (+4.8%)1.880s141.01x
▲ VercelNext.js (Turbopack)2.541s (+15.5% 🔺)3.917s (-7.2% 🟢)1.376s161.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.329s (-11.2% 🟢)1.007s (~)0.677s901.00x
🐘 PostgresNext.js (Turbopack)0.495s (+2.5%)1.006s (~)0.512s901.50x
🐘 PostgresExpress0.551s (+62.5% 🔺)1.129s (+12.1% 🔺)0.578s801.67x
💻 LocalExpress2.148s (-2.0%)2.885s (+2.2%)0.736s326.52x
💻 LocalNitro2.172s (+5.2% 🔺)2.685s (+1.8%)0.513s346.60x
💻 LocalNext.js (Turbopack)2.347s (-4.2%)3.077s (-1.0%)0.731s307.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.478s (-87.4% 🟢)7.446s (-83.5% 🟢)1.968s131.00x
▲ VercelNitro5.543s (-87.3% 🟢)7.124s (-84.5% 🟢)1.581s131.01x
▲ VercelNext.js (Turbopack)5.628s (-10.2% 🟢)7.236s (-14.8% 🟢)1.608s131.03x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.656s (-7.2% 🟢)1.006s (~)0.350s1201.00x
🐘 PostgresExpress0.748s (+19.6% 🔺)1.164s (+10.3% 🔺)0.416s1041.14x
🐘 PostgresNext.js (Turbopack)0.972s (-0.8%)1.644s (+2.2%)0.672s741.48x
💻 LocalNitro9.731s (+11.7% 🔺)10.446s (+11.9% 🔺)0.715s1214.83x
💻 LocalNext.js (Turbopack)10.183s (-1.3%)10.861s (-3.9%)0.678s1215.52x
💻 LocalExpress10.295s (~)10.779s (-0.8%)0.484s1215.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.976s (-1.8%)17.377s (-0.7%)2.401s71.00x
▲ VercelNitro15.437s (-95.0% 🟢)17.367s (-94.5% 🟢)1.930s71.03x
▲ VercelNext.js (Turbopack)18.443s (-88.5% 🟢)20.158s (-87.6% 🟢)1.714s71.23x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.156s (-2.1%)1.998s (~)0.001s (-21.4% 🟢)2.009s (~)0.853s101.00x
💻 LocalExpress1.171s (~)2.005s (~)0.013s (~)2.021s (~)0.850s101.01x
💻 LocalNitro1.183s (+2.8%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.837s101.02x
🐘 PostgresExpress1.198s (~)1.990s (-0.5%)0.001s (-97.1% 🟢)2.013s (-1.5%)0.815s101.04x
💻 LocalNext.js (Turbopack)1.209s (+3.4%)2.003s (~)0.010s (+2.0%)2.018s (~)0.809s101.05x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.002s (~)0.001s (-33.3% 🟢)2.011s (~)0.788s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.135s (-1.4%)3.025s (-11.5% 🟢)1.522s (+195.0% 🔺)4.959s (+11.0% 🔺)2.824s101.00x
▲ VercelExpress2.136s (~)3.435s (+0.8%)0.359s (-31.7% 🟢)4.283s (-3.7%)2.147s101.00x
▲ VercelNext.js (Turbopack)2.523s (+12.6% 🔺)3.277s (-7.7% 🟢)1.467s (-88.2% 🟢)5.161s (-68.7% 🟢)2.637s101.18x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.590s (-4.4%)2.005s (~)0.005s (+32.5% 🔺)2.027s (~)0.438s301.00x
💻 LocalNitro1.597s (-8.4% 🟢)2.012s (~)0.012s (+28.8% 🔺)2.026s (-7.8% 🟢)0.430s301.00x
💻 LocalExpress1.619s (-1.1%)2.012s (~)0.014s (+22.7% 🔺)2.027s (~)0.409s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.6% 🔺)2.009s (~)0.013s (+25.4% 🔺)2.025s (~)0.293s301.09x
🐘 PostgresNext.js (Turbopack)1.738s (-1.4%)2.010s (~)0.005s (+30.6% 🔺)2.027s (~)0.288s301.09x
🐘 PostgresExpress1.888s (+8.7% 🔺)2.333s (+8.9% 🔺)0.008s (+155.3% 🔺)2.383s (+10.3% 🔺)0.495s261.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.848s (+1.6%)7.572s (+1.9%)0.251s (-29.0% 🟢)8.364s (~)2.516s81.00x
▲ VercelNitro5.935s (+3.3%)6.887s (-9.3% 🟢)0.494s (+46.4% 🔺)7.791s (-8.2% 🟢)1.856s81.01x
▲ VercelNext.js (Turbopack)5.956s (-6.5% 🟢)6.857s (-13.6% 🟢)0.270s (-25.3% 🟢)7.562s (-14.7% 🟢)1.606s81.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.718s (-0.6%)1.051s (+1.9%)0.000s (-66.1% 🟢)1.061s (+1.3%)0.343s571.00x
🐘 PostgresNext.js (Turbopack)0.833s (~)1.092s (+1.9%)0.000s (-49.1% 🟢)1.099s (+1.8%)0.266s551.16x
🐘 PostgresExpress1.143s (+16.9% 🔺)1.559s (+9.2% 🔺)0.000s (-100.0% 🟢)1.599s (+10.4% 🔺)0.456s381.59x
💻 LocalNitro1.398s (+3.3%)2.013s (~)0.000s (-46.7% 🟢)2.015s (~)0.618s301.95x
💻 LocalExpress1.444s (-2.6%)2.014s (~)0.001s (+53.3% 🔺)2.017s (~)0.572s302.01x
💻 LocalNext.js (Turbopack)1.479s (+2.2%)2.012s (~)0.000s (+25.0% 🔺)2.015s (~)0.536s302.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.231s (-2.3%)4.317s (-11.8% 🟢)0.000s (NaN%)4.733s (-13.3% 🟢)1.502s131.00x
▲ VercelNitro3.250s (-9.7% 🟢)4.423s (-12.8% 🟢)0.000s (NaN%)4.848s (-13.9% 🟢)1.598s131.01x
▲ VercelExpress3.702s (-8.8% 🟢)5.202s (-2.6%)0.000s (-100.0% 🟢)5.733s (-7.1% 🟢)2.031s111.15x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.427s (+1.2%)2.142s (+7.3% 🔺)0.000s (NaN%)2.154s (+7.0% 🔺)0.726s281.00x
🐘 PostgresNext.js (Turbopack)1.857s (+7.5% 🔺)2.444s (+8.1% 🔺)0.000s (+Infinity% 🔺)2.463s (+8.5% 🔺)0.606s251.30x
🐘 PostgresExpress2.699s (+67.1% 🔺)3.125s (+38.7% 🔺)0.000s (+Infinity% 🔺)3.188s (+39.9% 🔺)0.490s191.89x
💻 LocalNext.js (Turbopack)2.892s (-10.0% 🟢)3.553s (-8.8% 🟢)0.000s (+50.6% 🔺)3.557s (-8.8% 🟢)0.665s172.03x
💻 LocalNitro3.067s (-1.5%)3.777s (-3.0%)0.000s (+50.0% 🔺)3.780s (-3.1%)0.713s162.15x
💻 LocalExpress3.296s (-1.1%)3.966s (+3.3%)0.001s (+133.3% 🔺)3.969s (+3.2%)0.673s162.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.828s (-6.6% 🟢)6.206s (-7.1% 🟢)0.000s (-77.5% 🟢)6.604s (-8.3% 🟢)1.776s101.00x
▲ VercelExpress4.940s (-21.8% 🟢)6.586s (-13.7% 🟢)0.000s (-70.4% 🟢)7.197s (-12.1% 🟢)2.257s91.02x
▲ VercelNitro5.015s (-28.8% 🟢)6.205s (-27.6% 🟢)0.000s (+Infinity% 🔺)6.656s (-26.8% 🟢)1.640s101.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/21
🐘 PostgresNitro18/21
▲ VercelExpress10/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production126602191485
✅ 💻 Local Development167102191890
✅ 📦 Local Production167102191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7183010528235

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
✅ express109026
✅ fastify109026
✅ hono109026
✅ nextjs-turbopack13302
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

packages/builders/src/constants.ts imports getQueueTopicPrefix from @workflow/world, but @workflow/world is not declared in packages/builders/package.json dependencies, causing the build to fail with TS2307.

Fix on Vercel

@willsather
willsatherforce-pushed the willsather/add-queue-prefix-namespace branch from 187c205 to 805bea2CompareJune 9, 2026 03:37

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Indexing the fixed-shape Queues object with a QueuePrefix (now widened to string) triggers TS7053, breaking the @workflow/world-postgres build.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

setupListeners() references a deleted Queues constant, causing tsc to fail with TS2552 and breaking the @workflow/world-postgres build.

Fix on Vercel

Comment threadpackages/core/src/runtime/helpers.ts Outdated

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

With WORKFLOW_QUEUE_NAMESPACE set, parseQueueName/getQueueRoute/createTaskHandler in world-postgres still match only the non-namespaced default prefixes, so namespaced queue names produced by the core producer throw Invalid queue name (enqueue fails) and lose workflow-run serialization.

Fix on Vercel

ijjk added 2 commits June 10, 2026 17:27
* Fix namespaced queue routing reliability
* Inline queue namespace in generated routes
* Avoid loading Vercel functions during runtime import

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — solid contract design, thorough iteration; main ask is documentation

I built all five packages from this branch and ran the suites locally: 50 world tests, 6 builders constants tests, 8 world-local queue tests, 8 world-postgres queue tests, and the full core unit suite (1110 tests) — all green.

What's good

  • The naming contract is well-designed. Single-label namespace ([a-z][a-z0-9]* — no underscores) makes parseQueueName deterministic: I worked through the adversarial cases (__wkf_workflow_foo vs a hypothetical wkf namespace, multi-underscore labels, ids containing wkf_workflow_) and the regex backtracking always lands on a single unambiguous parse. The prefix/kind/id helpers centralize what was previously stringly-typed startsWith logic scattered across three packages.
  • The review iteration addressed the real correctness gaps. The original producer/consumer mismatch (entrypoint consuming a namespaced topic while start()/requeue paths enqueued un-namespaced) and the world-postgres Queues map throwing on namespaced prefixes were both caught and fixed; the follow-up routing-reliability commit routes every producer, consumer, and trigger site through resolveQueueNamespace, and bakes the namespace into generated routes at build time so the flow route doesn't depend on the runtime env.
  • runtime-import.test.ts is a good regression pin — mocking @vercel/functions to throw on load and asserting the runtime module still imports proves the lazy-loading actually holds, rather than depending on bundler luck.
  • Contract-level test coverage is comprehensive: prefix construction, namespace validation (digit-start/uppercase/empty/special chars rejected), schema acceptance/rejection, kind extraction, name parsing, and the world-local namespaced direct-handler routing test.

Main ask: documentation (should-fix, can be a fast-follow)

This PR introduces a user-facing env var (WORKFLOW_QUEUE_NAMESPACE) with a non-obvious operational requirement and ships zero docs. The critical thing to document is the build-time/runtime consistency requirement: the flow-route consumer gets the namespace baked at build, but producers (start(), resumeHook(), step-handler requeues) resolve it from the runtime env. If the env var is set in one phase but not the other (build-only env vars in some CI setups, or added to a running deployment without a rebuild), messages get enqueued to a topic no trigger listens on — silently. A short docs section ("set it as a regular project env var so build and runtime agree; changing it requires a redeploy; in-flight messages on the old topic are stranded") would save someone a very confusing afternoon. The migration story for an existing deployment that adopts a namespace (in-flight un-namespaced messages) deserves a sentence too.

Smaller notes (non-blocking)

  1. world-postgres namespace isolation is partial.getJobQueueName collapses every namespace into the same graphile job names (workflow_flows/workflow_steps). One app + one namespace works correctly (the task handler reconstructs queue names from its own configured prefix), but two namespaces sharing a database and jobPrefix — the closest analog of the stated multi-framework use case — would consume each other's jobs and reconstruct queue names under the wrong prefix. Either include the namespace in the job name (workflow_{ns}_flows) or document that postgres isolation requires distinct jobPrefix/databases.
  2. Module-load-time env resolution in two places: WORKFLOW_QUEUE_TRIGGER = createWorkflowQueueTrigger() and const stepHandler = createStepHandler(). Both bake process.env.WORKFLOW_QUEUE_NAMESPACE at import time. This works for the current build/runtime flows, but the trigger constant's docstring ("Default queue trigger (no namespace). Backward compatible.") is inaccurate whenever the env var is set in the importing process — worth rewording to "namespace resolved from the environment at import time."
  3. The lazy waitUntil has a small unhandled-rejection window: void import('@vercel/functions').then(({ waitUntil }) => waitUntil(promise)) — if the platform's waitUntil throws (e.g. called after response finalization on the cold path where the dynamic import does real work), that rejection is unobserved. A .catch with a debug log would make the failure mode visible. The lazy-loading itself is clearly deliberate (and pinned by the new test), so this is just hardening.
  4. Duplicated namespace helpers in builders/src/constants.ts vs world/src/queue.ts — clearly deliberate (the @workflow/world dependency was removed from builders in the same commit), but the two regex patterns must now stay in sync by hand. A cross-referencing comment on both sides ("mirror of …, keep in sync") would cheapen future drift.
  5. createStepHandler(namespace?)'s parameter is currently never passed explicitly (only the module-level createStepHandler() exists), so the V1 split-route step handler is env-only while the V2 combined route gets the baked option. Fine — V1 is legacy — but if the param is meant for future use a one-line comment saying so would keep someone from "cleaning it up."

CI

Checks were re-running on the head commit when I reviewed (post-fix-up push); nothing failing, and the changeset correctly covers all five touched packages with minor. Approving — the docs ask is the one thing I'd really like to see land before (or immediately after) this merges.

@github-actionsgithub-actionsBot mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2341. Merge conflicts were resolved by AI — please review carefully. (backport job run)

Sign up for freeto 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.

4 participants

@willsather@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Auto-enable theater mode on YouTube (function() { function tryTheater() { var btn = document.querySelector('button[aria-label="Theater mode"], ytd-player #player button[title="Theater mode"]'); if (btn && !btn.classList.contains('activated')) { btn.click(); } } // Try immediately tryTheater(); // Try after navigation (SPA) var lastUrl = location.href; setInterval(function() { if (location.href !== lastUrl) { lastUrl = location.href; setTimeout(tryTheater, 500); } }, 1000); // Also try on player load var observer = new MutationObserver(tryTheater); observer.observe(document.body, { childList: true, subtree: true }); })(); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + ' feat(core): add optional namespace for queue topic prefix by willsather · Pull Request #2305 · vercel/workflow · GitHub
Skip to content

feat(core): add optional namespace for queue topic prefix - #2305

Merged
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace
Jun 11, 2026
Merged

feat(core): add optional namespace for queue topic prefix#2305
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace

Conversation

@willsather

@willsatherwillsather commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • add optional namespace configuration to queue topic prefixes
  • update QueuePrefix / ValidQueueName Zod schemas and world-local routing to accept namespaced prefixes
  • update world-postgres job queue prefix parsing
  • update/create tests to validate queuePrefix parsing

@willsather
willsather requested a review from a team as a code ownerJune 9, 2026 03:29
@changeset-bot

changeset-botBot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292ebf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
NameType
@workflow/worldMinor
@workflow/buildersMinor
@workflow/coreMinor
@workflow/world-localMinor
@workflow/world-postgresMinor
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@workflow/world-vercelPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
workflowMinor
@workflow/nuxtPatch
@workflow/aiMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.044s (+0.9%)1.008s (~)0.964s101.00x
💻 LocalNitro0.044s (+3.3%)1.007s (~)0.963s101.01x
🐘 PostgresNitro0.056s (-11.2% 🟢)1.013s (~)0.957s101.29x
💻 LocalNext.js (Turbopack)0.061s (+10.2% 🔺)1.006s (~)0.945s101.39x
🐘 PostgresNext.js (Turbopack)0.069s (-1.3%)1.013s (~)0.944s101.58x
🐘 PostgresExpress0.123s (+86.3% 🔺)1.041s (+2.6%)0.918s102.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.325s (+19.4% 🔺)2.514s (-7.3% 🟢)2.189s101.00x
▲ VercelNitro0.335s (+28.3% 🔺)2.236s (-8.2% 🟢)1.901s101.03x
▲ VercelNext.js (Turbopack)0.367s (+11.5% 🔺)2.239s (-4.4%)1.872s101.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (~)2.007s (~)0.912s101.00x
💻 LocalExpress1.095s (~)2.006s (~)0.911s101.00x
🐘 PostgresExpress1.099s (+0.6%)2.009s (~)0.910s101.00x
🐘 PostgresNitro1.107s (-0.6%)2.013s (~)0.906s101.01x
💻 LocalNext.js (Turbopack)1.134s (+2.3%)2.006s (~)0.873s101.04x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.010s (~)0.864s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.625s (+2.6%)3.783s (+5.9% 🔺)2.158s101.00x
▲ VercelNext.js (Turbopack)1.676s (+0.6%)3.472s (-14.9% 🟢)1.796s101.03x
▲ VercelNitro1.704s (+8.8% 🔺)3.302s (-6.5% 🟢)1.599s101.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.512s (~)11.018s (~)0.506s31.00x
💻 LocalNitro10.544s (~)11.024s (~)0.480s31.00x
💻 LocalExpress10.554s (~)11.023s (~)0.469s31.00x
🐘 PostgresExpress10.640s (-0.7%)11.040s (-2.7%)0.400s31.01x
💻 LocalNext.js (Turbopack)10.752s (+1.4%)11.023s (~)0.271s31.02x
🐘 PostgresNext.js (Turbopack)10.916s (+0.9%)11.352s (+3.0%)0.436s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro14.005s (+5.1% 🔺)15.619s (~)1.614s21.00x
▲ VercelExpress14.040s (+6.7% 🔺)16.710s (+8.2% 🔺)2.670s21.00x
▲ VercelNext.js (Turbopack)14.262s (+5.7% 🔺)15.726s (-2.3%)1.463s21.02x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.799s (+0.6%)14.027s (~)0.229s51.00x
🐘 PostgresNitro13.839s (~)14.020s (~)0.181s51.00x
💻 LocalExpress13.862s (~)14.226s (~)0.364s51.00x
🐘 PostgresExpress14.021s (+1.3%)14.231s (~)0.211s51.02x
🐘 PostgresNext.js (Turbopack)14.444s (-1.0%)15.021s (~)0.576s41.05x
💻 LocalNext.js (Turbopack)14.540s (+3.7%)15.029s (+2.8%)0.489s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.128s (-21.0% 🟢)22.147s (-18.7% 🟢)2.019s31.00x
▲ VercelNitro20.666s (-19.0% 🟢)22.220s (-19.5% 🟢)1.554s31.03x
▲ VercelNext.js (Turbopack)22.006s (-13.8% 🟢)23.701s (-12.9% 🟢)1.694s31.09x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.483s (-2.0%)13.017s (~)0.534s71.00x
💻 LocalNitro12.546s (+1.1%)13.025s (~)0.479s71.01x
💻 LocalExpress12.560s (~)13.027s (~)0.467s71.01x
🐘 PostgresExpress12.696s (~)13.174s (-1.0%)0.478s71.02x
💻 LocalNext.js (Turbopack)13.617s (+5.2% 🔺)14.027s (+5.4% 🔺)0.410s71.09x
🐘 PostgresNext.js (Turbopack)13.724s (~)14.019s (~)0.295s71.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.544s (-17.2% 🟢)29.208s (-14.7% 🟢)2.664s41.00x
▲ VercelNitro27.624s (-4.9%)29.818s (-5.0% 🟢)2.193s41.04x
▲ VercelNext.js (Turbopack)30.635s (+3.5%)32.836s (+3.1%)2.202s31.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.168s (-2.6%)2.008s (~)0.840s151.00x
🐘 PostgresExpress1.189s (-0.9%)2.007s (-0.7%)0.819s151.02x
💻 LocalNitro1.231s (+1.5%)2.006s (~)0.775s151.05x
🐘 PostgresNext.js (Turbopack)1.241s (-0.8%)2.007s (~)0.767s151.06x
💻 LocalExpress1.264s (~)2.007s (~)0.743s151.08x
💻 LocalNext.js (Turbopack)1.278s (+4.5%)2.006s (~)0.728s151.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.525s (-8.9% 🟢)4.306s (-0.8%)1.782s81.00x
▲ VercelNext.js (Turbopack)2.708s (+0.8%)4.325s (+2.5%)1.617s71.07x
▲ VercelExpress2.762s (~)4.410s (-6.6% 🟢)1.648s71.09x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-1.1%)2.007s (~)0.762s151.00x
🐘 PostgresExpress1.362s (+2.7%)2.016s (~)0.654s151.09x
🐘 PostgresNext.js (Turbopack)1.380s (-2.1%)2.007s (~)0.628s151.11x
💻 LocalNext.js (Turbopack)1.700s (-1.5%)2.073s (+3.3%)0.373s151.37x
💻 LocalNitro1.840s (+8.0% 🔺)2.149s (+3.7%)0.309s141.48x
💻 LocalExpress1.914s (+1.7%)2.315s (+4.2%)0.401s131.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.330s (-18.2% 🟢)4.700s (-24.3% 🟢)1.370s71.00x
▲ VercelExpress3.645s (-10.8% 🟢)5.687s (-7.8% 🟢)2.042s61.09x
▲ VercelNext.js (Turbopack)3.647s (-11.2% 🟢)5.432s (-11.5% 🟢)1.784s61.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.382s (-1.7%)2.008s (~)0.626s151.00x
🐘 PostgresExpress1.437s (+3.1%)2.160s (+7.4% 🔺)0.723s141.04x
🐘 PostgresNext.js (Turbopack)1.675s (-4.8%)2.223s (-3.1%)0.548s141.21x
💻 LocalNext.js (Turbopack)4.473s (+1.8%)5.156s (+2.9%)0.683s73.24x
💻 LocalNitro5.154s (+9.2% 🔺)5.680s (+13.4% 🔺)0.526s63.73x
💻 LocalExpress5.448s (+2.8%)6.013s (~)0.565s53.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.797s (-18.7% 🟢)7.028s (-11.0% 🟢)2.231s51.00x
▲ VercelNitro5.811s (-13.7% 🟢)8.021s (-7.9% 🟢)2.209s41.21x
▲ VercelNext.js (Turbopack)6.254s (+6.5% 🔺)8.409s (+8.1% 🔺)2.154s41.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.176s (-2.0%)2.008s (~)0.832s151.00x
🐘 PostgresExpress1.220s (+1.5%)2.020s (+0.6%)0.799s151.04x
🐘 PostgresNext.js (Turbopack)1.235s (-2.5%)2.009s (~)0.774s151.05x
💻 LocalNext.js (Turbopack)1.375s (+5.3% 🔺)2.006s (~)0.631s151.17x
💻 LocalExpress1.597s (-3.6%)2.007s (-3.2%)0.410s151.36x
💻 LocalNitro1.621s (+5.1% 🔺)2.007s (~)0.386s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.335s (-9.0% 🟢)3.982s (-5.1% 🟢)1.647s81.00x
▲ VercelNitro2.563s (-4.1%)3.891s (-10.2% 🟢)1.329s81.10x
▲ VercelNext.js (Turbopack)2.602s (-40.5% 🟢)4.311s (-31.5% 🟢)1.709s81.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.258s (-1.3%)2.009s (~)0.751s151.00x
🐘 PostgresExpress1.349s (+8.5% 🔺)2.082s (+3.5%)0.734s151.07x
🐘 PostgresNext.js (Turbopack)1.368s (-2.1%)2.008s (~)0.639s151.09x
💻 LocalNext.js (Turbopack)1.988s (-1.6%)2.508s (~)0.519s121.58x
💻 LocalExpress2.015s (-5.2% 🟢)2.472s (-4.6%)0.457s131.60x
💻 LocalNitro2.151s (+22.5% 🔺)2.593s (+25.1% 🔺)0.441s121.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.315s (-19.1% 🟢)4.859s (-19.1% 🟢)1.544s71.00x
▲ VercelExpress3.396s (-7.6% 🟢)5.325s (-5.1% 🟢)1.929s61.02x
▲ VercelNext.js (Turbopack)3.987s (-11.8% 🟢)5.384s (-12.7% 🟢)1.397s61.20x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.335s (-11.0% 🟢)2.006s (-16.3% 🟢)0.672s151.00x
🐘 PostgresNitro1.371s (-6.2% 🟢)2.007s (~)0.636s151.03x
🐘 PostgresNext.js (Turbopack)1.668s (+0.7%)2.077s (~)0.408s151.25x
💻 LocalNext.js (Turbopack)5.289s (+2.5%)5.849s (-2.8%)0.560s63.96x
💻 LocalNitro5.644s (+19.0% 🔺)6.180s (+15.6% 🔺)0.536s64.23x
💻 LocalExpress6.583s (+12.3% 🔺)7.018s (+12.9% 🔺)0.434s54.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.952s (~)6.573s (-2.4%)1.621s51.00x
▲ VercelExpress5.498s (+8.4% 🔺)7.998s (+20.7% 🔺)2.500s41.11x
▲ VercelNext.js (Turbopack)5.529s (-4.5%)7.480s (-1.3%)1.950s51.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.542s (-18.7% 🟢)1.025s (-2.2%)0.483s591.00x
🐘 PostgresNitro0.551s (-9.6% 🟢)1.006s (~)0.455s601.02x
💻 LocalExpress0.608s (-7.3% 🟢)1.005s (-3.3%)0.397s601.12x
💻 LocalNitro0.615s (-23.6% 🟢)1.005s (-16.6% 🟢)0.390s601.13x
🐘 PostgresNext.js (Turbopack)0.803s (-1.1%)1.023s (+1.7%)0.220s591.48x
💻 LocalNext.js (Turbopack)0.895s (+28.5% 🔺)1.058s (+5.3% 🔺)0.163s571.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.453s (-0.9%)7.343s (+3.2%)1.889s91.00x
▲ VercelNitro5.713s (-23.4% 🟢)7.108s (-25.3% 🟢)1.395s91.05x
▲ VercelNext.js (Turbopack)5.829s (+15.5% 🔺)7.381s (+7.8% 🔺)1.553s91.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.384s (-2.3%)2.009s (~)0.624s451.00x
🐘 PostgresExpress1.478s (-3.8%)2.084s (-3.2%)0.607s441.07x
💻 LocalExpress1.546s (-2.9%)2.007s (-1.1%)0.461s451.12x
💻 LocalNitro1.557s (+6.3% 🔺)2.007s (~)0.450s451.12x
🐘 PostgresNext.js (Turbopack)2.016s (+3.8%)2.343s (+7.7% 🔺)0.327s391.46x
💻 LocalNext.js (Turbopack)2.120s (+22.7% 🔺)3.008s (+48.3% 🔺)0.888s301.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.517s (+2.3%)15.691s (+1.4%)2.175s61.00x
▲ VercelExpress13.941s (-14.9% 🟢)16.387s (-10.5% 🟢)2.447s61.03x
▲ VercelNext.js (Turbopack)166.602s (+1027.7% 🔺)168.117s (+892.9% 🔺)1.514s212.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.821s (-3.2%)3.253s (-0.9%)0.432s371.00x
🐘 PostgresExpress3.127s (+7.4% 🔺)3.739s (+5.6% 🔺)0.612s331.11x
💻 LocalNitro3.335s (+4.0%)4.009s (~)0.674s301.18x
💻 LocalExpress3.367s (-1.5%)4.010s (~)0.643s301.19x
🐘 PostgresNext.js (Turbopack)3.891s (+0.8%)4.183s (+2.6%)0.291s291.38x
💻 LocalNext.js (Turbopack)4.385s (+17.6% 🔺)5.012s (+22.0% 🔺)0.627s241.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.618s (-14.0% 🟢)28.009s (-12.4% 🟢)2.391s51.00x
▲ VercelExpress26.866s (-6.9% 🟢)30.194s (-2.3%)3.328s51.05x
▲ VercelNext.js (Turbopack)27.500s (+1.9%)29.271s (~)1.772s51.07x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.221s (-6.2% 🟢)1.006s (~)0.786s601.00x
🐘 PostgresExpress0.261s (+3.6%)1.013s (~)0.751s601.18x
🐘 PostgresNext.js (Turbopack)0.265s (-6.0% 🟢)1.006s (~)0.741s601.20x
💻 LocalNitro0.423s (~)1.005s (~)0.582s601.91x
💻 LocalExpress0.434s (-6.6% 🟢)1.005s (~)0.571s601.97x
💻 LocalNext.js (Turbopack)0.603s (-1.3%)1.022s (-1.6%)0.419s592.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.389s (+1.9%)3.820s (-11.9% 🟢)1.431s161.00x
▲ VercelExpress2.413s (+9.1% 🔺)4.293s (+4.8%)1.880s141.01x
▲ VercelNext.js (Turbopack)2.541s (+15.5% 🔺)3.917s (-7.2% 🟢)1.376s161.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.329s (-11.2% 🟢)1.007s (~)0.677s901.00x
🐘 PostgresNext.js (Turbopack)0.495s (+2.5%)1.006s (~)0.512s901.50x
🐘 PostgresExpress0.551s (+62.5% 🔺)1.129s (+12.1% 🔺)0.578s801.67x
💻 LocalExpress2.148s (-2.0%)2.885s (+2.2%)0.736s326.52x
💻 LocalNitro2.172s (+5.2% 🔺)2.685s (+1.8%)0.513s346.60x
💻 LocalNext.js (Turbopack)2.347s (-4.2%)3.077s (-1.0%)0.731s307.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.478s (-87.4% 🟢)7.446s (-83.5% 🟢)1.968s131.00x
▲ VercelNitro5.543s (-87.3% 🟢)7.124s (-84.5% 🟢)1.581s131.01x
▲ VercelNext.js (Turbopack)5.628s (-10.2% 🟢)7.236s (-14.8% 🟢)1.608s131.03x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.656s (-7.2% 🟢)1.006s (~)0.350s1201.00x
🐘 PostgresExpress0.748s (+19.6% 🔺)1.164s (+10.3% 🔺)0.416s1041.14x
🐘 PostgresNext.js (Turbopack)0.972s (-0.8%)1.644s (+2.2%)0.672s741.48x
💻 LocalNitro9.731s (+11.7% 🔺)10.446s (+11.9% 🔺)0.715s1214.83x
💻 LocalNext.js (Turbopack)10.183s (-1.3%)10.861s (-3.9%)0.678s1215.52x
💻 LocalExpress10.295s (~)10.779s (-0.8%)0.484s1215.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.976s (-1.8%)17.377s (-0.7%)2.401s71.00x
▲ VercelNitro15.437s (-95.0% 🟢)17.367s (-94.5% 🟢)1.930s71.03x
▲ VercelNext.js (Turbopack)18.443s (-88.5% 🟢)20.158s (-87.6% 🟢)1.714s71.23x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.156s (-2.1%)1.998s (~)0.001s (-21.4% 🟢)2.009s (~)0.853s101.00x
💻 LocalExpress1.171s (~)2.005s (~)0.013s (~)2.021s (~)0.850s101.01x
💻 LocalNitro1.183s (+2.8%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.837s101.02x
🐘 PostgresExpress1.198s (~)1.990s (-0.5%)0.001s (-97.1% 🟢)2.013s (-1.5%)0.815s101.04x
💻 LocalNext.js (Turbopack)1.209s (+3.4%)2.003s (~)0.010s (+2.0%)2.018s (~)0.809s101.05x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.002s (~)0.001s (-33.3% 🟢)2.011s (~)0.788s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.135s (-1.4%)3.025s (-11.5% 🟢)1.522s (+195.0% 🔺)4.959s (+11.0% 🔺)2.824s101.00x
▲ VercelExpress2.136s (~)3.435s (+0.8%)0.359s (-31.7% 🟢)4.283s (-3.7%)2.147s101.00x
▲ VercelNext.js (Turbopack)2.523s (+12.6% 🔺)3.277s (-7.7% 🟢)1.467s (-88.2% 🟢)5.161s (-68.7% 🟢)2.637s101.18x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.590s (-4.4%)2.005s (~)0.005s (+32.5% 🔺)2.027s (~)0.438s301.00x
💻 LocalNitro1.597s (-8.4% 🟢)2.012s (~)0.012s (+28.8% 🔺)2.026s (-7.8% 🟢)0.430s301.00x
💻 LocalExpress1.619s (-1.1%)2.012s (~)0.014s (+22.7% 🔺)2.027s (~)0.409s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.6% 🔺)2.009s (~)0.013s (+25.4% 🔺)2.025s (~)0.293s301.09x
🐘 PostgresNext.js (Turbopack)1.738s (-1.4%)2.010s (~)0.005s (+30.6% 🔺)2.027s (~)0.288s301.09x
🐘 PostgresExpress1.888s (+8.7% 🔺)2.333s (+8.9% 🔺)0.008s (+155.3% 🔺)2.383s (+10.3% 🔺)0.495s261.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.848s (+1.6%)7.572s (+1.9%)0.251s (-29.0% 🟢)8.364s (~)2.516s81.00x
▲ VercelNitro5.935s (+3.3%)6.887s (-9.3% 🟢)0.494s (+46.4% 🔺)7.791s (-8.2% 🟢)1.856s81.01x
▲ VercelNext.js (Turbopack)5.956s (-6.5% 🟢)6.857s (-13.6% 🟢)0.270s (-25.3% 🟢)7.562s (-14.7% 🟢)1.606s81.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.718s (-0.6%)1.051s (+1.9%)0.000s (-66.1% 🟢)1.061s (+1.3%)0.343s571.00x
🐘 PostgresNext.js (Turbopack)0.833s (~)1.092s (+1.9%)0.000s (-49.1% 🟢)1.099s (+1.8%)0.266s551.16x
🐘 PostgresExpress1.143s (+16.9% 🔺)1.559s (+9.2% 🔺)0.000s (-100.0% 🟢)1.599s (+10.4% 🔺)0.456s381.59x
💻 LocalNitro1.398s (+3.3%)2.013s (~)0.000s (-46.7% 🟢)2.015s (~)0.618s301.95x
💻 LocalExpress1.444s (-2.6%)2.014s (~)0.001s (+53.3% 🔺)2.017s (~)0.572s302.01x
💻 LocalNext.js (Turbopack)1.479s (+2.2%)2.012s (~)0.000s (+25.0% 🔺)2.015s (~)0.536s302.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.231s (-2.3%)4.317s (-11.8% 🟢)0.000s (NaN%)4.733s (-13.3% 🟢)1.502s131.00x
▲ VercelNitro3.250s (-9.7% 🟢)4.423s (-12.8% 🟢)0.000s (NaN%)4.848s (-13.9% 🟢)1.598s131.01x
▲ VercelExpress3.702s (-8.8% 🟢)5.202s (-2.6%)0.000s (-100.0% 🟢)5.733s (-7.1% 🟢)2.031s111.15x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.427s (+1.2%)2.142s (+7.3% 🔺)0.000s (NaN%)2.154s (+7.0% 🔺)0.726s281.00x
🐘 PostgresNext.js (Turbopack)1.857s (+7.5% 🔺)2.444s (+8.1% 🔺)0.000s (+Infinity% 🔺)2.463s (+8.5% 🔺)0.606s251.30x
🐘 PostgresExpress2.699s (+67.1% 🔺)3.125s (+38.7% 🔺)0.000s (+Infinity% 🔺)3.188s (+39.9% 🔺)0.490s191.89x
💻 LocalNext.js (Turbopack)2.892s (-10.0% 🟢)3.553s (-8.8% 🟢)0.000s (+50.6% 🔺)3.557s (-8.8% 🟢)0.665s172.03x
💻 LocalNitro3.067s (-1.5%)3.777s (-3.0%)0.000s (+50.0% 🔺)3.780s (-3.1%)0.713s162.15x
💻 LocalExpress3.296s (-1.1%)3.966s (+3.3%)0.001s (+133.3% 🔺)3.969s (+3.2%)0.673s162.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.828s (-6.6% 🟢)6.206s (-7.1% 🟢)0.000s (-77.5% 🟢)6.604s (-8.3% 🟢)1.776s101.00x
▲ VercelExpress4.940s (-21.8% 🟢)6.586s (-13.7% 🟢)0.000s (-70.4% 🟢)7.197s (-12.1% 🟢)2.257s91.02x
▲ VercelNitro5.015s (-28.8% 🟢)6.205s (-27.6% 🟢)0.000s (+Infinity% 🔺)6.656s (-26.8% 🟢)1.640s101.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/21
🐘 PostgresNitro18/21
▲ VercelExpress10/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production126602191485
✅ 💻 Local Development167102191890
✅ 📦 Local Production167102191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7183010528235

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
✅ express109026
✅ fastify109026
✅ hono109026
✅ nextjs-turbopack13302
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

packages/builders/src/constants.ts imports getQueueTopicPrefix from @workflow/world, but @workflow/world is not declared in packages/builders/package.json dependencies, causing the build to fail with TS2307.

Fix on Vercel

@willsather
willsatherforce-pushed the willsather/add-queue-prefix-namespace branch from 187c205 to 805bea2CompareJune 9, 2026 03:37

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Indexing the fixed-shape Queues object with a QueuePrefix (now widened to string) triggers TS7053, breaking the @workflow/world-postgres build.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

setupListeners() references a deleted Queues constant, causing tsc to fail with TS2552 and breaking the @workflow/world-postgres build.

Fix on Vercel

Comment threadpackages/core/src/runtime/helpers.ts Outdated

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

With WORKFLOW_QUEUE_NAMESPACE set, parseQueueName/getQueueRoute/createTaskHandler in world-postgres still match only the non-namespaced default prefixes, so namespaced queue names produced by the core producer throw Invalid queue name (enqueue fails) and lose workflow-run serialization.

Fix on Vercel

ijjk added 2 commits June 10, 2026 17:27
* Fix namespaced queue routing reliability
* Inline queue namespace in generated routes
* Avoid loading Vercel functions during runtime import

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — solid contract design, thorough iteration; main ask is documentation

I built all five packages from this branch and ran the suites locally: 50 world tests, 6 builders constants tests, 8 world-local queue tests, 8 world-postgres queue tests, and the full core unit suite (1110 tests) — all green.

What's good

  • The naming contract is well-designed. Single-label namespace ([a-z][a-z0-9]* — no underscores) makes parseQueueName deterministic: I worked through the adversarial cases (__wkf_workflow_foo vs a hypothetical wkf namespace, multi-underscore labels, ids containing wkf_workflow_) and the regex backtracking always lands on a single unambiguous parse. The prefix/kind/id helpers centralize what was previously stringly-typed startsWith logic scattered across three packages.
  • The review iteration addressed the real correctness gaps. The original producer/consumer mismatch (entrypoint consuming a namespaced topic while start()/requeue paths enqueued un-namespaced) and the world-postgres Queues map throwing on namespaced prefixes were both caught and fixed; the follow-up routing-reliability commit routes every producer, consumer, and trigger site through resolveQueueNamespace, and bakes the namespace into generated routes at build time so the flow route doesn't depend on the runtime env.
  • runtime-import.test.ts is a good regression pin — mocking @vercel/functions to throw on load and asserting the runtime module still imports proves the lazy-loading actually holds, rather than depending on bundler luck.
  • Contract-level test coverage is comprehensive: prefix construction, namespace validation (digit-start/uppercase/empty/special chars rejected), schema acceptance/rejection, kind extraction, name parsing, and the world-local namespaced direct-handler routing test.

Main ask: documentation (should-fix, can be a fast-follow)

This PR introduces a user-facing env var (WORKFLOW_QUEUE_NAMESPACE) with a non-obvious operational requirement and ships zero docs. The critical thing to document is the build-time/runtime consistency requirement: the flow-route consumer gets the namespace baked at build, but producers (start(), resumeHook(), step-handler requeues) resolve it from the runtime env. If the env var is set in one phase but not the other (build-only env vars in some CI setups, or added to a running deployment without a rebuild), messages get enqueued to a topic no trigger listens on — silently. A short docs section ("set it as a regular project env var so build and runtime agree; changing it requires a redeploy; in-flight messages on the old topic are stranded") would save someone a very confusing afternoon. The migration story for an existing deployment that adopts a namespace (in-flight un-namespaced messages) deserves a sentence too.

Smaller notes (non-blocking)

  1. world-postgres namespace isolation is partial.getJobQueueName collapses every namespace into the same graphile job names (workflow_flows/workflow_steps). One app + one namespace works correctly (the task handler reconstructs queue names from its own configured prefix), but two namespaces sharing a database and jobPrefix — the closest analog of the stated multi-framework use case — would consume each other's jobs and reconstruct queue names under the wrong prefix. Either include the namespace in the job name (workflow_{ns}_flows) or document that postgres isolation requires distinct jobPrefix/databases.
  2. Module-load-time env resolution in two places: WORKFLOW_QUEUE_TRIGGER = createWorkflowQueueTrigger() and const stepHandler = createStepHandler(). Both bake process.env.WORKFLOW_QUEUE_NAMESPACE at import time. This works for the current build/runtime flows, but the trigger constant's docstring ("Default queue trigger (no namespace). Backward compatible.") is inaccurate whenever the env var is set in the importing process — worth rewording to "namespace resolved from the environment at import time."
  3. The lazy waitUntil has a small unhandled-rejection window: void import('@vercel/functions').then(({ waitUntil }) => waitUntil(promise)) — if the platform's waitUntil throws (e.g. called after response finalization on the cold path where the dynamic import does real work), that rejection is unobserved. A .catch with a debug log would make the failure mode visible. The lazy-loading itself is clearly deliberate (and pinned by the new test), so this is just hardening.
  4. Duplicated namespace helpers in builders/src/constants.ts vs world/src/queue.ts — clearly deliberate (the @workflow/world dependency was removed from builders in the same commit), but the two regex patterns must now stay in sync by hand. A cross-referencing comment on both sides ("mirror of …, keep in sync") would cheapen future drift.
  5. createStepHandler(namespace?)'s parameter is currently never passed explicitly (only the module-level createStepHandler() exists), so the V1 split-route step handler is env-only while the V2 combined route gets the baked option. Fine — V1 is legacy — but if the param is meant for future use a one-line comment saying so would keep someone from "cleaning it up."

CI

Checks were re-running on the head commit when I reviewed (post-fix-up push); nothing failing, and the changeset correctly covers all five touched packages with minor. Approving — the docs ask is the one thing I'd really like to see land before (or immediately after) this merges.

@github-actionsgithub-actionsBot mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2341. Merge conflicts were resolved by AI — please review carefully. (backport job run)

Sign up for freeto 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.

4 participants

@willsather@TooTallNate@ijjk@VaguelySerious
, 'i'); if (__m === '*' || __re.test(location.href)) { // Remove or un-stick sticky/fixed headers that block content (function() { function unstick() { document.querySelectorAll('header, nav, [role="banner"], .header, .navbar, .sticky, .fixed-top, [style*="position: fixed"], [style*="position:sticky"]').forEach(function(el) { if (el.style.position === 'fixed' || el.style.position === 'sticky' || getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') { el.style.position = 'static'; el.style.top = 'auto'; el.style.zIndex = 'auto'; } }); } unstick(); var observer = new MutationObserver(unstick); observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] }); })(); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); })(); feat(core): add optional namespace for queue topic prefix by willsather · Pull Request #2305 · vercel/workflow · GitHub
Skip to content

feat(core): add optional namespace for queue topic prefix - #2305

Merged
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace
Jun 11, 2026
Merged

feat(core): add optional namespace for queue topic prefix#2305
ijjk merged 10 commits into
mainfrom
willsather/add-queue-prefix-namespace

Conversation

@willsather

@willsatherwillsather commented Jun 9, 2026

Copy link
Copy Markdown
Member
  • add optional namespace configuration to queue topic prefixes
  • update QueuePrefix / ValidQueueName Zod schemas and world-local routing to accept namespaced prefixes
  • update world-postgres job queue prefix parsing
  • update/create tests to validate queuePrefix parsing

@willsather
willsather requested a review from a team as a code ownerJune 9, 2026 03:29
@changeset-bot

changeset-botBot commented Jun 9, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 292ebf2

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 21 packages
NameType
@workflow/worldMinor
@workflow/buildersMinor
@workflow/coreMinor
@workflow/world-localMinor
@workflow/world-postgresMinor
@workflow/cliPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/webPatch
@workflow/world-testingPatch
@workflow/world-vercelPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/rollupPatch
@workflow/sveltekitPatch
@workflow/vitePatch
workflowMinor
@workflow/nuxtPatch
@workflow/aiMajor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@vercel

vercelBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📊 Benchmark Results

📈 Comparing against baseline from main branch. Green 🟢 = faster, Red 🔺 = slower.

workflow with no steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Express0.044s (+0.9%)1.008s (~)0.964s101.00x
💻 LocalNitro0.044s (+3.3%)1.007s (~)0.963s101.01x
🐘 PostgresNitro0.056s (-11.2% 🟢)1.013s (~)0.957s101.29x
💻 LocalNext.js (Turbopack)0.061s (+10.2% 🔺)1.006s (~)0.945s101.39x
🐘 PostgresNext.js (Turbopack)0.069s (-1.3%)1.013s (~)0.944s101.58x
🐘 PostgresExpress0.123s (+86.3% 🔺)1.041s (+2.6%)0.918s102.83x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express0.325s (+19.4% 🔺)2.514s (-7.3% 🟢)2.189s101.00x
▲ VercelNitro0.335s (+28.3% 🔺)2.236s (-8.2% 🟢)1.901s101.03x
▲ VercelNext.js (Turbopack)0.367s (+11.5% 🔺)2.239s (-4.4%)1.872s101.13x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro1.095s (~)2.007s (~)0.912s101.00x
💻 LocalExpress1.095s (~)2.006s (~)0.911s101.00x
🐘 PostgresExpress1.099s (+0.6%)2.009s (~)0.910s101.00x
🐘 PostgresNitro1.107s (-0.6%)2.013s (~)0.906s101.01x
💻 LocalNext.js (Turbopack)1.134s (+2.3%)2.006s (~)0.873s101.04x
🐘 PostgresNext.js (Turbopack)1.146s (~)2.010s (~)0.864s101.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.625s (+2.6%)3.783s (+5.9% 🔺)2.158s101.00x
▲ VercelNext.js (Turbopack)1.676s (+0.6%)3.472s (-14.9% 🟢)1.796s101.03x
▲ VercelNitro1.704s (+8.8% 🔺)3.302s (-6.5% 🟢)1.599s101.05x

🔍 Observability: Express | Next.js (Turbopack) | Nitro

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro10.512s (~)11.018s (~)0.506s31.00x
💻 LocalNitro10.544s (~)11.024s (~)0.480s31.00x
💻 LocalExpress10.554s (~)11.023s (~)0.469s31.00x
🐘 PostgresExpress10.640s (-0.7%)11.040s (-2.7%)0.400s31.01x
💻 LocalNext.js (Turbopack)10.752s (+1.4%)11.023s (~)0.271s31.02x
🐘 PostgresNext.js (Turbopack)10.916s (+0.9%)11.352s (+3.0%)0.436s31.04x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro14.005s (+5.1% 🔺)15.619s (~)1.614s21.00x
▲ VercelExpress14.040s (+6.7% 🔺)16.710s (+8.2% 🔺)2.670s21.00x
▲ VercelNext.js (Turbopack)14.262s (+5.7% 🔺)15.726s (-2.3%)1.463s21.02x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Nitro13.799s (+0.6%)14.027s (~)0.229s51.00x
🐘 PostgresNitro13.839s (~)14.020s (~)0.181s51.00x
💻 LocalExpress13.862s (~)14.226s (~)0.364s51.00x
🐘 PostgresExpress14.021s (+1.3%)14.231s (~)0.211s51.02x
🐘 PostgresNext.js (Turbopack)14.444s (-1.0%)15.021s (~)0.576s41.05x
💻 LocalNext.js (Turbopack)14.540s (+3.7%)15.029s (+2.8%)0.489s41.05x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express20.128s (-21.0% 🟢)22.147s (-18.7% 🟢)2.019s31.00x
▲ VercelNitro20.666s (-19.0% 🟢)22.220s (-19.5% 🟢)1.554s31.03x
▲ VercelNext.js (Turbopack)22.006s (-13.8% 🟢)23.701s (-12.9% 🟢)1.694s31.09x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro12.483s (-2.0%)13.017s (~)0.534s71.00x
💻 LocalNitro12.546s (+1.1%)13.025s (~)0.479s71.01x
💻 LocalExpress12.560s (~)13.027s (~)0.467s71.01x
🐘 PostgresExpress12.696s (~)13.174s (-1.0%)0.478s71.02x
💻 LocalNext.js (Turbopack)13.617s (+5.2% 🔺)14.027s (+5.4% 🔺)0.410s71.09x
🐘 PostgresNext.js (Turbopack)13.724s (~)14.019s (~)0.295s71.10x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express26.544s (-17.2% 🟢)29.208s (-14.7% 🟢)2.664s41.00x
▲ VercelNitro27.624s (-4.9%)29.818s (-5.0% 🟢)2.193s41.04x
▲ VercelNext.js (Turbopack)30.635s (+3.5%)32.836s (+3.1%)2.202s31.15x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.168s (-2.6%)2.008s (~)0.840s151.00x
🐘 PostgresExpress1.189s (-0.9%)2.007s (-0.7%)0.819s151.02x
💻 LocalNitro1.231s (+1.5%)2.006s (~)0.775s151.05x
🐘 PostgresNext.js (Turbopack)1.241s (-0.8%)2.007s (~)0.767s151.06x
💻 LocalExpress1.264s (~)2.007s (~)0.743s151.08x
💻 LocalNext.js (Turbopack)1.278s (+4.5%)2.006s (~)0.728s151.09x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.525s (-8.9% 🟢)4.306s (-0.8%)1.782s81.00x
▲ VercelNext.js (Turbopack)2.708s (+0.8%)4.325s (+2.5%)1.617s71.07x
▲ VercelExpress2.762s (~)4.410s (-6.6% 🟢)1.648s71.09x

🔍 Observability: Nitro | Next.js (Turbopack) | Express

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-1.1%)2.007s (~)0.762s151.00x
🐘 PostgresExpress1.362s (+2.7%)2.016s (~)0.654s151.09x
🐘 PostgresNext.js (Turbopack)1.380s (-2.1%)2.007s (~)0.628s151.11x
💻 LocalNext.js (Turbopack)1.700s (-1.5%)2.073s (+3.3%)0.373s151.37x
💻 LocalNitro1.840s (+8.0% 🔺)2.149s (+3.7%)0.309s141.48x
💻 LocalExpress1.914s (+1.7%)2.315s (+4.2%)0.401s131.54x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.330s (-18.2% 🟢)4.700s (-24.3% 🟢)1.370s71.00x
▲ VercelExpress3.645s (-10.8% 🟢)5.687s (-7.8% 🟢)2.042s61.09x
▲ VercelNext.js (Turbopack)3.647s (-11.2% 🟢)5.432s (-11.5% 🟢)1.784s61.10x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.382s (-1.7%)2.008s (~)0.626s151.00x
🐘 PostgresExpress1.437s (+3.1%)2.160s (+7.4% 🔺)0.723s141.04x
🐘 PostgresNext.js (Turbopack)1.675s (-4.8%)2.223s (-3.1%)0.548s141.21x
💻 LocalNext.js (Turbopack)4.473s (+1.8%)5.156s (+2.9%)0.683s73.24x
💻 LocalNitro5.154s (+9.2% 🔺)5.680s (+13.4% 🔺)0.526s63.73x
💻 LocalExpress5.448s (+2.8%)6.013s (~)0.565s53.94x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express4.797s (-18.7% 🟢)7.028s (-11.0% 🟢)2.231s51.00x
▲ VercelNitro5.811s (-13.7% 🟢)8.021s (-7.9% 🟢)2.209s41.21x
▲ VercelNext.js (Turbopack)6.254s (+6.5% 🔺)8.409s (+8.1% 🔺)2.154s41.30x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.176s (-2.0%)2.008s (~)0.832s151.00x
🐘 PostgresExpress1.220s (+1.5%)2.020s (+0.6%)0.799s151.04x
🐘 PostgresNext.js (Turbopack)1.235s (-2.5%)2.009s (~)0.774s151.05x
💻 LocalNext.js (Turbopack)1.375s (+5.3% 🔺)2.006s (~)0.631s151.17x
💻 LocalExpress1.597s (-3.6%)2.007s (-3.2%)0.410s151.36x
💻 LocalNitro1.621s (+5.1% 🔺)2.007s (~)0.386s151.38x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.335s (-9.0% 🟢)3.982s (-5.1% 🟢)1.647s81.00x
▲ VercelNitro2.563s (-4.1%)3.891s (-10.2% 🟢)1.329s81.10x
▲ VercelNext.js (Turbopack)2.602s (-40.5% 🟢)4.311s (-31.5% 🟢)1.709s81.11x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.258s (-1.3%)2.009s (~)0.751s151.00x
🐘 PostgresExpress1.349s (+8.5% 🔺)2.082s (+3.5%)0.734s151.07x
🐘 PostgresNext.js (Turbopack)1.368s (-2.1%)2.008s (~)0.639s151.09x
💻 LocalNext.js (Turbopack)1.988s (-1.6%)2.508s (~)0.519s121.58x
💻 LocalExpress2.015s (-5.2% 🟢)2.472s (-4.6%)0.457s131.60x
💻 LocalNitro2.151s (+22.5% 🔺)2.593s (+25.1% 🔺)0.441s121.71x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.315s (-19.1% 🟢)4.859s (-19.1% 🟢)1.544s71.00x
▲ VercelExpress3.396s (-7.6% 🟢)5.325s (-5.1% 🟢)1.929s61.02x
▲ VercelNext.js (Turbopack)3.987s (-11.8% 🟢)5.384s (-12.7% 🟢)1.397s61.20x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express1.335s (-11.0% 🟢)2.006s (-16.3% 🟢)0.672s151.00x
🐘 PostgresNitro1.371s (-6.2% 🟢)2.007s (~)0.636s151.03x
🐘 PostgresNext.js (Turbopack)1.668s (+0.7%)2.077s (~)0.408s151.25x
💻 LocalNext.js (Turbopack)5.289s (+2.5%)5.849s (-2.8%)0.560s63.96x
💻 LocalNitro5.644s (+19.0% 🔺)6.180s (+15.6% 🔺)0.536s64.23x
💻 LocalExpress6.583s (+12.3% 🔺)7.018s (+12.9% 🔺)0.434s54.93x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.952s (~)6.573s (-2.4%)1.621s51.00x
▲ VercelExpress5.498s (+8.4% 🔺)7.998s (+20.7% 🔺)2.500s41.11x
▲ VercelNext.js (Turbopack)5.529s (-4.5%)7.480s (-1.3%)1.950s51.12x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express0.542s (-18.7% 🟢)1.025s (-2.2%)0.483s591.00x
🐘 PostgresNitro0.551s (-9.6% 🟢)1.006s (~)0.455s601.02x
💻 LocalExpress0.608s (-7.3% 🟢)1.005s (-3.3%)0.397s601.12x
💻 LocalNitro0.615s (-23.6% 🟢)1.005s (-16.6% 🟢)0.390s601.13x
🐘 PostgresNext.js (Turbopack)0.803s (-1.1%)1.023s (+1.7%)0.220s591.48x
💻 LocalNext.js (Turbopack)0.895s (+28.5% 🔺)1.058s (+5.3% 🔺)0.163s571.65x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.453s (-0.9%)7.343s (+3.2%)1.889s91.00x
▲ VercelNitro5.713s (-23.4% 🟢)7.108s (-25.3% 🟢)1.395s91.05x
▲ VercelNext.js (Turbopack)5.829s (+15.5% 🔺)7.381s (+7.8% 🔺)1.553s91.07x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.384s (-2.3%)2.009s (~)0.624s451.00x
🐘 PostgresExpress1.478s (-3.8%)2.084s (-3.2%)0.607s441.07x
💻 LocalExpress1.546s (-2.9%)2.007s (-1.1%)0.461s451.12x
💻 LocalNitro1.557s (+6.3% 🔺)2.007s (~)0.450s451.12x
🐘 PostgresNext.js (Turbopack)2.016s (+3.8%)2.343s (+7.7% 🔺)0.327s391.46x
💻 LocalNext.js (Turbopack)2.120s (+22.7% 🔺)3.008s (+48.3% 🔺)0.888s301.53x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro13.517s (+2.3%)15.691s (+1.4%)2.175s61.00x
▲ VercelExpress13.941s (-14.9% 🟢)16.387s (-10.5% 🟢)2.447s61.03x
▲ VercelNext.js (Turbopack)166.602s (+1027.7% 🔺)168.117s (+892.9% 🔺)1.514s212.33x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro2.821s (-3.2%)3.253s (-0.9%)0.432s371.00x
🐘 PostgresExpress3.127s (+7.4% 🔺)3.739s (+5.6% 🔺)0.612s331.11x
💻 LocalNitro3.335s (+4.0%)4.009s (~)0.674s301.18x
💻 LocalExpress3.367s (-1.5%)4.010s (~)0.643s301.19x
🐘 PostgresNext.js (Turbopack)3.891s (+0.8%)4.183s (+2.6%)0.291s291.38x
💻 LocalNext.js (Turbopack)4.385s (+17.6% 🔺)5.012s (+22.0% 🔺)0.627s241.55x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro25.618s (-14.0% 🟢)28.009s (-12.4% 🟢)2.391s51.00x
▲ VercelExpress26.866s (-6.9% 🟢)30.194s (-2.3%)3.328s51.05x
▲ VercelNext.js (Turbopack)27.500s (+1.9%)29.271s (~)1.772s51.07x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.221s (-6.2% 🟢)1.006s (~)0.786s601.00x
🐘 PostgresExpress0.261s (+3.6%)1.013s (~)0.751s601.18x
🐘 PostgresNext.js (Turbopack)0.265s (-6.0% 🟢)1.006s (~)0.741s601.20x
💻 LocalNitro0.423s (~)1.005s (~)0.582s601.91x
💻 LocalExpress0.434s (-6.6% 🟢)1.005s (~)0.571s601.97x
💻 LocalNext.js (Turbopack)0.603s (-1.3%)1.022s (-1.6%)0.419s592.73x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.389s (+1.9%)3.820s (-11.9% 🟢)1.431s161.00x
▲ VercelExpress2.413s (+9.1% 🔺)4.293s (+4.8%)1.880s141.01x
▲ VercelNext.js (Turbopack)2.541s (+15.5% 🔺)3.917s (-7.2% 🟢)1.376s161.06x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.329s (-11.2% 🟢)1.007s (~)0.677s901.00x
🐘 PostgresNext.js (Turbopack)0.495s (+2.5%)1.006s (~)0.512s901.50x
🐘 PostgresExpress0.551s (+62.5% 🔺)1.129s (+12.1% 🔺)0.578s801.67x
💻 LocalExpress2.148s (-2.0%)2.885s (+2.2%)0.736s326.52x
💻 LocalNitro2.172s (+5.2% 🔺)2.685s (+1.8%)0.513s346.60x
💻 LocalNext.js (Turbopack)2.347s (-4.2%)3.077s (-1.0%)0.731s307.13x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.478s (-87.4% 🟢)7.446s (-83.5% 🟢)1.968s131.00x
▲ VercelNitro5.543s (-87.3% 🟢)7.124s (-84.5% 🟢)1.581s131.01x
▲ VercelNext.js (Turbopack)5.628s (-10.2% 🟢)7.236s (-14.8% 🟢)1.608s131.03x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.656s (-7.2% 🟢)1.006s (~)0.350s1201.00x
🐘 PostgresExpress0.748s (+19.6% 🔺)1.164s (+10.3% 🔺)0.416s1041.14x
🐘 PostgresNext.js (Turbopack)0.972s (-0.8%)1.644s (+2.2%)0.672s741.48x
💻 LocalNitro9.731s (+11.7% 🔺)10.446s (+11.9% 🔺)0.715s1214.83x
💻 LocalNext.js (Turbopack)10.183s (-1.3%)10.861s (-3.9%)0.678s1215.52x
💻 LocalExpress10.295s (~)10.779s (-0.8%)0.484s1215.69x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express14.976s (-1.8%)17.377s (-0.7%)2.401s71.00x
▲ VercelNitro15.437s (-95.0% 🟢)17.367s (-94.5% 🟢)1.930s71.03x
▲ VercelNext.js (Turbopack)18.443s (-88.5% 🟢)20.158s (-87.6% 🟢)1.714s71.23x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.156s (-2.1%)1.998s (~)0.001s (-21.4% 🟢)2.009s (~)0.853s101.00x
💻 LocalExpress1.171s (~)2.005s (~)0.013s (~)2.021s (~)0.850s101.01x
💻 LocalNitro1.183s (+2.8%)2.005s (~)0.012s (+22.0% 🔺)2.019s (~)0.837s101.02x
🐘 PostgresExpress1.198s (~)1.990s (-0.5%)0.001s (-97.1% 🟢)2.013s (-1.5%)0.815s101.04x
💻 LocalNext.js (Turbopack)1.209s (+3.4%)2.003s (~)0.010s (+2.0%)2.018s (~)0.809s101.05x
🐘 PostgresNext.js (Turbopack)1.223s (-0.9%)2.002s (~)0.001s (-33.3% 🟢)2.011s (~)0.788s101.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.135s (-1.4%)3.025s (-11.5% 🟢)1.522s (+195.0% 🔺)4.959s (+11.0% 🔺)2.824s101.00x
▲ VercelExpress2.136s (~)3.435s (+0.8%)0.359s (-31.7% 🟢)4.283s (-3.7%)2.147s101.00x
▲ VercelNext.js (Turbopack)2.523s (+12.6% 🔺)3.277s (-7.7% 🟢)1.467s (-88.2% 🟢)5.161s (-68.7% 🟢)2.637s101.18x

🔍 Observability: Nitro | Express | Next.js (Turbopack)

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.590s (-4.4%)2.005s (~)0.005s (+32.5% 🔺)2.027s (~)0.438s301.00x
💻 LocalNitro1.597s (-8.4% 🟢)2.012s (~)0.012s (+28.8% 🔺)2.026s (-7.8% 🟢)0.430s301.00x
💻 LocalExpress1.619s (-1.1%)2.012s (~)0.014s (+22.7% 🔺)2.027s (~)0.409s301.02x
💻 LocalNext.js (Turbopack)1.732s (+5.6% 🔺)2.009s (~)0.013s (+25.4% 🔺)2.025s (~)0.293s301.09x
🐘 PostgresNext.js (Turbopack)1.738s (-1.4%)2.010s (~)0.005s (+30.6% 🔺)2.027s (~)0.288s301.09x
🐘 PostgresExpress1.888s (+8.7% 🔺)2.333s (+8.9% 🔺)0.008s (+155.3% 🔺)2.383s (+10.3% 🔺)0.495s261.19x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express5.848s (+1.6%)7.572s (+1.9%)0.251s (-29.0% 🟢)8.364s (~)2.516s81.00x
▲ VercelNitro5.935s (+3.3%)6.887s (-9.3% 🟢)0.494s (+46.4% 🔺)7.791s (-8.2% 🟢)1.856s81.01x
▲ VercelNext.js (Turbopack)5.956s (-6.5% 🟢)6.857s (-13.6% 🟢)0.270s (-25.3% 🟢)7.562s (-14.7% 🟢)1.606s81.02x

🔍 Observability: Express | Nitro | Next.js (Turbopack)

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro0.718s (-0.6%)1.051s (+1.9%)0.000s (-66.1% 🟢)1.061s (+1.3%)0.343s571.00x
🐘 PostgresNext.js (Turbopack)0.833s (~)1.092s (+1.9%)0.000s (-49.1% 🟢)1.099s (+1.8%)0.266s551.16x
🐘 PostgresExpress1.143s (+16.9% 🔺)1.559s (+9.2% 🔺)0.000s (-100.0% 🟢)1.599s (+10.4% 🔺)0.456s381.59x
💻 LocalNitro1.398s (+3.3%)2.013s (~)0.000s (-46.7% 🟢)2.015s (~)0.618s301.95x
💻 LocalExpress1.444s (-2.6%)2.014s (~)0.001s (+53.3% 🔺)2.017s (~)0.572s302.01x
💻 LocalNext.js (Turbopack)1.479s (+2.2%)2.012s (~)0.000s (+25.0% 🔺)2.015s (~)0.536s302.06x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)3.231s (-2.3%)4.317s (-11.8% 🟢)0.000s (NaN%)4.733s (-13.3% 🟢)1.502s131.00x
▲ VercelNitro3.250s (-9.7% 🟢)4.423s (-12.8% 🟢)0.000s (NaN%)4.848s (-13.9% 🟢)1.598s131.01x
▲ VercelExpress3.702s (-8.8% 🟢)5.202s (-2.6%)0.000s (-100.0% 🟢)5.733s (-7.1% 🟢)2.031s111.15x

🔍 Observability: Next.js (Turbopack) | Nitro | Express

fan-out fan-in 10 streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.427s (+1.2%)2.142s (+7.3% 🔺)0.000s (NaN%)2.154s (+7.0% 🔺)0.726s281.00x
🐘 PostgresNext.js (Turbopack)1.857s (+7.5% 🔺)2.444s (+8.1% 🔺)0.000s (+Infinity% 🔺)2.463s (+8.5% 🔺)0.606s251.30x
🐘 PostgresExpress2.699s (+67.1% 🔺)3.125s (+38.7% 🔺)0.000s (+Infinity% 🔺)3.188s (+39.9% 🔺)0.490s191.89x
💻 LocalNext.js (Turbopack)2.892s (-10.0% 🟢)3.553s (-8.8% 🟢)0.000s (+50.6% 🔺)3.557s (-8.8% 🟢)0.665s172.03x
💻 LocalNitro3.067s (-1.5%)3.777s (-3.0%)0.000s (+50.0% 🔺)3.780s (-3.1%)0.713s162.15x
💻 LocalExpress3.296s (-1.1%)3.966s (+3.3%)0.001s (+133.3% 🔺)3.969s (+3.2%)0.673s162.31x

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)4.828s (-6.6% 🟢)6.206s (-7.1% 🟢)0.000s (-77.5% 🟢)6.604s (-8.3% 🟢)1.776s101.00x
▲ VercelExpress4.940s (-21.8% 🟢)6.586s (-13.7% 🟢)0.000s (-70.4% 🟢)7.197s (-12.1% 🟢)2.257s91.02x
▲ VercelNitro5.015s (-28.8% 🟢)6.205s (-27.6% 🟢)0.000s (+Infinity% 🔺)6.656s (-26.8% 🟢)1.640s101.04x

🔍 Observability: Next.js (Turbopack) | Express | Nitro

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNitro10/21
🐘 PostgresNitro18/21
▲ VercelExpress10/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres14/21
Next.js (Turbopack)🐘 Postgres15/21
Nitro🐘 Postgres18/21
Column Definitions
  • Workflow Time: Runtime reported by workflow (completedAt - createdAt) - primary metric
  • TTFB: Time to First Byte - time from workflow start until first stream byte received (stream benchmarks only)
  • Slurp: Time from first byte to complete stream consumption (stream benchmarks only)
  • Wall Time: Total testbench time (trigger workflow + poll for result)
  • Overhead: Testbench overhead (Wall Time - Workflow Time)
  • Samples: Number of benchmark iterations run
  • vs Fastest: How much slower compared to the fastest configuration for this benchmark

Worlds:

  • 💻 Local: In-memory filesystem world (local development)
  • 🐘 Postgres: PostgreSQL database world (local development)
  • ▲ Vercel: Vercel production/preview deployment
  • 🌐 Turso: Community world (local development)
  • 🌐 MongoDB: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Jazz: Community world (local development)
  • 🌐 Redis: Community world (local development)
  • 🌐 Redis + BullMQ: Community world (local development)
  • 🌐 Cloudflare: Community world (local development)
  • 🌐 MySQL: Community world (local development)
  • 🌐 Azure: Community world (local development)
  • 🌐 NATS JetStream: Community world (local development)
  • 🌐 Upstash: Community world (local development)

📋 View full workflow run

@github-actions

github-actionsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

All tests passed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production126602191485
✅ 💻 Local Development167102191890
✅ 📦 Local Production167102191890
✅ 🐘 Local Postgres167102191890
✅ 🪟 Windows13500135
✅ 📋 Other7690176945
Total7183010528235

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro109026
✅ example109026
✅ express109026
✅ fastify109026
✅ hono109026
✅ nextjs-turbopack13302
✅ nextjs-webpack13302
✅ nitro109026
✅ nuxt109026
✅ sveltekit12807
✅ vite109026
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable110025
✅ express-stable110025
✅ fastify-stable110025
✅ hono-stable110025
✅ nextjs-turbopack-canary116019
✅ nextjs-turbopack-stable-lazy-discovery-disabled13500
✅ nextjs-turbopack-stable-lazy-discovery-enabled13500
✅ nextjs-webpack-canary116019
✅ nextjs-webpack-stable-lazy-discovery-disabled13500
✅ nextjs-webpack-stable-lazy-discovery-enabled13500
✅ nitro-stable110025
✅ nuxt-stable110025
✅ sveltekit-stable12906
✅ vite-stable110025
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack13500
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable110025
✅ e2e-local-dev-tanstack-start-110025
✅ e2e-local-postgres-nest-stable110025
✅ e2e-local-postgres-tanstack-start-110025
✅ e2e-local-prod-nest-stable110025
✅ e2e-local-prod-tanstack-start-110025
✅ e2e-vercel-prod-tanstack-start109026

📋 View full workflow run

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

packages/builders/src/constants.ts imports getQueueTopicPrefix from @workflow/world, but @workflow/world is not declared in packages/builders/package.json dependencies, causing the build to fail with TS2307.

Fix on Vercel

@willsather
willsatherforce-pushed the willsather/add-queue-prefix-namespace branch from 187c205 to 805bea2CompareJune 9, 2026 03:37

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

Indexing the fixed-shape Queues object with a QueuePrefix (now widened to string) triggers TS7053, breaking the @workflow/world-postgres build.

Fix on Vercel

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

setupListeners() references a deleted Queues constant, causing tsc to fail with TS2552 and breaking the @workflow/world-postgres build.

Fix on Vercel

Comment threadpackages/core/src/runtime/helpers.ts Outdated

@vercelvercelBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Additional Suggestion:

With WORKFLOW_QUEUE_NAMESPACE set, parseQueueName/getQueueRoute/createTaskHandler in world-postgres still match only the non-namespaced default prefixes, so namespaced queue names produced by the core producer throw Invalid queue name (enqueue fails) and lose workflow-run serialization.

Fix on Vercel

ijjk added 2 commits June 10, 2026 17:27
* Fix namespaced queue routing reliability
* Inline queue namespace in generated routes
* Avoid loading Vercel functions during runtime import

@TooTallNateTooTallNate left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Approve — solid contract design, thorough iteration; main ask is documentation

I built all five packages from this branch and ran the suites locally: 50 world tests, 6 builders constants tests, 8 world-local queue tests, 8 world-postgres queue tests, and the full core unit suite (1110 tests) — all green.

What's good

  • The naming contract is well-designed. Single-label namespace ([a-z][a-z0-9]* — no underscores) makes parseQueueName deterministic: I worked through the adversarial cases (__wkf_workflow_foo vs a hypothetical wkf namespace, multi-underscore labels, ids containing wkf_workflow_) and the regex backtracking always lands on a single unambiguous parse. The prefix/kind/id helpers centralize what was previously stringly-typed startsWith logic scattered across three packages.
  • The review iteration addressed the real correctness gaps. The original producer/consumer mismatch (entrypoint consuming a namespaced topic while start()/requeue paths enqueued un-namespaced) and the world-postgres Queues map throwing on namespaced prefixes were both caught and fixed; the follow-up routing-reliability commit routes every producer, consumer, and trigger site through resolveQueueNamespace, and bakes the namespace into generated routes at build time so the flow route doesn't depend on the runtime env.
  • runtime-import.test.ts is a good regression pin — mocking @vercel/functions to throw on load and asserting the runtime module still imports proves the lazy-loading actually holds, rather than depending on bundler luck.
  • Contract-level test coverage is comprehensive: prefix construction, namespace validation (digit-start/uppercase/empty/special chars rejected), schema acceptance/rejection, kind extraction, name parsing, and the world-local namespaced direct-handler routing test.

Main ask: documentation (should-fix, can be a fast-follow)

This PR introduces a user-facing env var (WORKFLOW_QUEUE_NAMESPACE) with a non-obvious operational requirement and ships zero docs. The critical thing to document is the build-time/runtime consistency requirement: the flow-route consumer gets the namespace baked at build, but producers (start(), resumeHook(), step-handler requeues) resolve it from the runtime env. If the env var is set in one phase but not the other (build-only env vars in some CI setups, or added to a running deployment without a rebuild), messages get enqueued to a topic no trigger listens on — silently. A short docs section ("set it as a regular project env var so build and runtime agree; changing it requires a redeploy; in-flight messages on the old topic are stranded") would save someone a very confusing afternoon. The migration story for an existing deployment that adopts a namespace (in-flight un-namespaced messages) deserves a sentence too.

Smaller notes (non-blocking)

  1. world-postgres namespace isolation is partial.getJobQueueName collapses every namespace into the same graphile job names (workflow_flows/workflow_steps). One app + one namespace works correctly (the task handler reconstructs queue names from its own configured prefix), but two namespaces sharing a database and jobPrefix — the closest analog of the stated multi-framework use case — would consume each other's jobs and reconstruct queue names under the wrong prefix. Either include the namespace in the job name (workflow_{ns}_flows) or document that postgres isolation requires distinct jobPrefix/databases.
  2. Module-load-time env resolution in two places: WORKFLOW_QUEUE_TRIGGER = createWorkflowQueueTrigger() and const stepHandler = createStepHandler(). Both bake process.env.WORKFLOW_QUEUE_NAMESPACE at import time. This works for the current build/runtime flows, but the trigger constant's docstring ("Default queue trigger (no namespace). Backward compatible.") is inaccurate whenever the env var is set in the importing process — worth rewording to "namespace resolved from the environment at import time."
  3. The lazy waitUntil has a small unhandled-rejection window: void import('@vercel/functions').then(({ waitUntil }) => waitUntil(promise)) — if the platform's waitUntil throws (e.g. called after response finalization on the cold path where the dynamic import does real work), that rejection is unobserved. A .catch with a debug log would make the failure mode visible. The lazy-loading itself is clearly deliberate (and pinned by the new test), so this is just hardening.
  4. Duplicated namespace helpers in builders/src/constants.ts vs world/src/queue.ts — clearly deliberate (the @workflow/world dependency was removed from builders in the same commit), but the two regex patterns must now stay in sync by hand. A cross-referencing comment on both sides ("mirror of …, keep in sync") would cheapen future drift.
  5. createStepHandler(namespace?)'s parameter is currently never passed explicitly (only the module-level createStepHandler() exists), so the V1 split-route step handler is env-only while the V2 combined route gets the baked option. Fine — V1 is legacy — but if the param is meant for future use a one-line comment saying so would keep someone from "cleaning it up."

CI

Checks were re-running on the head commit when I reviewed (post-fix-up push); nothing failing, and the changeset correctly covers all five touched packages with minor. Approving — the docs ask is the one thing I'd really like to see land before (or immediately after) this merges.

@github-actionsgithub-actionsBot mentioned this pull request Jun 11, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Backport PR opened against stable: #2341. Merge conflicts were resolved by AI — please review carefully. (backport job run)

Sign up for freeto 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.

4 participants

@willsather@TooTallNate@ijjk@VaguelySerious