') + ')', '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('^' + ".*" + ', '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" + ', '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('^' + ".*" + ', '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: enforce max queue deliveries in handlers with graceful failure by pranaygp · Pull Request #1344 · vercel/workflow · GitHub
Skip to content

feat: enforce max queue deliveries in handlers with graceful failure - #1344

Merged
pranaygp merged 3 commits into
mainfrom
pgp/handler-max-deliveries
Mar 23, 2026
Merged

feat: enforce max queue deliveries in handlers with graceful failure#1344
pranaygp merged 3 commits into
mainfrom
pgp/handler-max-deliveries

Conversation

@pranaygp

@pranaygppranaygp commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

Summary

Replaces VQS maxDeliveries: 64 cap with handler-level enforcement. Handlers now gracefully fail runs/steps after excessive queue redeliveries, preventing "phantom stuck" runs.

Stacked on #1342#1340

Problem

When infrastructure is down (OOMs, network outages), VQS retries messages up to maxDeliveries: 64 times at 5s intervals. After exhausting retries, VQS drops the message — the run stays in running status forever with no error, no failure event.

Solution

  1. Remove maxDeliveries from VQS config — allow infinite retries at queue level
  2. Keep retryAfterSeconds: 5 — VQS owns retry timing (works even after SIGKILL/OOM)
  3. Handlers check metadata.attempt — when > MAX_QUEUE_DELIVERIES (64), fail gracefully with MAX_DELIVERIES_EXCEEDED error code
  4. If even failure event creation fails — log detailed error and consume the message (no point retrying further)

Queue error log examples (before → after)

Before (dumped full body, no run context):

[local world] Failed to queue message {
queueName: '__wkf_step_...',
text: '"WorkflowAPIError: Injected 5xx"',
status: 500,
headers: { ... },
body: '{"workflowName":"...","workflowRunId":"wrun_01KKF...",
"stepId":"step_01KKF...","traceCarrier":{...}}'
}

After (structured, includes run/step IDs, separates HTTP status from handler error):

[world-local] Queue message failed (attempt 3, HTTP 500) {
queueName: '__wkf_step_...',
messageId: 'msg_01KKF...',
runId: 'wrun_01KKF...',
stepId: 'step_01KKF...',
handlerError: '"WorkflowAPIError: Injected 5xx"'
}

Local world queue

  • Removed hardcoded 3-retry cap → 1000 safety limit (handler enforces the real limit at 64)
  • Matches production VQS behavior

Test plan

  • 3 new unit tests for step handler max delivery enforcement
  • All core tests pass
  • All world-local tests pass
  • E2E: persistent failure → failed with MAX_DELIVERIES_EXCEEDED
  • E2E: transient failure → normal completion

🤖 Generated with Claude Code

@changeset-bot

changeset-botBot commented Mar 12, 2026

Copy link
Copy Markdown

🦋 Changeset detected

Latest commit: 85d6acd

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

This PR includes changesets to release 20 packages
NameType
@workflow/errorsPatch
@workflow/corePatch
@workflow/world-localPatch
@workflow/buildersPatch
@workflow/sveltekitPatch
@workflow/cliPatch
workflowPatch
@workflow/world-postgresPatch
@workflow/world-vercelPatch
@workflow/nextPatch
@workflow/nitroPatch
@workflow/vitestPatch
@workflow/web-sharedPatch
@workflow/world-testingPatch
@workflow/astroPatch
@workflow/nestPatch
@workflow/rollupPatch
@workflow/vitePatch
@workflow/aiPatch
@workflow/nuxtPatch

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 Mar 12, 2026

Copy link
Copy Markdown
Contributor

@github-actions

github-actionsBot commented Mar 12, 2026

Copy link
Copy Markdown
Contributor

🧪 E2E Test Results

Some tests failed

Summary

PassedFailedSkippedTotal
✅ ▲ Vercel Production780067847
✅ 💻 Local Development7820142924
✅ 📦 Local Production7820142924
✅ 🐘 Local Postgres7820142924
✅ 🪟 Windows720577
❌ 🌍 Community Worlds1185621195
✅ 📋 Other198033231
Total3514565524122

❌ Failed Tests

🌍 Community Worlds (56 failed)

