Font Size: a A A

The Distributed Service Middleware Design And Implementation Based On Zoo Keeper

Posted on:2017-11-12Degree:MasterType:Thesis
Country:ChinaCandidate:P ZhuangFull Text:PDF
GTID:2348330503981936Subject:Software engineering
Abstract/Summary:PDF Full Text Request
Internet application influences all aspects of our lives,in which APP, web site and cloud service all have the powerful server-side processing capacity. In recent years, rapid development and mature ability of cloud computing services, have push the service's ability of coordination and computing to the limit. The current great Internet application works well in need of coordinated operation of distributed services and hundreds of cluster with high availability and high reliability. Meanwhile, a mature application contains a variety of business, architecture framework and the underlying support. In the distributed environment, a system may depend on a variety of systems and may be depended by other systems, it greatly affects the system maintenance and extension. Therefore, complex dependencies and high coupling of distributed architecture are becoming the urgent problem to be solved.In this study, a distributed middleware based on ZooKeeper and using common Java interfaces as micro service carrier were designed and implemented by reference to the existing framework of services, such as alipay's sofa and deeply studies distributed service implementation and governance in micro service architecture. In general, distributed service contains two basic elements: the service provider and service user. However, in the trial of the existing distributed applications, it is necessary to consider the third element namely Service coordination center in order to accommodate the micro service architecture model and avoid configuring complex service dependencies in large-scale cluster and hundreds of services.From the above, the main works are as follows: 1. Propose the concept of Interface as a Service in the micro service. 2. Propose a kind of Java method invoke based on dynamic class generated. 3. Design service coordination center based on ZooKeeper. 4. Implement remote interface invoke based on the simple communication protocol. 5. Propose a seamless integration with mainstream framework.This paper proposes the interface as a service within the micro service. And ituses dynamic class to directly invoke the Java method to replace the Java reflection invoke,In the high concurrency scenario, the performance increases more 8% to 10% compared to pure Java reflection invoke. Seamless integration with mainstream framework and design of the ZooKeeper registry center greatly improve the usability and ability of micro service's governance and fault tolerance. A good design communication protocol and thread model provide a more smooth ability to achieve the performance bottlenecks than native RMI which uses blocking thread model.
Keywords/Search Tags:Micro service, Service coordination center, ZooKeeper, Interface-as-a-Service, Middleware technology
PDF Full Text Request
Related items