WorkOS moves events to async outbox with SQS FIFO

workos.com9 min read

WorkOS shifted its event capture infrastructure from synchronous to asynchronous to handle growing volume without impacting core database writes. To solve the challenge of maintaining event ordering across multiple databases, the team implemented an outbox pattern paired with change data capture and SQS FIFO queues keyed by object dependency roots. This design guarantees per-object timeline ordering while accepting trade-offs regarding cross-object ordering and explicit tenant isolation strategies. Open article →