IP Library › Granted Patent US 12,222,851
Granted Patent B2
US 12,222,851 · App. 18/314,977 · Granted Feb 11, 2025

Selectively capturing traffic in service mesh

Inventors: Yue Wang (Beijing, CN); Xinpeng Liu (Austin, TX); Wei Wu (Beijing, CN); Peng Hui Jiang (Beijing, CN); Xiao Ling Chen (Beijing, CN)
Assignee: INTERNATIONAL BUSINESS MACHINES CORPORATION
G06F11/3688G06F11/3692
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,222,851
App. No.
18/314,977
Granted
Feb 11, 2025
Kind
B2
Abstract

A computer-implemented method for a service mesh to simulate and address a situation in which there are several transactions among services with an asynchronous relationship between the services is provided. The computer-implemented method includes identifying that the situation occurs with a response provided to a user upon a user invocation of one of the services, analyzing the situation to determine that the asynchronous relationship between the services caused an error in at least one of the several transactions, recording data of a next user invocation of the one of the services, modifying the data of the next user invocation of the one of the services to correct the error and to thereby generate modified data, simulating an execution of the next user invocation of the service using the modified data and confirming that the modified data corrects the error based on results of the simulating.

Claims (60)

1. A computer-implemented method for a service mesh to simulate and address a situation in which there are several transactions among services with an asynchronous relationship between the services, the computer-implemented method comprising:

identifying that the situation occurs with a response provided to a user upon a user invocation of one of the services;

analyzing the situation to determine that the asynchronous relationship between the services caused an error in at least one of the several transactions;

recording data of a next user invocation of the one of the services;

modifying the data of the next user invocation of the one of the services to correct the error and to thereby generate modified data;

simulating an execution of the next user invocation of the service using the modified data; and

confirming that the modified data corrects the error based on results of the simulating of the execution of the next user invocation of the service.

2. The computer-implemented method according to claim 1 , wherein the one of the services comprises an electronic product order form.

3. The computer-implemented method according to claim 2 , wherein the situation comprises the electronic product order form using a product catalog querier to obtain a product catalog from a catalog database prior to the product catalog being stored in the catalog database.

4. The computer-implemented method according to claim 1 , wherein the recording of the data comprises:

updating a sampling rate of the data; and

adding a new header to a request of the next user invocation of the service.

5. The computer-implemented method according to claim 4 , wherein the updating of the sampling rate of the data comprises setting the sampling rate at 100% and the new header comprises a tracing instruction.

6. The computer-implemented method according to claim 1 , wherein the modifying of the data comprises changing a data timestamp.

7. A computer-implemented method for operating a service mesh to simulate and address a situation in which there are several transactions among services with an asynchronous relationship between the services,

wherein one of the services comprises an electronic product order form and the situation comprises an error caused by the electronic product order form using a product catalog querier to obtain a product catalog from a catalog database prior to the product catalog being stored in the catalog database,

the computer-implemented method comprising:

identifying a solution for the situation in a production environment; and

simulating the solution in a simulator environment to confirm that the solution is corrective,

wherein the solution comprises modifying data of a next user invocation of the one of the services to correct the error and to thereby generate modified data for use in the simulating of the solution and using the modified data in the simulating of the solution.

8. A computer program product for a service mesh to simulate and address a situation in which there are several transactions among services with an asynchronous relationship between the services, the computer program product comprising one or more computer readable storage media having computer readable program code collectively stored on the one or more computer readable storage media, the computer readable program code being executed by a processor of a computer system to cause the computer system to perform a method comprising:

identifying that the situation occurs with a response provided to a user upon a user invocation of one of the services;

analyzing the situation to determine that the asynchronous relationship between the services caused an error in at least one of the several transactions;

recording data of a next user invocation of the one of the services;

modifying the data of the next user invocation of the one of the services to correct the error and to thereby generate modified data;

simulating an execution of the next user invocation of the service using the modified data; and

confirming that the modified data corrects the error based on results of the simulating of the execution of the next user invocation of the service.

9. The computer program product according to claim 8 , wherein the one of the services comprises an electronic product order form.

10. The computer program product according to claim 9 , wherein the situation comprises the electronic product order form using a product catalog querier to obtain a product catalog from a catalog database prior to the product catalog being stored in the catalog database.

