Study notes 47_ about the limitations of the session, Memcache

Source: Internet
Author: User

Three big questions:

1.Session Performance Issues

2. Unable to stabilize the output. Consider using an out-of-process session

3. Compose a cluster, log in data for sharing

(for example, such as Baidu, Baidu Network disk, Baidu Library, etc. is the use of different service machines, how to avoid the use of the time without repeated login)

To address this type of problem, a dedicated machine is used to handle the public cache

A distributed Cache system: Memcache

Scene:

There are three machines, each deploying IIS, and the OA system

If you use a local session, then if you access the machine 1, then only the machine 1 has user information

At this time to use other functional modules, using the Machine 2, then can only re-login, not to get machine 1 user information

Distributed System: Memcache

Distributed Cache storage mode: Cache:key-value

Supplement: Session running mechanism is, when the user first request, will request a GUID as SessionID, return when put SessionID in the cookie, send to the user, at the same time in the native cache, place sessionid-session value; Each time a user requests a cookie containing SessionID to the server, the service can use the Key-value method to get the session value of the current requesting user.

The same is true for distributed systems, but not locally.

Study notes 47_ about the limitations of the session, Memcache

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.