A non-locking in-process ASP.NET session state store

后端 未结 5 1494
挽巷
挽巷 2020-12-06 05:34

I\'m using ASP.NET\'s in-process session state store. It locks access to a session exclusively, and which means concurrent requests to the same session are served sequential

5条回答
  •  [愿得一人]
    2020-12-06 06:08

    I suggest that you look into moving your sessions into SQL Server Mode. SQL Server sessions is to allow for any number of requests from multiple web servers to share a single session. As far as I know, the SQL Server manages the locking mechanism internally which is tremendously efficient. You also have the added bonus of having a lower in-memory footprint. And you don't need to write an HttpModule to run it.

提交回复
热议问题