帮助建立电子商务网站 [英] Help building an E-commerce site
问题描述
伙计们,我想在asp.net上建立一个电子商务网站。我的查询是:当两个用户同时购买商品时,如何将这两个记录插入数据库?会锁吗?谁能解释这将是如何处理的。
Guys, I want to build an e-commerce site on asp.net. My query is: when two users simultaneously buy something, how would the two records get inserted in my database? Would there be a lock? Can anyone explain how this would be or can be handled.
此外,我想处理高峰流量并控制分配给每个用户的平均数据。我正在考虑使用插件。这里有什么建议吗?
Also, I want to handle peak traffic and also control the average data allotted to each user. I am thinking of using a plug-in. Any suggestions here?
推荐答案
只是一个想法,但是如果您刚刚开设一个新的在线商店,则极不可能会遇到任何麻烦这样的问题一段时间了?
Just a thought but if your just starting a new online store its highly unlikely you'll run into any problems like this for some time?
第二,数据库会自理,您的Web服务器会完成所有处理流量和分配资源的工作。您不应该在网络代码级别执行此操作。
Secondly, Databases take care of themselves and your web server does all the work of handling traffic and allocating resources. You shouldn't be doing this at a web code level.
这篇关于帮助建立电子商务网站的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!