开发者

Best practice stock management when payment of customer failed using SQL Server and ASP.NET

I am currently building a webshop for my own where I want to increment the product-stock when the user fails to complete payment within 10 minutes after the customer placed the order. I want to gather information from 开发者_如何学编程this thread to make a design decision.

I am using SQL Server 2008 and ASP.NET 3.5. Should I use a SQL Server Job who intervals check the orders which are not payed yet or are there better solutions to do this.

Thanks in advance!

Martijn


Good question. I would work with a scheduled job. Run it every minute.

If the application is larger, a triggered application may also work (an exe that you start from the job scheduler in asp.net). Depends on the logic - I would not put more into the stored procedure than I have to in business logic, if you do stuff there that is more complicated - i would not put it into SQL.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