Font Size: a A A

Research And Implementation Of Microservice Architecture In Enterprise Information System

Posted on:2020-02-07Degree:MasterType:Thesis
Country:ChinaCandidate:W L TangFull Text:PDF
GTID:2428330623963632Subject:Computer technology
Abstract/Summary:PDF Full Text Request
The traditional enterprise information system mainly consists of an application to complete all business needs,which is called monolithic architecture.In today's society,demand changes are becoming more and more rapid,and companies need to make timely adjustments to production processes or workflows in order to respond quickly to these changes.If the monolithic architecture is used to develop the information system,it will face frequent modification,testing and deployment of the entire system due to changes in demand.And as the demand increases,the amount of code becomes larger and the coupling between modules becomes stronger,and the addition or modification of each function brings unpredictable risks.This paper is based on a cooperation project with a clothing company,clothing company are also facing the problem of rapid changes in fashion trends and a large increase in individualized demand.In order to solve this problem,this paper proposes a microservice-based architecture for enterprise information system.By designing different business modules into microservices that are independently developed,tested and deployed,the rapid development and deployment of services can be realized.After the business changes,only the corresponding microservice needs to be added,or modified rather than the entire system.The main work of this paper is as follows:This paper studies the commonly used microservice architecture,and combines the characteristics of the garment industry,selects service discovery,service gateway and access control as the basic components of the information system.As one of the core components of the microservice architecture,service discovery is an important factor affecting the overall stability of the entire microservice architecture.Therefore,distributed deployment is generally adopted to improve the availability of service discovery.At present,general distributed service discovery uses classical Paxos,ZAB and other algorithms to ensure the consistency of data between nodes,but these algorithms use complex mechanisms to ensure universal data consistency.This paper improves the Raft algorithm based on the characteristics of service discovery data to ensure the consistency of the cluster nodes and simplify the algorithm flow.The experimental results show that in this scenario,the improved algorithm can restore data consistency at a faster rate after an error.In order to ensure the security of the system,this paper designs and implements the role-based distributed system access control using OAuth2.0 protocol and JWT technology.The authorization server is used to separate the authentication of user identity from other microservices for unified management and avoid duplication development,data consistency and other issues.Using the service gateway as a user agent,the user can access the entire system with single sign on.This paper designs a lightweight asynchronous message interaction mechanism between services,which ensures the reliability of message delivery,reduces the dependence on heavyweight communication components such as message queues,and reduces the maintenance cost of the system.The experimental results show that this mechanism can guarantee that the messages will be received when the services are abnormal.
Keywords/Search Tags:Microservice architecture, Message interaction, Access control, Service discovery
PDF Full Text Request
Related items