mongodb (3 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KMEJAKA6S63EBPHYY3TRYD7J
  • webhookWorkflow | wrun_01KMEJAWAYV6YW3KS2J1H9T3JT
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KMEJH0AV83ZNZHV89MSXRAF4

redis (2 failed):

  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KMEJAKA6S63EBPHYY3TRYD7J
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KMEJH0AV83ZNZHV89MSXRAF4

turso (51 failed):

  • addTenWorkflow | wrun_01KMEJ9CMF773KWHWTD31A6WFR
  • addTenWorkflow | wrun_01KMEJ9CMF773KWHWTD31A6WFR
  • wellKnownAgentWorkflow (.well-known/agent) | wrun_01KMEJAF9W95HXXHYDV167797R
  • should work with react rendering in step
  • promiseAllWorkflow | wrun_01KMEJ9KEWNMPMNXP1BTNAGVJ8
  • promiseRaceWorkflow | wrun_01KMEJ9SPXP2DNS9ETWQQS0T9H
  • promiseAnyWorkflow | wrun_01KMEJ9W2X19VBMJ5051C6G11Y
  • importedStepOnlyWorkflow | wrun_01KMEJAYBG6N9CHNZ48ZBYA8GG
  • hookWorkflow | wrun_01KMEJA94NW7E5R3K1NXNFX3SQ
  • hookWorkflow is not resumable via public webhook endpoint | wrun_01KMEJAKA6S63EBPHYY3TRYD7J
  • webhookWorkflow | wrun_01KMEJAWAYV6YW3KS2J1H9T3JT
  • sleepingWorkflow | wrun_01KMEJB2XX9G8QK8EDQA9ZXP8K
  • parallelSleepWorkflow | wrun_01KMEJBF4VSNGW3Y1FPK2B1PYN
  • nullByteWorkflow | wrun_01KMEJBKBPX6M7XK6QY6Z0F12B
  • workflowAndStepMetadataWorkflow | wrun_01KMEJBNAR4X0GJ1J45A9RFGM0
  • fetchWorkflow | wrun_01KMEJDG6N05WP7JFEDY29QVZ1
  • promiseRaceStressTestWorkflow | wrun_01KMEJDK9K5V2KSKB3HT08GNE7
  • error handling error propagation workflow errors nested function calls preserve message and stack trace
  • error handling error propagation workflow errors cross-file imports preserve message and stack trace
  • error handling error propagation step errors basic step error preserves message and stack trace
  • error handling error propagation step errors cross-file step error preserves message and function names in stack
  • error handling retry behavior regular Error retries until success
  • error handling retry behavior FatalError fails immediately without retries
  • error handling retry behavior RetryableError respects custom retryAfter delay
  • error handling retry behavior maxRetries=0 disables retries
  • error handling catchability FatalError can be caught and detected with FatalError.is()
  • hookCleanupTestWorkflow - hook token reuse after workflow completion | wrun_01KMEJGCWVWDTQ4J5Q11KTQ99Q
  • concurrent hook token conflict - two workflows cannot use the same hook token simultaneously | wrun_01KMEJH0AV83ZNZHV89MSXRAF4
  • hookDisposeTestWorkflow - hook token reuse after explicit disposal while workflow still running | wrun_01KMEJHKENZ3QZ2ZTH7HWAM3FD
  • stepFunctionPassingWorkflow - step function references can be passed as arguments (without closure vars) | wrun_01KMEJJ5EJBBVR1WE9Q3D4CGAT
  • stepFunctionWithClosureWorkflow - step function with closure variables passed as argument | wrun_01KMEJJD2VKCXMHXGA3DSTEXBZ
  • closureVariableWorkflow - nested step functions with closure variables | wrun_01KMEJJHTCX1S38X2TX288T4GY
  • spawnWorkflowFromStepWorkflow - spawning a child workflow using start() inside a step | wrun_01KMEJJKQX2GP1S0108E5NPDEZ
  • health check (queue-based) - workflow and step endpoints respond to health check messages
  • pathsAliasWorkflow - TypeScript path aliases resolve correctly | wrun_01KMEJK18WMPY5JCSJC9WMWSXW
  • Calculator.calculate - static workflow method using static step methods from another class | wrun_01KMEJK6474HDQ2TVFBND30SX9
  • AllInOneService.processNumber - static workflow method using sibling static step methods | wrun_01KMEJKBZX5TSYZK7HJRN0F01A
  • ChainableService.processWithThis - static step methods using this to reference the class | wrun_01KMEJKHXBJ72P63NSKEYFCCN6
  • thisSerializationWorkflow - step function invoked with .call() and .apply() | wrun_01KMEJKQQ6N91CM8Z8DZWFKTMZ
  • customSerializationWorkflow - custom class serialization with WORKFLOW_SERIALIZE/WORKFLOW_DESERIALIZE | wrun_01KMEJKXV5GMH3BD57WNCSHSN6
  • instanceMethodStepWorkflow - instance methods with "use step" directive | wrun_01KMEJM50567XG2MQ9X33FDCJ8
  • crossContextSerdeWorkflow - classes defined in step code are deserializable in workflow context | wrun_01KMEJMET97RPFD5MCVKFNQ3NM
  • stepFunctionAsStartArgWorkflow - step function reference passed as start() argument | wrun_01KMEJMPX44H3TFBSH0EYTJ7JR
  • cancelRun - cancelling a running workflow | wrun_01KMEJMXRXDC4XFPHZN2VHW7HH
  • cancelRun via CLI - cancelling a running workflow | wrun_01KMEJN6BH236N09P04FGN477N
  • pages router addTenWorkflow via pages router
  • pages router promiseAllWorkflow via pages router
  • pages router sleepingWorkflow via pages router
  • hookWithSleepWorkflow - hook payloads delivered correctly with concurrent sleep | wrun_01KMEJNHCBP48GM0JFSFKP1221
  • sleepInLoopWorkflow - sleep inside loop with steps actually delays each iteration | wrun_01KMEJP6TC7MC7XA9153KHCEM8
  • sleepWithSequentialStepsWorkflow - sequential steps work with concurrent sleep (control) | wrun_01KMEJPHJH0V2PP4DVG23DN82S

Details by Category

✅ ▲ Vercel Production
AppPassedFailedSkipped
✅ astro7007
✅ example7007
✅ express7007
✅ fastify7007
✅ hono7007
✅ nextjs-turbopack7502
✅ nextjs-webpack7502
✅ nitro7007
✅ nuxt7007
✅ sveltekit7007
✅ vite7007
✅ 💻 Local Development
AppPassedFailedSkipped
✅ astro-stable66011
✅ express-stable66011
✅ fastify-stable66011
✅ hono-stable66011
✅ nextjs-turbopack-canary55022
✅ nextjs-turbopack-stable7205
✅ nextjs-webpack-canary55022
✅ nextjs-webpack-stable7205
✅ nitro-stable66011
✅ nuxt-stable66011
✅ sveltekit-stable66011
✅ vite-stable66011
✅ 📦 Local Production
AppPassedFailedSkipped
✅ astro-stable66011
✅ express-stable66011
✅ fastify-stable66011
✅ hono-stable66011
✅ nextjs-turbopack-canary55022
✅ nextjs-turbopack-stable7205
✅ nextjs-webpack-canary55022
✅ nextjs-webpack-stable7205
✅ nitro-stable66011
✅ nuxt-stable66011
✅ sveltekit-stable66011
✅ vite-stable66011
✅ 🐘 Local Postgres
AppPassedFailedSkipped
✅ astro-stable66011
✅ express-stable66011
✅ fastify-stable66011
✅ hono-stable66011
✅ nextjs-turbopack-canary55022
✅ nextjs-turbopack-stable7205
✅ nextjs-webpack-canary55022
✅ nextjs-webpack-stable7205
✅ nitro-stable66011
✅ nuxt-stable66011
✅ sveltekit-stable66011
✅ vite-stable66011
✅ 🪟 Windows
AppPassedFailedSkipped
✅ nextjs-turbopack7205
❌ 🌍 Community Worlds
AppPassedFailedSkipped
✅ mongodb-dev302
❌ mongodb5235
✅ redis-dev302
❌ redis5325
✅ turso-dev302
❌ turso4515
✅ 📋 Other
AppPassedFailedSkipped
✅ e2e-local-dev-nest-stable66011
✅ e2e-local-postgres-nest-stable66011
✅ e2e-local-prod-nest-stable66011

📋 View full workflow run

@pranaygpGraphite App

pranaygp commented Mar 12, 2026

Copy link
Copy Markdown
ContributorAuthor

@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:

SvelteKit package has hardcoded maxDeliveries: 64 on queue triggers, causing VQS to silently drop messages before the handler can gracefully fail runs/steps.

Fix on Vercel

@pranaygp
pranaygpforce-pushed the pgp/handler-max-deliveries branch from c2ed3e7 to 085a05aCompareMarch 17, 2026 22:37

CopilotAI 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.

Pull request overview

This PR moves enforcement of the queue delivery cap from the Vercel Queue trigger configuration into the workflow/step runtime handlers, and updates local-queue behavior/logging to support the new approach.

Changes:

  • Add a shared MAX_QUEUE_DELIVERIES constant and enforce it in both workflow and step handlers with graceful failure (run_failed / step_failed + requeue workflow for step).
  • Remove maxDeliveries from queue trigger definitions in @workflow/builders.
  • Improve world-local queue logging with runId/stepId context and add a local retry safety limit.

Reviewed changes

Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.

Show a summary per file
FileDescription
packages/world-local/src/queue.tsAdds structured identifiers to logs and replaces the old retry counter with a fixed safety-loop cap.
packages/errors/src/error-codes.tsIntroduces MAX_DELIVERIES_EXCEEDED run error code.
packages/core/src/runtime/step-handler.tsEnforces max deliveries for steps and adjusts event creation/logging behavior.
packages/core/src/runtime/step-handler.test.tsAdds test coverage for step max-deliveries behavior.
packages/core/src/runtime/constants.tsDefines MAX_QUEUE_DELIVERIES.
packages/core/src/runtime.tsEnforces max deliveries for workflow handler and records run_failed with a specific error code.
packages/builders/src/constants.tsRemoves VQS maxDeliveries from trigger constants.
.changeset/handler-max-deliveries.mdChangeset describing the behavior shift from VQS config to handler enforcement.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

Comment on lines +172 to +176
const startResult = await world.events.create(workflowRunId, {
eventType: 'step_started',
specVersion: SPEC_VERSION_CURRENT,
correlationId: stepId,
});
Comment threadpackages/core/src/runtime.ts Outdated
Comment on lines +120 to +131
try {
const world = getWorld();
await world.events.create(runId, {
eventType: 'run_failed',
specVersion: SPEC_VERSION_CURRENT,
eventData: {
error: {
message: `Workflow exceeded maximum queue deliveries (${metadata.attempt}/${MAX_QUEUE_DELIVERIES})`,
},
errorCode: RUN_ERROR_CODES.MAX_DELIVERIES_EXCEEDED,
},
});
Comment on lines +117 to +121
// Safety limit to prevent infinite loops in the local queue.
// The actual max delivery enforcement happens in the workflow/step handlers.
const MAX_LOCAL_SAFETY_LIMIT = 1000;
try {
let defaultRetriesLeft = 3;
for (let attempt = 0; defaultRetriesLeft > 0; attempt++) {
defaultRetriesLeft--;

for (let attempt = 0; attempt < MAX_LOCAL_SAFETY_LIMIT; attempt++) {

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

yeah there's no reason this has to be 1000. just needs to be higher than the max queue attempts. let's go with 256

Comment on lines +529 to +568
it('should post step_failed and re-queue workflow when delivery count exceeds max', async () => {
const result = await capturedHandler(
createMessage(),
{ ...createMetadata('myStep'), attempt: 65 }
);

expect(result).toBeUndefined();
expect(mockEventsCreate).toHaveBeenCalledWith(
'wrun_test123',
expect.objectContaining({
eventType: 'step_failed',
correlationId: 'step_abc',
})
);
expect(mockQueueMessage).toHaveBeenCalled();
expect(mockRuntimeLogger.error).toHaveBeenCalledWith(
expect.stringContaining('exceeded max deliveries'),
expect.objectContaining({ workflowRunId: 'wrun_test123' })
);
});

it('should consume message silently when step_failed fails with EntityConflictError', async () => {
mockEventsCreate.mockRejectedValue(
new EntityConflictError('Step already completed')
);

const result = await capturedHandler(
createMessage(),
{ ...createMetadata('myStep'), attempt: 65 }
);

expect(result).toBeUndefined();
expect(mockStepFn).not.toHaveBeenCalled();
});

it('should not trigger max deliveries check when under limit', async () => {
const result = await capturedHandler(
createMessage(),
{ ...createMetadata('myStep'), attempt: 64 }
);
@github-actions

github-actionsBot commented Mar 20, 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🥇 Next.js (Turbopack)0.043s1.006s0.963s101.00x
💻 LocalNitro0.045s (+18.4% 🔺)1.005s (~)0.960s101.06x
🌐 RedisNext.js (Turbopack)0.057s1.006s0.950s101.32x
🐘 PostgresNext.js (Turbopack)0.060s1.011s0.951s101.40x
🐘 PostgresExpress0.062s (+11.2% 🔺)1.011s (~)0.949s101.45x
🐘 PostgresNitro0.065s (-6.9% 🟢)1.011s (~)0.946s101.52x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)0.490s (-25.8% 🟢)2.611s (+9.2% 🔺)2.121s101.00x
▲ VercelNitro0.515s (-11.8% 🟢)3.160s (+48.4% 🔺)2.645s101.05x
▲ VercelExpress0.578s (-16.4% 🟢)2.609s (-11.3% 🟢)2.032s101.18x

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

workflow with 1 step

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)1.103s2.006s0.903s101.00x
💻 LocalNitro1.126s (+3.0%)2.006s (~)0.880s101.02x
🌐 RedisNext.js (Turbopack)1.129s2.006s0.878s101.02x
🐘 PostgresNext.js (Turbopack)1.141s2.009s0.868s101.03x
🐘 PostgresNitro1.141s (-1.8%)2.013s (~)0.872s101.03x
🐘 PostgresExpress1.141s (-1.0%)2.010s (~)0.869s101.04x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.170s (+4.0%)4.093s (+21.5% 🔺)1.923s101.00x
▲ VercelExpress2.184s (+3.6%)4.053s (+8.6% 🔺)1.868s101.01x
▲ VercelNext.js (Turbopack)2.238s (+8.5% 🔺)3.761s (+2.6%)1.523s101.03x

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

workflow with 10 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)10.652s11.024s0.373s31.00x
🌐 RedisNext.js (Turbopack)10.777s11.023s0.246s31.01x
🐘 PostgresNext.js (Turbopack)10.898s11.024s0.126s31.02x
🐘 PostgresExpress10.923s (~)11.026s (~)0.104s31.03x
💻 LocalNitro10.928s (+2.9%)11.024s (~)0.097s31.03x
🐘 PostgresNitro10.955s (-1.7%)11.024s (-8.5% 🟢)0.069s31.03x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro17.667s (-1.3%)19.080s (-2.8%)1.413s21.00x
▲ VercelExpress17.831s (-8.0% 🟢)19.299s (-9.0% 🟢)1.468s21.01x
▲ VercelNext.js (Turbopack)18.829s (+9.4% 🔺)20.417s (+7.2% 🔺)1.588s21.07x

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

workflow with 25 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)14.173s15.030s0.856s41.00x
🌐 RedisNext.js (Turbopack)14.331s15.029s0.698s41.01x
🐘 PostgresNext.js (Turbopack)14.461s15.028s0.567s41.02x
🐘 PostgresExpress14.546s (-1.8%)15.025s (~)0.479s41.03x
🐘 PostgresNitro14.566s (-2.2%)15.026s (~)0.460s41.03x
💻 LocalNitro15.012s (+5.6% 🔺)15.280s (+1.7%)0.267s41.06x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro32.630s (~)34.645s (+1.7%)2.015s21.00x
▲ VercelExpress33.584s (~)35.097s (~)1.513s21.03x
▲ VercelNext.js (Turbopack)33.813s (+0.5%)34.935s (~)1.121s21.04x

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

workflow with 50 sequential steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)13.417s14.027s0.610s71.00x
🐘 PostgresNext.js (Turbopack)13.658s14.022s0.364s71.02x
🐘 PostgresNitro14.008s (-5.7% 🟢)14.451s (-5.0%)0.444s71.04x
🐘 PostgresExpress14.393s (~)15.192s (+1.0%)0.799s61.07x
💻 LocalNext.js (Turbopack)14.867s15.027s0.160s61.11x
💻 LocalNitro16.750s (+12.5% 🔺)17.031s (+13.3% 🔺)0.281s61.25x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro59.616s (-3.4%)61.536s (-2.1%)1.920s21.00x
▲ VercelNext.js (Turbopack)59.831s (-2.3%)61.661s (-1.4%)1.830s21.00x
▲ VercelExpress63.489s (+4.7%)65.238s (+3.7%)1.748s21.06x

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

Promise.all with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro1.245s (-4.3%)2.010s (~)0.766s151.00x
🐘 PostgresNext.js (Turbopack)1.245s2.010s0.765s151.00x
🐘 PostgresExpress1.293s (+0.9%)2.011s (~)0.718s151.04x
🌐 RedisNext.js (Turbopack)1.329s2.006s0.677s151.07x
💻 LocalNitro1.556s (+6.7% 🔺)2.006s (~)0.450s151.25x
💻 LocalNext.js (Turbopack)1.561s2.073s0.511s151.25x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.401s (-4.9%)4.693s (+22.2% 🔺)2.292s71.00x
▲ VercelExpress2.985s (+5.0% 🔺)4.633s (+4.7%)1.648s71.24x
▲ VercelNext.js (Turbopack)3.065s (+18.3% 🔺)4.765s (+16.2% 🔺)1.700s71.28x

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

Promise.all with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.339s (-4.2%)3.010s (~)0.671s101.00x
🐘 PostgresNitro2.341s (-6.1% 🟢)3.010s (~)0.670s101.00x
🐘 PostgresNext.js (Turbopack)2.428s3.012s0.585s101.04x
🌐 RedisNext.js (Turbopack)2.569s3.008s0.439s101.10x
💻 LocalNext.js (Turbopack)2.730s3.008s0.278s101.17x
💻 LocalNitro2.965s (+17.3% 🔺)3.453s (+14.8% 🔺)0.488s91.27x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.649s (-18.9% 🟢)4.187s (-19.0% 🟢)1.538s81.00x
▲ VercelNext.js (Turbopack)3.241s (+10.4% 🔺)4.723s (+10.1% 🔺)1.482s71.22x
▲ VercelNitro3.622s (+39.0% 🔺)5.235s (+42.7% 🔺)1.613s61.37x

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

Promise.all with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.472s (-5.3% 🟢)4.013s (~)0.541s81.00x
🐘 PostgresExpress3.491s (-2.2%)4.012s (~)0.522s81.01x
🐘 PostgresNext.js (Turbopack)3.651s4.013s0.362s81.05x
🌐 RedisNext.js (Turbopack)4.125s4.725s0.600s71.19x
💻 LocalNext.js (Turbopack)7.038s7.764s0.726s42.03x
💻 LocalNitro8.159s (+22.1% 🔺)9.021s (+28.6% 🔺)0.861s42.35x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express3.190s (+1.2%)4.790s (-1.7%)1.601s71.00x
▲ VercelNitro3.801s (+12.2% 🔺)5.785s (+20.7% 🔺)1.984s61.19x
▲ VercelNext.js (Turbopack)4.440s (+6.6% 🔺)6.146s (+10.7% 🔺)1.706s61.39x

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

Promise.race with 10 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)1.237s2.010s0.772s151.00x
🐘 PostgresExpress1.261s (-2.3%)2.010s (~)0.749s151.02x
🐘 PostgresNitro1.265s (-2.0%)2.011s (~)0.746s151.02x
🌐 RedisNext.js (Turbopack)1.299s2.006s0.707s151.05x
💻 LocalNext.js (Turbopack)1.493s2.005s0.513s151.21x
💻 LocalNitro1.566s (+7.0% 🔺)2.073s (+3.4%)0.507s151.27x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.146s (-6.9% 🟢)4.254s (+13.2% 🔺)2.107s81.00x
▲ VercelExpress2.627s (+16.0% 🔺)4.465s (+14.3% 🔺)1.839s71.22x
▲ VercelNext.js (Turbopack)3.812s (+47.4% 🔺)5.535s (+46.4% 🔺)1.723s61.78x

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

Promise.race with 25 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Express2.325s (-5.2% 🟢)3.010s (~)0.685s101.00x
🐘 PostgresNitro2.374s (-4.8%)3.012s (~)0.637s101.02x
🐘 PostgresNext.js (Turbopack)2.392s3.011s0.619s101.03x
🌐 RedisNext.js (Turbopack)2.548s3.007s0.460s101.10x
💻 LocalNext.js (Turbopack)2.648s3.007s0.359s101.14x
💻 LocalNitro3.077s (+7.3% 🔺)3.759s (+20.9% 🔺)0.682s81.32x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro2.885s (~)4.398s (+2.2%)1.513s71.00x
▲ VercelExpress2.923s (+22.3% 🔺)4.612s (+16.8% 🔺)1.689s71.01x
▲ VercelNext.js (Turbopack)2.951s (-1.5%)4.556s (+6.2% 🔺)1.605s71.02x

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

Promise.race with 50 concurrent steps

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Nitro3.475s (-4.7%)4.014s (~)0.539s81.00x
🐘 PostgresExpress3.481s (-3.2%)4.018s (~)0.537s81.00x
🐘 PostgresNext.js (Turbopack)3.635s4.014s0.379s81.05x
🌐 RedisNext.js (Turbopack)4.183s4.868s0.684s71.20x
💻 LocalNext.js (Turbopack)7.324s8.016s0.692s42.11x
💻 LocalNitro9.073s (+22.7% 🔺)9.523s (+18.8% 🔺)0.450s42.61x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.257s (+5.0% 🔺)5.102s (+8.3% 🔺)1.845s71.00x
▲ VercelExpress3.389s (+8.4% 🔺)5.053s (+7.9% 🔺)1.664s61.04x
▲ VercelNext.js (Turbopack)4.038s (+12.6% 🔺)5.487s (+11.4% 🔺)1.450s61.24x

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

workflow with 10 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.678s1.004s0.326s601.00x
🌐 RedisNext.js (Turbopack)0.709s1.005s0.295s601.05x
🐘 PostgresNext.js (Turbopack)0.775s1.024s0.249s591.14x
🐘 PostgresNitro0.824s (-14.9% 🟢)1.008s (-18.4% 🟢)0.183s601.22x
🐘 PostgresExpress0.836s (-8.6% 🟢)1.025s (-5.1% 🟢)0.188s591.23x
💻 LocalNitro0.971s (+44.1% 🔺)1.057s (+5.3% 🔺)0.086s571.43x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)10.214s (+2.7%)12.110s (-2.0%)1.896s51.00x
▲ VercelExpress10.898s (+1.4%)13.051s (+5.9% 🔺)2.153s51.07x
▲ VercelNitro11.299s (+12.2% 🔺)13.400s (+17.3% 🔺)2.101s51.11x

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

