Glossary: System Design Basics in Rust
Atomic operation
Also written: atomic, atomicity
A single step that cannot be split, so nothing can happen between the check and the change. Checking and subtracting stock under one lock keeps two checkouts from selling the last bag.
Where the book teaches it
Related terms
Race conditionTransactionACID (atomicity, consistency, isolation, durability)