Vercel Functions 30 menit: hal yang harus diputuskan sebelum memindahkan pekerjaan AI panjang ke serverless
Pada 15 Juni 2026, Vercel mengumumkan Functions untuk Node.js dan Python dapat berjalan hingga 30 menit bagi tim Pro dan Enterprise. Durasi di atas 800 detik masih beta dan membutuhkan Fluid Compute. Ini relevan untuk LLM streaming, OCR, ekstraksi dokumen, media processing, dan otomasi terbatas.
Apa yang berubah
Pada 15 Juni 2026, Vercel mengumumkan Functions untuk Node.js dan Python dapat berjalan hingga 30 menit bagi tim Pro dan Enterprise. Durasi di atas 800 detik masih beta dan membutuhkan Fluid Compute. Ini relevan untuk LLM streaming, OCR, ekstraksi dokumen, media processing, dan otomasi terbatas.
Pertanyaannya tetap sama: jika pengguna sedang menunggu hasil, Function panjang dengan streaming masuk akal. Jika pekerjaan harus resume setelah gagal, punya retry per langkah, atau tidur berhari-hari, gunakan Workflow atau Queue. Jika perlu workspace, browser, atau tool agent, gunakan Sandbox.
Keputusan praktis
| 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.
Risiko
Sebelum rilis, cek plan, runtime, beta availability, maxDuration, timeout provider, timeout DB, log progress, cancellation, rate limit, dan alert biaya. Timeout lebih panjang bukan pengganti durable state machine.
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.
Sumber
- 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