Grokking Spring Boot
0% completed
Optimistic Locking
These four steps break rule 1 of the booking service. Every one of them runs inside a correct transaction.
- Ana's request reads seat A12, finds no booking, saves her booking, and starts her payment.
- Ben's request reads A12, finds no committed booking, saves his booking, and is charged.
- Ben's transaction commits.
- Ana's payment is approved, and her transaction commits.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%