workflow with 25 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.674s2.006s0.332s451.00x
🐘 PostgresNext.js (Turbopack)1.889s2.077s0.189s441.13x
🐘 PostgresNitro1.947s (-15.8% 🟢)2.205s (-26.8% 🟢)0.257s411.16x
🐘 PostgresExpress1.992s (-10.5% 🟢)2.378s (-21.1% 🟢)0.386s381.19x
💻 LocalNext.js (Turbopack)2.188s3.007s0.819s301.31x
💻 LocalNitro2.977s (+35.7% 🔺)3.257s (+8.3% 🔺)0.281s281.78x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Next.js (Turbopack)33.772s (+4.1%)35.926s (+6.8% 🔺)2.153s31.00x
▲ VercelNitro36.133s (+20.4% 🔺)37.778s (+18.5% 🔺)1.645s31.07x
▲ VercelExpress36.364s (+20.5% 🔺)38.136s (+19.2% 🔺)1.772s31.08x

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

workflow with 50 sequential data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)3.445s4.076s0.631s301.00x
🐘 PostgresNext.js (Turbopack)3.778s4.011s0.234s301.10x
🐘 PostgresExpress4.044s (-10.0% 🟢)4.631s (-7.7% 🟢)0.586s261.17x
🐘 PostgresNitro4.086s (-14.7% 🟢)4.705s (-7.7% 🟢)0.618s261.19x
💻 LocalNext.js (Turbopack)7.194s7.764s0.570s162.09x
💻 LocalNitro9.162s (+26.5% 🔺)9.864s (+23.1% 🔺)0.701s132.66x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro90.243s (+4.7%)91.975s (+5.4% 🔺)1.732s21.00x
▲ VercelExpress92.162s (+2.5%)93.461s (+1.9%)1.298s21.02x
▲ VercelNext.js (Turbopack)96.144s (+11.6% 🔺)97.815s (+10.5% 🔺)1.670s21.07x

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

