实施实时预订系统的最佳方法是什么? [英] What would be the best approach to implement a realtime reservation system?

查看:86
本文介绍了实施实时预订系统的最佳方法是什么?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

实施实时预订系统的最佳方法是什么?



所以我需要的是系统不应该让两个人选择一个座位(同时说座位号码:10)并且它应该锁定座位一段时间(如果座位是由某人选择的),直到他完成交易。



请建议最好接近这个。



期待使用asp.net和c#完成这项工作(在jquery / signalr的帮助下)



谢谢,

Vinod

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

推荐答案

你只需要为你添加一个标志数据库表,也许是一个时间戳,以便当有新人开始查询您的预订时,那些在过去10分钟左右仍然有时间戳的人不会显示为可用。



没有一种方法可以做到这一点所以你只需要决定一种方法就可以了。
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.


这篇关于实施实时预订系统的最佳方法是什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