摘要
为了克服软件架构在巨大QPS冲击下性能低、可拓展性差等弊端,解决在经常高并发场景下的程序崩溃、服务宕机以及数据出错等问题,文章针对亟需平稳运行的电商业务,设计并实现了一套基于分布式架构的高可用新型电子商务系统。该系统提供了高可靠的分布式框架,含有服务节点自动注册与发现、配置统一管理以及服务集群容错等功能。在可能出错的服务节点上,运用了安全认证鉴权、分布式缓存锁、消息服务、分布式搜索引擎等手段,使得服务在透明化远程调用中既强化了程序的安全可靠,又保障了数据在传输过程中的精准正确。系统在开发中采用前后分离的Restful Api架构风格和容器化部署方法,测试并验证了在高并发场景下的功能可用性和性能可靠性,为百万级流量系统的软件架构技术选型提供了一种可行的服务化治理方案。
In order to overcome the disadvantages of software architecture such as low performance and poor extensibility under the impact of huge QPS and solve the problems of program crash,service failure and data error under frequently high concurrent scenarios,a new high-availability e-commerce system based on distributed architecture is designed and implemented for e-commerce which needs to run smoothly.The system provides a highly reliable distributed framework with the functions of automatic registration and discovery of service nodes,unified configuration management and fault tolerance of service cluster.On the service node which may make mistakes,the security authentication,the distributed cache lock,the message service,the distributed search engine and other means are used,so that the service in transparent remote invocation not only strengthens the security and reliability of the program,but also ensures the accuracy of data in the process of transmission.The system uses the split Restful Api architecture style and container deployment method to test and verify the functional availability and performance reliability in high concurrency scenarios,which provides a feasible service-oriented governance scheme for the selection of software architecture technology of million-class traffic system.
作者
耿晓利
张芒
尹永宏
GENG Xiao-li;ZHANG Mang;YIN Yong-hong(South China Institute of Software Engineering,Guangzhou 510990,China)
出处
《计算机技术与发展》
2021年第2期111-115,121,共6页
Computer Technology and Development
基金
2018年广东省重点平台及科研项目(青年人才项目-自然科学类)(2018KQNCX389)。
关键词
分布式
微服务
事务机制
Docker容器
高并发
distributed
microservices
transaction mechanism
Docker containers
high concurrency