MVC3 and session scalability

I am creating an MVC 3 application and asking a question about one sample scenario.

I have two objects - Order and OrderDetails . The order data is filled in on one page, detailed, edited, deleted on the other three pages. After filling out the order and data, I save this data group in the database.

As you can see, during the user’s work and before the data is saved in the database, I need to save the data about orders and details in the form of a kind of memory or similar object.

Now, if I store this object in Session , then I am violating scalability - the application cannot be bound to several machines.

Is there a template or approach that allows you to scale and execute scripts as described?

Note. Non-Sql-Server Session Solution

+4
source share
1 answer

look at the status server session

StateServer mode that saves session state in a separate process called the ASP.NET public service. This ensures that the session state is preserved if the web application is restarted, and also makes the session state available to multiple web servers in the web farm.

http://msdn.microsoft.com/en-us/library/ms178586.aspx

+4
source

Source: https://habr.com/ru/post/1415126/


All Articles