workflow with 10 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.255s1.008s0.753s601.00x
🐘 PostgresExpress0.270s (-8.9% 🟢)1.008s (~)0.738s601.06x
🐘 PostgresNitro0.273s (-14.1% 🟢)1.008s (~)0.735s601.07x
🌐 RedisNext.js (Turbopack)0.394s1.004s0.611s601.54x
💻 LocalNext.js (Turbopack)0.558s1.004s0.447s602.19x
💻 LocalNitro0.584s (+4.0%)1.004s (~)0.421s602.29x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express1.786s (-9.1% 🟢)3.897s (+8.5% 🔺)2.112s161.00x
▲ VercelNitro1.894s (+12.7% 🔺)3.877s (+17.4% 🔺)1.983s161.06x
▲ VercelNext.js (Turbopack)2.243s (+18.6% 🔺)4.198s (+11.9% 🔺)1.955s151.26x

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

workflow with 25 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.482s1.008s0.525s901.00x
🐘 PostgresExpress0.499s (-8.8% 🟢)1.007s (~)0.508s901.03x
🐘 PostgresNitro0.503s (-13.7% 🟢)1.008s (~)0.505s901.04x
🌐 RedisNext.js (Turbopack)1.194s2.006s0.812s452.48x
💻 LocalNitro2.478s (+5.7% 🔺)3.008s (~)0.530s305.14x
💻 LocalNext.js (Turbopack)2.541s3.008s0.468s305.27x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro3.060s (+1.9%)5.025s (+13.0% 🔺)1.965s181.00x
▲ VercelExpress3.316s (+18.3% 🔺)5.177s (+10.5% 🔺)1.861s181.08x
▲ VercelNext.js (Turbopack)4.446s (+37.1% 🔺)6.196s (+31.2% 🔺)1.750s151.45x

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

