Font Size: a A A

Research And Application Of Microservice Architecture In Distributed Systems

Posted on:2020-06-17Degree:MasterType:Thesis
Country:ChinaCandidate:X Y XuFull Text:PDF
GTID:2518306305997289Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Early application systems typically adopted a single-architecture design concept that included all of the system’s functional modules.Although the required functions can be achieved through a single architecture,there are disadvantages such as difficulty in system deployment,poor reliability,poor scalability,and low throughput at high concurrency.A distributed system divides a system into multiple subsystems,each of which performs its own functions and assists in the realization of specific functions.The microservice architecture is a specific implementation scheme of distributed.The subsystem is regarded as a service,and the service are transparently invoked through RPC.All services can be developed and deployed separately,which greatly reduces the deployment cost of the system and improves the scalability and reliability of the system.The main work done in this paper includes the following four aspects:(1)For the problem of poor visibility for the Dubbo microservice call process:With Zipkin extended a call process monitoring center,the monitoring center can collect and count the service call information in real time,quickly locate the fault,the location of the problem,and ensure the visibility of the service call process,improve the stability of the system.(2)For the problem of insufficient system reliability:the microservices registry has been improved.Based on the Zookeeper atomic broadcast protocol,a registration center with multiple ZooKeeper instances has been set up.The problem of single point of failure in a single registry is solved by cluster deployment,The data consistency and high reliability of the system are guaranteed.(3)For the problem of low serialization efficiency:Dubbo SPI is used to extend the implementation of Dubbo serialization,and Protostuff serialization replaces Dubbo’s original Hessian2 serialization,which improves the system’s operating efficiency.(4)Based on the improved micro-service architecture,a distributed system for mine safety hazard management was designed and implemented.After the development is completed,the automated deployment of the system is completed through the continuous integration tool Jenkins.The scalability and convenience of the system based on microservice architecture are analyzed.The stress test of some interfaces is carried out with Jmeter.It can be seen that the throughput of the distributed system based on the improved microservice architecture is much higher than that before the improvement.
Keywords/Search Tags:Distributed System, Microservice, Dubbo, Automation Deploy
PDF Full Text Request
Related items