| With the development of software technology,and the scale of application expansion,software architecture changes from the MVC to service-oriented architecture.Service-oriented architecture is wildly used in large enterprise system,because of its flexibility,decoupling,standardization communication and etc.However,the service-oriented architecture based on ESB has some problems like high performance cost,and difficult to linear expansion,so,some Internet company use another service-orient architecture which is more flexibility and called mirco-service architecture.Mirco-service architecture has advantanges of decentration,autonomical,automated and etc,it fits on lower cost to meet the development needs of enterprise software architecture,improves research and development efficiency.In this project,according to analysis system requirement is design and implement the Mirco-service communication framework.The framework included four modules:network communication module for the underlying Socket transmission based on Netty,private protocol stack modules with the fundation of communication module which is used to describe the message and service specification during transmission,the service registry module in directory server used to offer routing information between distributed network service nodes under the micro service framework,service fuse module against the abnormal factors which might lead to system error under the distributed environment such as high concurrency and terrible network environment.According to the process and method of software engineering,and development with the business requirements,this project demonstrates the framework by use case model and architecture diagram.By using the class diagram,sequence diagram and flow chart to show the detailed design of the communication module,private protocol stack module,service registry module and service fuse module.Finally,the features of the system is verified by functional tests.The mirco-service communication framework has been used by multiple product line now,based on the benchmarks and the feedback,multiple business system has been more flexible and the single point of pressure of business system has been significantly reduced.The overall stability of the business and operational efficiency has also been greatly improved.And,the additional workload of the developers is significantly reduced and the utilization of the resource is significantly improved. |