Grokking Spring Boot
Vote

0% completed

​

Wiring Objects by Hand

These two lines come from one run of a small program, and they describe two bookings of the same seat:

web API, repository #1: booked seat A12 for ana@example.com box office, repository #2: booked seat A12 for ben@example.com

Ana booked seat A12 through the web API, and Ben booked it a moment later at the box office desk. Both bookings succeeded, so rule 1 of the booking service is broken. Yet no two requests overlapped, and the booking code is the same correct code in both programs.

The fault is in the code that created the objects, not in the code that books seats

.....

.....

.....

Like the course? Get enrolled and start learning!

Reading Progress

0%


Vote for new content