Skip to content

Glossary: Spring Boot Beyond the Basics

Lost update

A race where two orders both read stock 40 and both write 10, so sixty bags are sold but thirty are taken. A transaction alone doesn't prevent it.

Where the book teaches it

Related terms

Optimistic lockingPessimistic locking