DevRev-Air, a highly efficient and reliable backend application responsible for seamlessly managing multiple facets of flight operations, including flight management, booking systems, real-time notifications, and secure payment processing. It incorporates a Microservice MVC architecture.
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