title: online bus booking
body: <p>online bus booking</p>
  
  <p>project is online bus booking, i expecting some suggestion from gurus, </p>
  
  <p>Assume this is the sitution, but capcity is 30, so far 25 seat are booked, </p>
  
  <p>How to handle the situation, when two user trying for booking the 4 tickets,</p>
  
  <p>Assume, When user x viewing the site, system say still 5 seats are avaiable,</p>
  
  <p>This same status user y also viewing, now both user started their booking, </p>
  
  <p>Assume x and y user required 4 seats, what will happen, how to handle this complex situtaion, </p>
  
  <p>Becuase we should fool the customer, that is, after payment gateway we should not say, Sorry for inconvience , their is not seats avaiable,</p>
  
  <p>So i need one best logic, with that i have tom maintain this booking process, </p>
  
  <p>truly i dont have any idea how to handle this situtaion.</p>