title: Seat booking logic for meteor react application
body: <p>I am working on a meteor booking application where I have a limited number of seats. My application can be used by many users in parallel so there is a possibility that two users try to book same seat. But as per business logic seats can never be overbooked. In Java, I could have restricted parallel booking using synchronized block. I don't have much experience in meteor/react so not sure what should be the right way to achieve this.</p>
  
  <p>My current thought is to use a reactive boolean to create a lock so if the application gets two booking request then it process them synchronously and fail the second booking request. Since the seat will already be allocated in first request. But I am afraid whether I will get into any deadlock. So I am seeking your opinion/help to implement this in a proper way.</p>
  
  <p>Thanks for your advice!</p>