Asp.net session distributed sharing solution, asp. netsession

Source: Internet
Author: User

Asp.net session distributed sharing solution, asp. netsession

Session sharing is an important part of distributed system design. Compared with the session Sharing Solution in java, there are still few solutions in. net, and the MemcachedSessionProvider class library is excellent.

EnyimMemcached is the memcached client in windows. This is a good class library. The MemcachedSessionProvider we will talk about later needs to implement session sharing based on this memcached client.
Github address: EnyimMemcached

Microsoft for us to achieve session sharing, but based on SQL server database, please see Nginx + IIS Load Balancing Session multi site sharing (http://www.cjjjs.com/paper/gzsh/2017102418155818.html ), if this design scheme is adopted in the project, this design will reduce the performance because the database is frequently read. However, Microsoft also provides a base class SessionStateStoreProviderBase.
For details, see How to: Sample Session-State Store Provider. MemcachedSessionProvider is also designed based on this base class. I have to say that many of Microsoft's basic classes are well designed and well considered!

Github address: MemcachedSessionProvider

I implemented it roughly, But I didn't implement session sharing. I think it should be because I didn't understand the example on github (I think I want to talk about it, I really don't understand the test code (test file) in github ))

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.