DevRev-AirLine icon indicating copy to clipboard operation
DevRev-AirLine copied to clipboard

Collisions can happen in search flight

Open kushagra-ideausher opened this issue 1 year ago • 0 comments

Hello,

When making a search flight call in createBooking function the flight booking service is not using any kind of transaction so it might fail, we can use transactions with serilizability to reduce concurrency conflict in search flight service, there might be issue when after receiving the current seats there might be another booking call to the flight search service and it might send old data so to prevent that you need to lock the search service or decrement it's count of the seats while the flight is search untill the filght is totally booked

kushagra-ideausher avatar Nov 18 '23 22:11 kushagra-ideausher