Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Collisions can happen in search flight #1

Open
kushagra-ideausher opened this issue Nov 18, 2023 · 0 comments
Open

Collisions can happen in search flight #1

kushagra-ideausher opened this issue Nov 18, 2023 · 0 comments

Comments

@kushagra-ideausher
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant