Home / Companies / Trigger.dev / Blog / Post Details
Content Deep Dive

Zod 4 got rid of a bunch of CPUs for us

Blog post from Trigger.dev

Post Details
Company
Date Published
Author
Chris Arderne
Word Count
987
Company Posts That Month
3
Language
English
Hacker News Points
-
Post removed?
No
Summary

Trigger.dev reports that upgrading from Zod 3.x to Zod 4.5 substantially improved production performance across its JSON-heavy task, batch, queue, and API workloads, reducing CPU demand by up to 31% on engine workers, increasing batch throughput by 14%, and lowering task-trigger p99 latency by 18%. One monitored worker service performed roughly 1,100 validations per second, or nearly 100 million daily, illustrating the scale of its schema-validation activity, while lower event loop utilization provided additional processing headroom. Early experiments with Zod’s schema-compilation feature produced a further roughly 5% worker CPU reduction for simple internal schemas. In recognition of its reliance on the library, Trigger.dev became Zod’s first Platinum Sponsor. The upgrade was mostly smooth, though an accidental bare Zod import caused delayed warm starts for npm users still on Zod 3, prompting a fix and a new linting check to prevent recurrence.

Trends Found in this Post

No tracked trend matches for this post yet.

Use This Data

Use this post, company, and trend context to find content marketing opportunities, perform competitive analysis, or address product feature gaps via the Plushcap MCP server or the Plushcap API.