Grokking Spring Boot
Vote

0% completed

​

Optimistic Locking

These four steps break rule 1 of the booking service. Every one of them runs inside a correct transaction.

  1. Ana's request reads seat A12, finds no booking, saves her booking, and starts her payment.
  2. Ben's request reads A12, finds no committed booking, saves his booking, and is charged.
  3. Ben's transaction commits.
  4. Ana's payment is approved, and her transaction commits.

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content