workflow with 50 concurrent data payload steps (10KB)

💻 Local Development

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
🐘 Postgres🥇 Next.js (Turbopack)0.763s1.008s0.245s1201.00x
🐘 PostgresExpress0.781s (-15.0% 🟢)1.008s (-18.7% 🟢)0.227s1201.02x
🐘 PostgresNitro0.794s (-18.0% 🟢)1.009s (-27.9% 🟢)0.215s1191.04x
🌐 RedisNext.js (Turbopack)2.764s3.033s0.269s403.62x
💻 LocalNext.js (Turbopack)9.718s10.271s0.553s1212.73x
💻 LocalNitro11.258s (+13.4% 🔺)11.848s (+14.4% 🔺)0.589s1114.75x
💻 LocalExpress⚠️missing----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express7.169s (+8.0% 🔺)9.096s (+3.9%)1.928s141.00x
▲ VercelNext.js (Turbopack)7.859s (-75.5% 🟢)9.783s (-71.0% 🟢)1.924s131.10x
▲ VercelNitro8.346s (+15.4% 🔺)10.090s (+16.3% 🔺)1.744s121.16x

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

Stream Benchmarks(includes TTFB metrics)
workflow with stream

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
💻 Local🥇 Next.js (Turbopack)0.141s1.000s0.010s1.015s0.874s101.00x
🌐 RedisNext.js (Turbopack)0.175s1.000s0.002s1.008s0.833s101.24x
🐘 PostgresNext.js (Turbopack)0.194s1.001s0.001s1.013s0.818s101.37x
💻 LocalNitro0.202s (+45.4% 🔺)1.003s (~)0.012s (+22.7% 🔺)1.018s (~)0.816s101.43x
🐘 PostgresNitro0.207s (-13.8% 🟢)0.996s (~)0.001s (-27.8% 🟢)1.011s (~)0.804s101.46x
🐘 PostgresExpress0.225s (+1.1%)0.993s (~)0.001s (+7.7% 🔺)1.011s (~)0.786s101.59x
💻 LocalExpress⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro1.620s (+4.8%)2.946s (+12.7% 🔺)0.251s (-45.1% 🟢)3.994s (+11.1% 🔺)2.374s101.00x
▲ VercelExpress1.656s (-22.6% 🟢)2.916s (-12.9% 🟢)0.367s (+224.8% 🔺)3.908s (-6.4% 🟢)2.252s101.02x
▲ VercelNext.js (Turbopack)1.664s (+1.7%)2.778s (-4.8%)0.502s (+25.7% 🔺)3.891s (~)2.227s101.03x

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

