针对用户交互式应用系统设计上应提高系统的可伸缩性和可用性问题,设计了一种分布式会话状态存储组件SessionStore,用于提供统一的用户会话状态存储.SessionStore采用一致性哈希算法并引入Dynamo中虚拟节点的机制,进行用户会话根据节点权重的均衡分布,并维护会话的多个副本,部分节点的崩溃不会导致会话丢失.实验结果表明SessionStore具有较好的可伸缩性和高可用性.在会话生命周期的管理中,SessionStore采用延迟更新机制,避免每次会话访问同步更新所有副本的生命周期,减少了系统的响应延迟.%In consideration of the techinical requirements of scalability and availability in design of a user interactive application system, this paper presents a distributed session state store component SessionStore, which provides a unified storage for user session state. The SessionStore uses the consistent hashing algorithm and the virtual node mechanism in Dynamo to support balanced distribution of user session according to nodes' capacity, and maintains multiple copies of session to avoid loss of session state breakdown of some nodes. The experimental results show that the SessionStore has good scalability and availability. In the session life cycle management, the SessionStore adopts delayed update mechanism to avoid simultaneously updating the life cycle of all copies and reduces the response delay of the system.
展开▼