摘要
随着业务量和功能需求的不断增长,各大业务系统的应用正逐步实现Spring Boot架构到Spring Cloud微服务架构的升级.由于版本的变更度较大,需要经过充分的内部测试与对外联调才能正式上线.在现有联调环境存在DMZ域机器资源有限,以及尽量减少公网暴露面等要求下,文章提出了基于Nginx-F5的双架构应用并行及流量切换方案,使测试系统同时具备Boot和Cloud两种架构应用的对外联调测试功能.该方案将外部商户的请求按照商户编码、业务类型或省代码等属性标识及一定的百分比进行拆分并转发至微服务应用系统,使微服务版本的应用获得充分的调测,为需要进行大版本并行测试的系统扩展和建设提供参考.
With the continuous growth of business volume and functional requirements,applications of major business systems are gradually upgrading from the Spring Boot architecture to the SpringCloud micro-service architecture.Due to the significant version change,internal testing and external joint testing need to be conducted sufficiently before the applications officially go online.Under the constraints of limited machine resources in the DMZ domain and minimizing the exposure to the public network of the existing joint environment,this study proposes a dual-architecture application paralleling and flow switching scheme based on the Nginx-F5,which provides the test system with both the external joint testing functions of Boot and Cloud architecture applications.The scheme splits the requests of external merchants according to attributes such as merchant code,business type,or province code and a certain percentage and forwards them to the micro-service application system.In this way,the application in the micro-service version can be fully tested,which provides a reference for system expansion and construction that needs large version parallel testing.
作者
黄晨
柏路平
HUANG Chen;BAI Lu-Ping(China Mobile Information Technology Co.Ltd.,Shenzhen 518048,China)
出处
《计算机系统应用》
2022年第3期351-355,共5页
Computer Systems & Applications
关键词
微服务架构
NGINX
F5
应用并行
流量切换
micro-service architecture
Nginx
F5
application paralleling
flow switching