Skip to content

Glossary: System Design Basics in C#

Atomic

Also written: atomicity, atomic update

An operation that can't be split, so all of the change happens or none of it, and nothing can sneak in between the check and the change. A single `UPDATE ... WHERE qty >= ?` is atomic, which stops two checkouts selling the last bag.

Where the book teaches it

Related terms

Race conditionTransaction