stream pipeline with 5 transform steps (1MB)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.492s1.001s0.005s1.013s0.521s601.00x
💻 LocalNext.js (Turbopack)0.573s1.007s0.009s1.023s0.449s591.17x
🐘 PostgresExpress0.604s (-14.1% 🟢)1.005s (~)0.005s (-18.3% 🟢)1.025s (-0.8%)0.421s591.23x
🐘 PostgresNext.js (Turbopack)0.607s1.008s0.005s1.024s0.418s591.23x
🐘 PostgresNitro0.638s (-12.0% 🟢)1.020s (+1.5%)0.004s (-26.6% 🟢)1.042s (+1.1%)0.404s581.30x
💻 LocalNitro0.729s (+28.4% 🔺)1.009s (~)0.009s (-5.1% 🟢)1.022s (~)0.293s591.48x
💻 LocalExpress⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.497s (-15.8% 🟢)5.862s (-4.6%)0.363s (-42.3% 🟢)7.038s (-6.7% 🟢)2.541s91.00x
▲ VercelExpress4.532s (~)6.077s (+8.6% 🔺)0.196s (-17.2% 🟢)6.920s (+2.7%)2.388s91.01x
▲ VercelNext.js (Turbopack)4.867s (+6.6% 🔺)5.982s (+7.0% 🔺)0.389s (+72.9% 🔺)7.007s (+8.4% 🔺)2.140s91.08x

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

