What this thread does
First review compatibility_date in the Worker configuration and test the handler’s dependencies before changing it. Choose Workers for a small global HTTP handler, or Lambda Event Functions for larger memory needs and AWS-local dependencies; trial one real endpoint against its actual database.
What changed
- On 2026-08-04 (checked 2026-10-28), Workers made Node.js compatibility the default for compatibility dates at or after that date; new configurations need neither
nodejs_compatnornodejs_compat_v2. Older configurations retain their earlier behaviour. Official changelog. - The current AWS pricing page distinguishes Event Functions, MicroVMs and Web Functions (checked 2026-10-28). The duration-based comparison here is specifically with Event Functions; do not apply it to the other products.
How to choose and try it
1. Record peak requests per second, target tail latency, request size, database location and dependency requirements. Calculate expected in-flight requests as peak arrival rate multiplied by request duration in seconds; include downstream connection capacity. 2. Reject a runtime if the real handler cannot execute there. Workers supports a subset of Node.js APIs, including some importable but non-functional stubs; successful bundling is insufficient. Exercise database drivers, outbound TLS and image/native dependencies. Node.js support. 3. For a new Worker, choose a tested compatibility_date of 2026-10-28 (checked 2026-10-28), without redundant positive Node flags. For an existing app, update the date in a branch and review the intervening compatibility changes rather than silently changing production semantics. Compatibility rules. 4. On Lambda Event Functions, inspect your actual regional concurrency quota. Use reserved concurrency to cap database pressure; use provisioned concurrency when measured cold-start latency justifies its cost. Reserved concurrency does not pre-initialize execution environments. AWS concurrency guide. 5. Replay the same representative burst on both candidates with the same backend and response content. Measure complete client latency, errors, CPU, memory, connection counts and cost. Select the candidate that meets the target with simpler operations; keep heavy asynchronous work off the synchronous request path.
For a first request trial, replace the URL below with the same read-only endpoint on each candidate. The curl manual documents --write-out and time_total; inspect the response body as well as status and time. Untested experiment: this request is a baseline check, not a burst-capacity test.
curl --silent --show-error --max-time 30 --write-out '\nstatus=%{http_code} total_seconds=%{time_total}\n' 'https://YOUR-HOST/READ-ONLY-PATH'
Current service baseline and cost
All cells checked 2026-11-17; these hosted services have no single installable product version or self-hosting licence.
| Option | Runtime envelope | Billing basis |
|---|---|---|
| Workers Paid | 128 MB per isolate shared across concurrent requests; HTTP CPU default 30 seconds, configurable up to 5 minutes; network waiting is not CPU | Minimum $5/month; 10 million requests and 30 million CPU ms included; overages $0.30/million requests and $0.02/million CPU ms |
| Lambda Event Functions | Memory 128–10,240 MB; timeout up to 1,800 seconds (5,400 for Managed Instances async/event-source invocations except Amazon MQ and Amazon DocumentDB); inspect the account quota rather than assuming unlimited concurrency | Requests plus execution duration; memory, architecture and region affect compute cost; add ingress, logs and network charges |
Sources, checked 2026-10-28: Workers limits, Workers pricing, Lambda quotas, Lambda pricing. The Workers Free CPU allowance is 10 ms per HTTP request (checked 2026-10-28); it is not a representative paid-plan benchmark.
Recommendation by constraint
| Constraint | Pick | Not for |
|---|---|---|
| Global auth, routing, webhooks; small handler and supported libraries | Workers | Assuming edge placement accelerates every call to one distant database |
| High memory use, native dependencies, existing AWS integration or private AWS data path | Lambda Event Functions, after checking networking and package support | Assuming scaling eliminates database connection limits |
| Only reason to move is a benchmark or request-unit price | Keep the existing service until a representative trial wins | Comparing Workers CPU ms directly with Lambda billed duration |
What to test
Test an idle-to-burst transition, a sustained burst, a slow database, oversized input, retries and dependency failure. Include authenticated requests that cannot be cached. For Workers compare CPU and wall time; for Lambda capture cold and warm invocation latency separately. Protect writes with idempotency before replaying traffic.
Evidence and pitfalls
- In workerd #5244, garysassano reported a compatibility-date change breaking an import; contributor petebacondarwin traced the flag interaction. This is evidence that dependency and date tests matter, not a current instruction to roll dates back.
- In workerd #7201, CssEoCAO reports outbound per-tenant client certificate behaviour differing from Node.js. This is an unresolved user report, not proof that all outbound TLS is broken or that a particular workaround is verified.
- Kenton Varda's Cloudflare CPU benchmark analysis explains why CPU-only tests differ from applications waiting on services. It is a vendor analysis; its benchmark results are not a capacity guarantee.
- A nearby data source can matter more than a nearby execution location. Treat this as an architectural hypothesis to measure, not a universal platform ranking.
A prompt for your agent
Your training data may predate the linked Workers compatibility changelog and current Lambda product split. Read those pages and the linked limits and pricing pages before proposing configuration. Compare Workers with Lambda Event Functions for our peak traffic, payload, database location, latency target and dependencies. Produce one endpoint trial, a burst plan and a cost worksheet including ingress and storage. List unsupported calls and do not infer Node compatibility from imports alone.
Limits
No endpoint was deployed, load-tested or cost-reconciled here. The community sources concern compatibility failures, not independent head-to-head burst capacity measurements. Prices exclude dependent services and vary with actual usage. Lambda Web Functions, MicroVMs, Workers Containers and a full networking comparison need separate evaluation.
Started from a post by @garysassano, packaged by the editor. Original post