The usage scenarios and advantages and disadvantages of the three session management methods in a distributed environment

In a distributed environment, the following three methods are usually used to manage sessions:

1. Introduction to session replication management (ie session replication)
        : broadcast and replicate the session data on one machine to other machines in the cluster
        Usage scenarios: there are fewer machines, Small network traffic
        Advantages: Simple implementation, less configuration, does not affect user access when a machine in the network goes
        down : that is, sticky session, when a user accesses a machine in the cluster, it is mandatory to specify that all subsequent requests fall on this machine.         Usage scenario: the number of machines is moderate, and the stability requirements are not very strict         . Advantages: simple implementation, convenient configuration, no additional Disadvantages of network overhead         : When a machine in the network goes down, the user session will be lost, which is likely to cause a single point of        . When the session information is obtained from the cache, the        usage scenario: there are many machines in the cluster, and the network environment is complex        . Advantages: good reliability        . Write http://blog.csdn.net/shixing_11/article/details/7243934













Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326354886&siteId=291194637