The embodiment of the invention provides a distributed
session management method and device based on a
NoSQL (Not Only
SQL). The method comprises the steps of receiving session requests sent by a
client, and obtaining operation types of the session requests and session IDs of the session requests from the session requests; routing the session requests to a master node of a cluster
server if the session requests are write operation, thereby enabling the master node to store the session IDs and session data carried by the session requests, and synchronize the session IDs and the session data toeach slave node of the cluster
server; and if the session requests are read operation, after it is judged that the session data corresponding to the session IDs is synchronized completely, routing thesession requests to the slave nodes according to a preset load balancing policy, thereby enabling the
client to read the session data corresponding to the session IDs from the slave nodes according to the session IDs. According to the embodiment of the invention, consistency when
data synchronization is carried out can be ensured, service can be provided in a high
concurrency scene at high performance, and business performance is high.