Font Size: a A A

Design And Implementation Of Railway Fund Settlement System Based On Microservice Architecture

Posted on:2022-09-07Degree:MasterType:Thesis
Country:ChinaCandidate:S J XieFull Text:PDF
GTID:2492306608955229Subject:Economy of Traffic and Transportation
Abstract/Summary:PDF Full Text Request
Microservice architecture is a system development solution that has emerged in the industry in recent years.It splits the relatively independent modules of the system,and each service after the split can be deployed separately,reducing the coupling between modules,so that the system has Features of easy expansion,easy scalability,high concurrency,and high availability.With the ever-increasing railway mileage in my country and the increasing variety of railway business types,the internal capital exchanges of my country’s railway enterprises have become more frequent and complex.Based on the analysis of the original railway fund settlement system,the main challenges and contributions of this article are as follows:1.With the increase of settlement services,the original settlement system frequently experienced delays and stalls,and the system performance was not sufficient to support high concurrent access.In order to solve this problem,this article comprehensively considers various scenarios of railway settlement business,uses Redis as a data cache to improve query efficiency,discusses the relationship between update cache and data consistency,and proposes the principle of using Redis cache.At the same time,Redis and Lua scripts are combined to build distribution Type lock to solve the problem of data consistency caused by high concurrency under distributed conditions.Enrich the usage scenarios of Redis and improve the concurrency performance of the system.2.The original railway fund settlement system adopts a single structure,and functions such as accounts,subjects,and authentication are redundant together.The system is highly coupled and cannot be maintained,expanded and deployed separately.In response to this problem,this article analyzes and compares Spring Cloud and Dubbo two popular microservice frameworks in depth,and chooses Spring Cloud as the system’s microservice architecture solution.On this basis,the distributed system is designed based on CAP theory,and the popular ones are discarded.In the Zookeeper cluster,Eureka with a decentralized architecture is selected as the registration center of the distributed system to ensure the high availability and fault tolerance of the settlement system and improve the horizontal scalability of the system.3.The original system does not have a service gateway,and the interface calling relationship is chaotic,which poses a greater security risk.This article introduces the service gateway to enhance the security verification of the system.At the same time,in order to avoid the cumbersome configuration of Nginx and heavy service deployment,the lightweight Zuul component is selected as the service gateway,and the JWT token is creatively introduced in combination with Zuul’s ZuulFilter filter for permissions.The verification realizes the security gateway function and improves the security of the system.In terms of overall design,this article designs and develops a new railway fund settlement system based on the micro-service architecture in accordance with the business needs of railway fund settlement and management.Subsequent functional testing adopts black box testing methods.In terms of non-functional testing,testing tools such as Postman and Jmeter are used to perform detailed tests on the system’s service registration and service discovery,load balancing,service fault tolerance,security,and high concurrency.In the overall development and deployment process,technologies such as Jenkins and Docker are used to complete continuous integration,service image construction,and service automated deployment.At present,the system is in stable operation in pilot use,can meet the increasing settlement needs of railway settlement centers,settlement houses,and settlement rooms at all levels,achieves the expected goals,and has certain reference significance for the design,development and implementation of industry-related systems.
Keywords/Search Tags:Microservice, Spring Cloud, Fund settlement, Redis
PDF Full Text Request
Related items