Is it Possible for Server Memory to Overflow if I use too many Sessions in Asp.net Core?
For example, what happens if I have an e-commerce web application and I Use session for store user shopping cart information and a large number of user create a shopping cart in one time .
CodePudding user response:
Is it Possible for Server Memory to Overflow if I use too many Sessions in Asp.net Core?
In my opinion, if you store all the things into the memory, you may not face this error, but you will face the application slow response issue. If you have many user to access your web site, your application's memory usage may reach thee 100%. This will make all the application failed in the server.
If you still want to store the data into the session, the right solution is set the session provider to use redis, this could avoid the high memory issue. More details about how to use it, you could refer to this article.
