Content Deep Dive

Scaling events and webhooks: from sync to async, in order

Blog post from WorkOS

Post Details
Company
Date Published
Author
Yong Wang
Word Count
1,955
Company Posts That Month
36
Language
English
Hacker News Points
-
Post removed?
No
Summary

WorkOS moved event capture off the synchronous request path to an asynchronous pipeline, using a transactional outbox in the core database and change data capture to publish events to SQS FIFO queues. Because FIFO ordering is limited to a message group, each event is assigned a dependency-root key that keeps one object’s history in order across the stream, queue, and worker; unrelated objects can arrive in either order. This preserves per-object sequencing while accepting trade-offs such as limited throughput for a hot object, no guaranteed order between related objects, and the need to manage tenant fairness with separate queues for different traffic patterns. Every stage is at-least-once, so an idempotent writer makes duplicates harmless, while delays cause lag rather than loss. For customers, the Events API remains replayable and cursor-based, but events are ordered by capture across the log and only guaranteed to follow their own object’s timeline; webhooks remain at-least-once and unordered, so consumers should rely on full payloads and tolerate out-of-order delivery.

Trends Found in this Post
Trend Post Mentions Total Month Mentions Posts Companies MoM
Secrets Management 2 3,938 729 169 +27%
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.