IP Library Granted Patent US 12,200,082
Granted Patent B2
US 12,200,082 · App. 17/941,878 · Granted Jan 14, 2025

Microservice call method and apparatus, device, and medium

Inventors: Yu Jiang (Beijing, CN); Hongwei Sun (Beijing, CN); Keyong Sun (Gui'an, CN); Xiaoming Bao (Beijing, CN)
Assignee: Huawei Cloud Computing Technologies Co., Ltd.
H04L67/60
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 12,200,082
App. No.
17/941,878
Granted
Jan 14, 2025
Kind
B2
Abstract

A microservice call method is provided. The method includes: a network interface card receives service call requests separately generated by a plurality of first services deployed on a first device, where each of the plurality of first services is corresponding to one second service, and the second service is used to process first data of a service call request generated by the first service corresponding to the second service; and the network interface card sends the service call request to the second service based on service governance logic related to the first data. In this way, a problem that contention of a plurality of proxies for a system resource causes process context switching and further causes a sharp increase in a service delay is resolved, and application performance is improved.

Claims (56)

1. A microservice call method, comprising:

receiving, by a network interface card, service call requests separately generated by a plurality of first services deployed on a first device, wherein each of the plurality of first services corresponds to one second service, and the second service is used to process first data of a service call request generated by the first service corresponding to the second service; and

sending, by the network interface card, the service call request to the second service based on service governance logic related to the first data.

2. The method according to claim 1 , wherein the sending, by the network interface card, the service call request to the second service based on service governance logic related to the first data comprises:

determining, by the network interface card based on the service governance logic related to the first data, an address of a second device providing the second service; and

sending, by the network interface card, the service call request to the second service based on the address of the second device.

3. The method according to claim 1 , further comprising:

sending, by the network interface card, a traffic check request to a governance center, wherein the traffic check request is used to perform traffic check for N service call requests and N is a positive integer;

receiving, by the network interface card, a traffic check result sent by the governance center; and

sending, by the network interface card, the service call request to the second service in response to the traffic check result indicating that the traffic check succeeds.

4. The method according to claim 1 , further comprising:

receiving, by the network interface card, a service call response sent by the second service, wherein the service call response comprises second data obtained by processing the first data by the second service;

generating, by the network interface card, a service call log based on at least one of the service call request and the service call response; and

sending, by the network interface card, the service call log to a data collection center in batches.

5. The method according to claim 1 , further comprising:

subscribing, by the network interface card, to a change message for a service provider list to determine, from a changed service provider list, the address of the second device providing the second service.

6. The method according to claim 1 , further comprising:

subscribing, by the network interface card, to a change message for a service governance rule; and

running, by the network interface card, the service governance logic for the first data according to a changed service governance rule.

7. The method according to claim 1 , wherein the network interface card is a smart network interface card.

8. A microservice call method, comprising:

receiving, by a network interface card, service call requests sent by a plurality of first services, wherein each of the plurality of first services corresponds to one second service, and the second service is used to process first data of a service call request generated by the first service corresponding to the second service;

sending, by the network interface card, the service call request to the second service;

receiving, by the network interface card, a service call response sent by the second service, wherein the service call response comprises second data obtained by processing the first data by the second service; and

sending, by the network interface card, the service call response to the first service corresponding to the second service.

9. The method according to claim 8 , further comprising:

generating, by the network interface card, a service call log based on at least one of the service call request and the service call response; and

sending, by the network interface card, the service call log to a data collection center in batches.

10. The method according to claim 8 , wherein the network interface card is a smart network interface card.

11. A network interface card, wherein the network interface card comprises a processor and a memory, wherein the processor is configured to execute instructions stored in the memory to enable the network interface card to:

receive service call requests separately generated by a plurality of first services deployed on a first device, wherein each of the plurality of first services corresponds to one second service, and the second service is used to process first data of a service call request generated by the first service corresponding to the second service; and

send the service call request to the second service based on service governance logic related to the first data.

12. The network interface card according to claim 11 , wherein the processor is further configured to execute instructions stored in the memory to enable the network interface card to:

determine, based on the service governance logic related to the first data, an address of a second device providing the second service; and

send the service call request to the second service based on the address of the second device.

13. The network interface card according to claim 11 , wherein the processor is further configured to execute instructions stored in the memory to enable the network interface card to:

send a traffic check request to a governance center, wherein the traffic check request is used to perform traffic check for N service call requests, and N is a positive integer;

receive a traffic check result sent by the governance center; and

send the service call request to the second service in response to the traffic check result indicating that the traffic check succeeds.

14. The network interface card according to claim 11 , the processor is further configured to execute instructions stored in the memory to enable the network interface card to:

receive a service call response sent by the second service, wherein the service call response comprises second data obtained by processing the first data by the second service;

generate a service call log based on at least one of the service call request and the service call response; and

send the service call log to a data collection center in batches.

15. The network interface card according to claim 11 , wherein the processor is further configured to execute instructions stored in the memory to enable the network interface card to:

subscribe to a change message for a service provider list to determine, from a changed service provider list, the address of the second device providing the second service.

16. The network interface card according to claim 11 , the processor is further configured to execute instructions stored in the memory to enable the network interface card to:

subscribe to a change message for a service governance rule; and

run the service governance logic for the first data according to a changed service governance rule.

17. A network interface card, wherein the network interface card comprises a processor and a memory, and wherein the processor is configured to execute instructions stored in the memory to enable the network interface card to:

receive service call requests sent by a plurality of first services, wherein each of the plurality of first services corresponds to one second service, and the second service is used to process first data of a service call request generated by the first service corresponding to the second service;

send the service call request to the second service;

receive a service call response sent by the second service, wherein the service call response comprises second data obtained by processing the first data by the second service; and

send the service call response to the first service corresponding to the second service.

18. The network interface card according to claim 17 , wherein the processor is further configured to execute instructions stored in the memory to enable the network interface card to:

generate a service call log based on at least one of the service call request and the service call response; and

send the service call log to a data collection center in batches.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Dec 9, 2024
From: JIANG, YU; SUN, HONGWEI; SUN, KEYONG; BAO, XIAOMING
To: HUAWEI CLOUD COMPUTING TECHNOLOGIES CO., LTD.
Reel/Frame 069526/0462 →
Priority Claims (2)
CN 202010168547.8 · Mar 12, 2020 · national
CN 202010212312.4 · Mar 24, 2020 · national
Continuity (2)
Continuation PCTCN2021074540 · Jan 30, 2021
Related Publication 20230046979A1 · Feb 16, 2023
References Cited (12)
US 20170230349A1 · Gaur et al. · 2017 [cited by applicant]
US 20190197148A1 · Engstrand et al. · 2019 [cited by applicant]
US 20220109741A1 · Chen et al. · 2022 [cited by applicant]
CN 106453288A · 2017 [cited by applicant]
CN 107766205A · 2018 [cited by examiner]
CN 108306917A · 2018 [cited by applicant]
CN 109688191A · 2019 [cited by applicant]
CN 109995713A · 2019 [cited by examiner]
CN 110401696A · 2019 [cited by applicant]
CN 110430065A · 2019 [cited by applicant]
CN 112055039A · 2020 [cited by examiner]
Xia Zhuang, “Api Gateway Architecture Design Example,” Information system engineering, Exchange of Experience, Total 3 pages (May 20, 2018). With an English abstract. [cited by applicant]