10 parallel streams (1MB each)

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)0.894s0.999s0.000s1.004s0.110s601.00x
🐘 PostgresNext.js (Turbopack)0.961s1.254s0.000s1.278s0.317s471.07x
🐘 PostgresNitro0.975s (-16.6% 🟢)1.196s (-40.1% 🟢)0.000s (-69.4% 🟢)1.243s (-38.6% 🟢)0.267s491.09x
🐘 PostgresExpress0.980s (-12.7% 🟢)1.328s (-25.4% 🟢)0.000s (-24.4% 🟢)1.343s (-25.8% 🟢)0.363s451.10x
💻 LocalNext.js (Turbopack)1.226s2.016s0.000s2.021s0.795s301.37x
💻 LocalNitro1.236s (+9.0% 🔺)2.021s (~)0.000s (~)2.024s (~)0.787s301.38x
💻 LocalExpress⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Express2.890s (-9.8% 🟢)4.245s (-1.5%)0.000s (-100.0% 🟢)5.053s (-1.7%)2.163s121.00x
▲ VercelNitro3.312s (+9.5% 🔺)4.315s (+9.9% 🔺)0.000s (-46.2% 🟢)5.039s (+13.9% 🔺)1.727s131.15x
▲ VercelNext.js (Turbopack)3.659s (+3.9%)4.873s (+4.7%)0.000s (+Infinity% 🔺)5.707s (+9.6% 🔺)2.048s111.27x

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

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

💻 Local Development

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
🌐 Redis🥇 Next.js (Turbopack)1.567s2.035s0.000s2.040s0.473s301.00x
🐘 PostgresExpress1.745s (-15.2% 🟢)2.098s (-15.3% 🟢)0.000s (+Infinity% 🔺)2.115s (-15.4% 🟢)0.370s291.11x
🐘 PostgresNitro1.750s (-22.7% 🟢)2.138s (-27.6% 🟢)0.000s (-62.5% 🟢)2.155s (-27.4% 🟢)0.405s281.12x
🐘 PostgresNext.js (Turbopack)1.863s2.144s0.000s2.153s0.290s281.19x
💻 LocalNitro3.515s (+1.6%)4.032s (~)0.001s (-15.4% 🟢)4.036s (~)0.521s152.24x
💻 LocalNext.js (Turbopack)3.696s4.228s0.001s4.234s0.538s152.36x
💻 LocalExpress⚠️missing-----

