Help building an E-commerce site

…衆ロ難τιáo~ 提交于 2019-12-24 06:43:57

问题


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?


回答1:


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?

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.




回答2:


The RDBMS handles the locking for you.




回答3:


Maybe a better solution is a free ecommerce solution, as it'll have a lot of optimisation for large traffic already. Is there a specific reason not to use one of the many solutions already available?



来源:https://stackoverflow.com/questions/1120621/help-building-an-e-commerce-site

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!