TL;DR

Vercel Workflows chính thức General Availability (16/04/2026) sau khi xử lý hơn 100 triệu runs500 triệu steps trong giai đoạn beta. SDK biến mọi async function thành durable workflow chỉ với hai directive: "use workflow""use step". Không cần queue, không cần orchestrator riêng, không cần YAML. Python SDK cũng ra mắt beta cùng ngày.

What's new

Workflow SDK đưa durability lên thành language-level concept. Thay vì phải dựng cả hệ thống queues + workers + status tables + retry logic, bạn chỉ cần:

  • "use workflow" — đánh dấu function là durable workflow
  • "use step" — cách ly từng đơn vị công việc với auto-retry, persistence, observability

Những tính năng nổi bật trong bản GA:

  • Durable Streams: getWritable() tạo persistent stream — user đóng browser, workflow vẫn chạy. Quay lại thì resume đúng chỗ, không cần Redis hay pub/sub.
  • Sleep & Hooks: Tạm dừng workflow phút, ngày, thậm chí tháng — không tốn compute. Hooks cho human-in-the-loop approval, webhook từ bên thứ ba.
  • Encryption mặc định: Mọi step input/output đều được mã hóa end-to-end, miễn phí.
  • Python SDK beta: Mở rộng ra ngoài hệ sinh thái JavaScript/TypeScript.
  • "Worlds" adapter system: Chạy managed trên Vercel, self-hosted trên Postgres, hoặc embedded qua adapters (MongoDB, Redis, Turso, Cloudflare).

Why it matters

Guillermo Rauch — CEO Vercel — gọi đây là thứ ông tìm kiếm suốt một thập kỷ: "Tôi muốn mức độ reliability của SQS + Kafka + microservices, nhưng tuyệt đối không muốn sự phức tạp đi kèm. Workflow SDK giải quyết điều đó mà không thỏa hiệp."

Backend hiện đại — đặc biệt với AI agents — cần xử lý LLM calls bị timeout, API rate limit, database chậm bất ngờ. Trước đây, giải pháp là dựng distributed systems phức tạp. Workflow SDK loại bỏ hoàn toàn orchestrator riêng — tất cả coordination sống ngay trong application code.

Đây là bước tiến tương tự những gì Next.js đã làm cho frontend: framework-defined infrastructure, nhưng cho bài toán quan trọng nhất của backend thế hệ mới.

Technical facts

MetricCon số
Runs trong beta100M+
Steps xử lý500M+
Customers beta1,500+
npm downloads/tuần200K+
Releases trong beta75+
Payload per step50 MB
Payload per run2 GB
Default retries/step3 lần

Kiến trúc gồm 3 thành phần: Event Log (source of truth cho execution state), Functions trên Fluid Compute (mỗi step chạy như invocation riêng), và Vercel Queues (tự động enqueue step tiếp theo). Không có background process riêng — bạn chỉ trả tiền cho compute thực sự chạy.

So sánh với giải pháp cũ

Tiêu chíTruyền thống (SQS/Kafka/Temporal)Workflow SDK
OrchestrationService riêng, Kubernetes workersTrong application code
ConfigYAML, state machines, custom syntaxasync/await + 2 directives
Chi phí khi idleWorkers vẫn chạyZero compute khi sleep/hook
AI agent supportKhông nativeDurable tool loops, 2GB payload, streams
StreamingRedis/custom pub-subBuilt-in durable streams
EncryptionTự setupE2E mặc định, miễn phí
Lock-inPhụ thuộc vendorOpen source, Worlds adapters

Use cases

  • Flora — orchestrate 50+ image models cho creative AI pipeline, không cần queue hay state machine. Khách kick off job, đóng laptop, quay lại có kết quả.
  • Durable — generate complete website trong dưới 30 giây bằng hàng chục parallel AI steps. Team 6 kỹ sư thay thế toàn bộ self-hosted infra bằng 160+ directives.
  • Mux — xây media intelligence layer trên Workflows, ship "use workflow" ngay trong @mux/ai SDK.
  • AI Chess — trò chơi cờ vua AI vô hạn của Guillermo Rauch, dùng recursion across runs để chơi vĩnh viễn, survive crashes và deployment upgrades.
  • Backend truyền thống — onboarding flows, payment processing, ETL pipelines, email drip campaigns.

Limitations & pricing

Pricing: Trả tiền cho active compute — zero cost khi workflow sleep hoặc chờ webhook. Encryption miễn phí. Free tier có sẵn, Pro và Enterprise cho nhu cầu lớn hơn.

Giới hạn kỹ thuật:

  • 50 MB/step, 2 GB/run — đủ cho multimodal agents với images và video
  • 3 retries mặc định/step (configurable)
  • Không giới hạn duration — workflow có thể pause hàng tháng, chạy vô hạn qua recursion

Lưu ý: Python SDK mới ở giai đoạn beta. Workflows 5 (native concurrency, snapshot runtime) đang phát triển.

What's next

Workflows 5 đang được phát triển với:

  • Native concurrency controls (lock primitive across runs)
  • Globally deployed infrastructure
  • Snapshot-based runtime giảm replay overhead
  • Better bundling + tích hợp Next.js sâu hơn

Community đang xây thêm Worlds cho MongoDB, Redis, Turso, Jazz Cloud, và Cloudflare. Mục tiêu: "Make the overhead of opting into Workflows smaller and smaller until it is the obvious default for any project."

Nguồn: Vercel Blog, useworkflow.dev, Introducing WDK.