Hey bro awesome explanation. Thanks bro. I have a question on payment processing related in some websites like bookmyshow or redbus after we selected a seat they wait for 5 mins or 10 mins to get payment done. in that meantime they really lock those seats and how they handle double booking and race conditions. This is lot of time to wait. I thought this way like they let them happening double booking and track who completed the payment they will assign seats and remove failed payment or drop whoever not completed that payment.
Correct Faizul. This is to handle race condition and the 5/10 min is the end to end timeout for payment. Since payment gateways are external to the booking site they introduce this timeout. Another one to look at is IRCTC
@@TechPrimers Thanks for your reply. So in this way again what if two users got paid for same seats and who will they assign to that seat. Are they having any reservation token generated with sequentially and decide based on that even payment done in same time? Just curious to know avoid double booking in whatever way 😀 After you mentioned IRCTC I would like share my bad user experience. Most of time I loose tatkal tickets and money. But they will reprocess in 1 week.
Hi ,Thanks for the yet another wonderful tutorial. Have a question regarding system design for building survey to upvote/downvote with random list of 10 questions to billions of users? Could you please suggest whats the best way for this?