摘要
为提高Web集群的水平扩展能力,提出了一种服务端无状态的解决方案。该方案基于Token验证方式,采用JWT技术将用户信息从服务端转移到客户端,实现了服务端无状态,保证了Web集群节点良好的水平扩展性。最后对实验系统进行了压力测试,测试结果显示,该方案在并发性能没有明显下降的情况下,系统的水平扩展性能得到了大幅提升,证明了该方案在提升系统水平扩展能力方面的有效性。
To improve the horizontal expansion of Web cluster, this paper proposes a stateless solution for server side. The scheme is based on Token authentication, and uses JWT technology to transfer user information from the server to the client, which realizes the stateless service and ensures the good scalability of Web cluster nodes. Finally, the pressure test is carried out on the experimental system, and the test result shows that the horizontal expansion performance is greatly improved while the concurrent performance is not obviously decreased. Experimental results show the effectiveness of the proposed scheme in improving the horizontal expansion capability of the system.
出处
《电力信息与通信技术》
2017年第11期49-54,共6页
Electric Power Information and Communication Technology
基金
国家重点研发计划资助项目"大电网智能调度与安全预警关键技术研究及应用"(2017YFB 0902600)