Service call method and device based on service mesh, equipment and storage medium
By using the sidecar component to record routing rules in the service mesh, the problem of inconsistent namespaces after service migration in the Kubernetes cluster is solved, enabling cross-namespace service calls and reducing code invasiveness and migration complexity.
CN116455959BActive Publication Date: 2025-12-16HANGZHOU LONGBU TECH CO LTD
Patent Information
- Application Number
- CN202310191113.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-02-24
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2043-02-24
AI Technical Summary
Technical Problem
In Kubernetes clusters, when services are migrated to service meshes, service calls under multiple namespaces suffer from inconsistent namespace systems, and existing technical solutions are complex and highly intrusive.
Method used
By using a sidecar component in the service mesh to record the routing rules of each service, and obtaining the routing rules of the called service based on the service call request, cross-namespace service calls can be achieved, reducing the amount of code modification.
Benefits of technology
Implementing service calls in a multi-namespace environment reduces code invasiveness, simplifies the migration process, and improves the ease and accuracy of operation.
✦ Generated by Eureka AI based on patent content.
Smart Images

Figure CN116455959B_ABST
Abstract
The application relates to a service call method and device based on a service grid, computer equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: receiving a service call request sent by a first service; the first service is deployed in a first namespace in a plurality of namespaces; the service call request is used for calling a second service, and the second service is deployed in a second namespace in the plurality of namespaces; based on the service call request, a routing rule of the second service is acquired through a sidecar component of the first service; the routing rule corresponding to each service is recorded in the sidecar component; the routing rule is used for indicating the routing of the namespace where the service is located; and the second service is called based on the routing rule of the second service through the sidecar component of the first service. Through the above method, the calling between services in the plurality of namespaces is realized, meanwhile, under the plurality of namespaces, the called service does not need to know the namespace where the called service is located, and the code invasiveness is reduced.
Need to check novelty before this filing date? Find Prior Art
Citation Information
Patent Citations
Micro-service calling method and device, electronic equipment and storage medium
CN113220484A