11. The computer program product according to claim 8 , wherein the recording of the data comprises:

updating a sampling rate of the data; and

adding a new header to a request of the next user invocation of the service.

12. The computer program product according to claim 11 , wherein the updating of the sampling rate of the data comprises setting the sampling rate at 100% and the new header comprises a tracing instruction.

13. The computer program product according to claim 8 , wherein the modifying of the data comprises changing a data timestamp.

14. A computing system comprising:

a processor;

a memory coupled to the processor; and

one or more computer readable storage media coupled to the processor, the one or more computer readable storage media collectively containing instructions that are executed by the processor via the memory to implement a method for a service mesh to simulate and address a situation in which there are several transactions among services with an asynchronous relationship between the services comprising:

identifying that the situation occurs with a response provided to a user upon a user invocation of one of the services;

analyzing the situation to determine that the asynchronous relationship between the services caused an error in at least one of the several transactions;

recording data of a next user invocation of the one of the services;

modifying the data of the next user invocation of the one of the services to correct the error and to thereby generate modified data;

simulating an execution of the next user invocation of the service using the modified data; and

confirming that the modified data corrects the error based on results of the simulating of the execution of the next user invocation of the service.

15. The computing system according to claim 14 , wherein the one of the services comprises an electronic product order form.

16. The computing system according to claim 15 , wherein the situation comprises the electronic product order form using a product catalog querier to obtain a product catalog from a catalog database prior to the product catalog being stored in the catalog database.

17. The computing system according to claim 14 , wherein the recording of the data comprises:

updating a sampling rate of the data; and

adding a new header to a request of the next user invocation of the service.

18. The computing system according to claim 17 , wherein the updating of the sampling rate of the data comprises setting the sampling rate at 100% and the new header comprises a tracing instruction.

19. The computer system according to claim 14 , wherein the modifying of the data comprises changing a data timestamp.

20. A computing system comprising:

a processor;

a memory coupled to the processor; and

one or more computer readable storage media coupled to the processor, the one or more computer readable storage media collectively containing instructions that are executed by the processor via the memory to implement a method for a service mesh to simulate and address a situation in which there are several transactions among services with an asynchronous relationship between the services,

wherein one of the services comprises an electronic product order form and the situation comprises an error caused by the electronic product order form using a product catalog querier to obtain a product catalog from a catalog database prior to the product catalog being stored in the catalog database,

the method comprising:

identifying a solution for the situation in a first environment; and

simulating the solution in a second environment to confirm that the solution is corrective,

wherein the solution comprises modifying data of a next user invocation of the one of the services to correct the error and to thereby generate modified data for use in the simulating of the solution and using the modified data in the simulating of the solution.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded May 10, 2023
From: WANG, YUE; LIU, XINPENG; WU, WEI; JIANG, PENG HUI; CHEN, XIAO LING
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 063594/0975 →
Continuity (1)
Related Publication 20240378140A1 · Nov 14, 2024
References Cited (13)
US 9965378B1 · Weiner · 2018 [cited by examiner]
US 20170332544A1 · Conrad · 2017 [cited by examiner]
US 20200112487A1 · Inamdar et al. · 2020 [cited by applicant]
US 20210081271A1 · Doshi et al. · 2021 [cited by applicant]
US 20210184945A1 · Ranjit et al. · 2021 [cited by applicant]
US 20210216406A1 · Silverstein · 2021 [cited by examiner]
US 20210326196A1 · Moss · 2021 [cited by examiner]
US 20220224637A1 · S et al. · 2022 [cited by applicant]
US 20220308990A1 · DeLuca · 2022 [cited by examiner]
Anonymous, “IBM to Acquire Green Hat,” Database Trends and Applications, Jan. 4, 2012, 3 pages. [cited by applicant]
Anonymous, “Kiali—The Console for Istio Service Mesh,” URL: https://kiali.io/, Received: Feb. 1, 2023, 3 pages. [cited by applicant]
Anonymous, “Kiali—Tracing,” URL: https://kiali.io/docs/features/tracing/, Received: Feb. 1, 2023, 3 pages. [cited by applicant]
Anonymous, “Rational Integration Tester (IBM Green Hat),” URL: https://www.automation-consultants.com/rational-integration-tester-ibm-green-hat/, Retrieved: Feb. 1, 2023, 5 pages. [cited by applicant]