DevRev-AirLine
                                
                                
                                
                                    DevRev-AirLine copied to clipboard
                            
                            
                            
                        Collisions can happen in search flight
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