Scaling up: Handling concurrent data writes in ASP.NET MVC applications

Posted: (EET/GMT+2)

 

My favorite data access technology in ASP.NET web applications (MVC, most of the time) is Entity Framework, and if you are scaling up your application for dozens of users, then you need to handle concurrency issues in data writes (modifications, mainly).

Entity Framework contains multiple ways to handle these situations, and you can also add handling logic to your controller code. There's a good document in handling concurrency situations in ASP.NET MVC application on the ASP.NET web site.

In case your application uses EF libraries in ASP.NET MVC application, this document is recommended reading.