Menu

Vercel Queues now supports 7-day message TTL - Vercel
📰
0

Vercel Queues now supports 7-day message TTL - Vercel

Vercel News·Casey Gowrie·4 days ago
#x19iTUJM
#vercel#message#send#delivery#delay#photo
Reading 0:00
15s threshold

Vercel Queues now supports a maximum message TTL and delivery delay of 7 days, up from 24 hours. The default message TTL of 24 hours and delivery delay of 0 seconds remain unchanged.

These expanded limits enable longer retention windows and support background work patterns for delayed tasks, scheduled workflows, and long-running jobs.

Send message example

import { send } from "@vercel/queue";

export async function POST(request: Request) {

await send("my-queue", {

userId: "user_123",

action: "send_followup"

}, {

delaySeconds: 5 * 24 * 60 * 60,

retentionSeconds: 7 * 24 * 60 * 60

});

return new Response("Task enqueued");

}

Explore the documentation.

Read More