Concurrency in an Booking application like Flipkart / BookMyShow
Anonymous User
778
Oct 04, 2022
How do we handle the concurrency in application side?
we will not be making our service synchronized right ? because that will effect our performance and slowness in the booking..
public void synchronized blockInventory(){
//decrementing the inventory count
}eg: One person is booking a hotel for today and other person is trying to book a hotel for tomorrow.
As the above two cases can be run concurrently right ?
How do we implement concurrency in the above case ?
fyi, The above question is asked in MakeMyTrip Interview for Backend developer role
Comments (2)


