Engineering insights

In-depth technical articles, high-load system architecture analyses, and practical digital transformation strategies shared directly by Sudo’s engineers and solutions architects.

All articles

Programming
14 March 2024 14 min read

State pattern and an order state machine

An e-commerce order moves through several states: new, paid, shipped, delivered, cancelled. Each action, such as paying, shipping or cancelling, is valid only in certain states, and the behavior diffe...

See more