Category

System Design

How large systems fit together: scaling, consistency, queues and failure handling.

1 article

Order Management System Design: State Machines

Order, payment and fulfilment as three separate state machines: enums declare the legal transitions, one service enforces them under a row lock with a full audit trail, plus split shipments and capped partial refunds - with tested code.

36 min read

Newsletter

Get the next article in your inbox

One short email when a new article is out: Laravel, backend architecture, payments and lessons from production. No spam, unsubscribe in one click.

Only used for this newsletter. Never shared.