iloire / asp.net-mvc-example-invoicing-app

Example invoicing application in ASP.NET MVC3
224 stars 208 forks source link

About Concurrency when create invoice #15

Open vinpes opened 10 years ago

vinpes commented 10 years ago

Hi Iloire,

My doubt about the creation of next invoice number is that how you do you manage the concurrency if two or more users at same time create a new invoice?

You think is secure a InvoiceNumber = Max + 1 ?

thank in advance for your suggestion.

Vincenzo