▲ Production (Vercel)

WorldFrameworkWorkflow TimeTTFBSlurpWall TimeOverheadSamplesvs Fastest
▲ Vercel🥇 Nitro4.053s (+17.1% 🔺)5.087s (+21.4% 🔺)0.000s (+Infinity% 🔺)5.740s (+20.9% 🔺)1.686s111.00x
▲ VercelExpress4.384s (+11.1% 🔺)5.628s (+12.9% 🔺)0.000s (NaN%)6.496s (+10.9% 🔺)2.113s101.08x
▲ VercelNext.js (Turbopack)5.113s (+14.2% 🔺)5.836s (+7.8% 🔺)0.000s (+10.0% 🔺)6.596s (+10.9% 🔺)1.483s101.26x

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

Summary

Fastest Framework by World

Winner determined by most benchmark wins

World🥇 Fastest FrameworkWins
💻 LocalNext.js (Turbopack)18/21
🐘 PostgresNext.js (Turbopack)14/21
▲ VercelNitro13/21
Fastest World by Framework

Winner determined by most benchmark wins

Framework🥇 Fastest WorldWins
Express🐘 Postgres19/21
Next.js (Turbopack)🐘 Postgres9/21
Nitro🐘 Postgres16/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)

📋 View full workflow run


// --- Max delivery check ---
// Enforce max delivery limit before any infrastructure calls.
// This prevents runaway steps from consuming infinite queue deliveries.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Suggested change
// This prevents runaway steps from consuming infinite queue deliveries.
// This prevents runaway steps from consuming infinite queue deliveries.
// At this point, we want to do the minimal amount of work (no fetching
// of the step details, etc. We simply attempt to mark the step as failed
// and enqueue the workflow once, and if either of those fails, the message
// is still consumed but with adequate logging that an error occurred.

Comment threadpackages/core/src/runtime.ts Outdated
Comment on lines +145 to +147
'Failed to post run_failed for max deliveries exceeded, consuming message anyway',
{
workflowRunId: runId,

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Like the step error message, this should also be more verbose and explain that a persistent outage is preventing us from failing the run normally etc. etc.

Comment threadpackages/core/src/runtime.ts Outdated
EntityConflictError.is(err) ||
RunExpiredError.is(err)
) {
// Run already finished, consume the message

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Suggested change
// Run already finished, consume the message
// Run already finished, consume the message silently

Comment threadpackages/core/src/runtime.ts Outdated
return;
}
runtimeLogger.error(
'Failed to post run_failed for max deliveries exceeded, consuming message anyway',

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Like the step error message, this should also be more verbose and explain that a persistent outage is preventing us from failing the run normally etc. etc.


// --- Max delivery check ---
// Enforce max delivery limit before any infrastructure calls.
// This prevents runaway workflows from consuming infinite queue deliveries.

Copy link
Copy Markdown
ContributorAuthor

Choose a reason for hiding this comment

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

Suggested change
// This prevents runaway workflows from consuming infinite queue deliveries.
// This prevents runaway workflows from consuming infinite queue deliveries.
// At this point, we want to do the minimal amount of work (no fetching
// of the workflow events, etc. We simply attempt to mark the run as failed
// and if that fails, the message is still consumed but with adequate logging
// that an error occurred preventing us from failing the run.

Comment threadpackages/world-local/src/queue.ts Outdated
);

// Small backoff to avoid tight retry loops on persistent failures
await setTimeout(Math.min(1000, 100 * (attempt + 1)));

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.

Let's make this 5s to mimic VQS behavior

@@ -0,0 +1 @@
export const MAX_QUEUE_DELIVERIES = 64;

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.

Should be 48 with a comment to VQS behavior

@VaguelySeriousVaguelySerious 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.

LGTM. Weirdly unit tested are failing with Serde stuff, seems unrelated

pranaygpand others added 3 commits March 23, 2026 16:58
Replace VQS maxDeliveries cap with handler-level enforcement. Handlers
now gracefully fail runs/steps after excessive queue redeliveries,
preventing "phantom stuck" runs.
- Add MAX_QUEUE_DELIVERIES constant (64) and enforce in both workflow
and step handlers with run_failed/step_failed events
- Remove maxDeliveries from VQS trigger configs (builders + sveltekit)
- Improve world-local queue: safety limit loop, structured logging
with runId/stepId, backoff delay on failures
- Add MAX_DELIVERIES_EXCEEDED error code
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
- Expand max-delivery comments explaining minimal-work approach
- Make workflow handler error message verbose (matching step handler)
- Fix comment: "consume the message silently"
- Reduce local queue safety limit from 1000 to 256
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
VQS uses linear 5s backoff for attempts 1-32, then exponential capped
at 2h. At 48 attempts total elapsed time is ~20h, safely under the
24h message visibility limit. Local world now uses 5s linear backoff
to approximate VQS timing.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ghostghost mentioned this pull request Mar 23, 2026
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.

3 participants

@pranaygp@VaguelySerious