Click here to Skip to main content
15,905,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
What would be the best approach to implement a realtime reservation system?

So what I would need is the system should not allow two people to select a seat (say seat no :10) at the same time and also it should lock the seat for sometime (if the seat is selected by someone) till he finish his transaction.

Please suggest best approached to meet this.

Looking forward to get this done using asp.net and c# (with the assistance of jquery /signalr)

Thanks,
Vinod
Posted
Updated 12-Sep-13 2:15am
v3
Comments
Richard MacCutchan 12-Sep-13 5:59am    
This question is far too broad for a quick answers forum. There is much more to a seat reservation system than simply preventing two users from trying to allocate the same seat. You require a complete analysis of the business requirements before you can even think about starting to write code.
vinod chattergee 12-Sep-13 8:18am    
Hi Richard,
This is more of curiosity, I see many places as in when booking movie tickets , airtickets etc the round trip is happening as in less than 0 sec!!!!

Hows that achieved!!!!

any inputs???

Thanks,
Vinod
Richard MacCutchan 12-Sep-13 8:28am    
Then you should be using Google to find samples and suggestions.
vinod chattergee 12-Sep-13 8:49am    
but, can you think of someway this can be achieved? give a shot!
Richard MacCutchan 12-Sep-13 9:14am    
Yes, type www.google.com into your browser address bar.

Seriously, this is a research question, not a technical one, and the answer depends on far too many factors. If you really cannot understand why, then you need to do some more studying into application development.

1 solution

You'll just need to add a flag to your database table, perhaps a timestamp so that when someone new starts querying your reservations the ones that still have a timestamp within the last 10 minutes or so don't show up as being available.

There's no one way to do it so you just need to decide on an approach and go for it.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900