A Study of Service Registration and Discovery Techniques in Microservice Architecture

The microservice architecture has become a key technology in the development of the Internet. It brings a revolutionary development to the software production relationship and effectively improves the scalability and stability of the system. However, as the system evolves and the microservice splitting granularity is wrefined, the scale of microservices explodes and problems such as extended service discovery time and high service maintenance costs arise. For these problems, this paper proposes a detection mesh scheme (DM) based on service mesh and service semantics, which is divided into two main parts: service registration and service discovery. In terms of the service registration, based on the idea of a service mesh, the microservice governance and microservice development are deeply decoupled. In terms of the service discovery, the local-remote algorithm is proposed by considering the path, semantics, and state of microservices. In addition, a hierarchical ontology model is builded to provide a solid foundation for service registration and service discovery. Through experimental verification, compared with the web service discovery based on the maximum weighted bipartite graphs scheme(WSDMWBG), the DM scheme improves 12.71% in first hit rate and 28.3% in total microservice call time, effectively reducing the service discovery latency.