Back to course home
0% completed
Vote For New Content
Concurrency with In-memory LinkedHashMap?
harsha
Aug 21, 2023
The solution describes using transactional DB to ensure ACID properties for the transaction, especially isolation. However, the two services are working on in-memory maps to hold the seats. How can we ensure no two service instances are working on the same seats in the Map?
0
0
Comments
Comments
S
Selva Da year ago
Active Reservation Service takes the hit of updating memory and database in the transaction and keeps them in-sync.
There is a cost to do the same in the other service as well. Read comments in all questions.