Vercel Functions a 30 minuti: cosa decidere prima di spostare job AI lunghi nel serverless
Il 15 giugno 2026 Vercel ha annunciato Functions Node.js e Python fino a 30 minuti per team Pro ed Enterprise. Oltre 800 secondi la funzione è in beta e richiede Fluid Compute. Il cambiamento è utile per LLM lunghi, OCR, estrazione, media processing e automazioni limitate.
Cosa cambia
Il 15 giugno 2026 Vercel ha annunciato Functions Node.js e Python fino a 30 minuti per team Pro ed Enterprise. Oltre 800 secondi la funzione è in beta e richiede Fluid Compute. Il cambiamento è utile per LLM lunghi, OCR, estrazione, media processing e automazioni limitate.
La scelta resta architetturale: se l’utente aspetta, Function lunga e streaming possono bastare. Se il job deve riprendere dopo errori, salvare step o dormire a lungo, servono Workflow o code. Se servono file, browser o workspace di un agente, meglio Sandbox.
Decisione pratica
| Runtime | Best fit | Watch out |
|---|---|---|
| Function | User waits, streaming matters, bounded input | Needs explicit maxDuration, cancellation, logs |
| Workflow / Queue | Retry, checkpoint, durable steps | Requires idempotency and state design |
| Sandbox | Browser, filesystem, tests, agent workspace | Needs permission and cleanup rules |
• Verify plan, runtime, beta availability and Fluid Compute settings.
• Keep provider and database timeouts below the function maximum.
• Add progress logs, correlation ids, cancellation and cost alerts.
• Use idempotency keys before moving mutations into longer requests.
Rischi
Prima del deploy verificate piano, runtime, beta, maxDuration, timeout esterni, osservabilità, cancellazione e alert di costo. Una Function più lunga non è una state machine durable.
Community discussions around Vercel timeouts show that developers have long been balancing streaming, queues and separate workers for LLM and long API work. Treat those discussions as product signal, while relying on the official Vercel changelog and docs for the actual limits.
Fonti
- Vercel Changelog: Functions can now run up to 30 minutes
- Vercel Docs: Configuring Maximum Duration
- Vercel Docs: Fluid Compute
- Vercel Docs: Functions usage and pricing
- Vercel Changelog: Workflow SDK supports TanStack Start
- Vercel Changelog: Sandbox can run up to 24 hours
- Reddit: long-running task questions on Vercel
- Reddit: Vercel runtime limit discussion for LLM apps