Determining cost of service call
First Claim
1. A non-transitory computer readable storage media including instructions to cause one or more processors to:
- receive, by a first service, a first service call comprising a first request for performance of a first computational task by the first service, the first computational task being associated with a first response, first service data, and first accumulated weight data;
transmit a second service call comprising a second request for performance of a second computational task by a second service, the second computational task being associated with a second response, second service data, and second accumulated weight data, wherein the first computational task is dependent on the second computational task;
receive, by the first service, the second response to the second service call, the second response comprising;
the second service data which comprises a result of the second computational task performed by the second service; and
the second accumulated weight data generated by the second service, wherein the second accumulated weight data indicates an accumulated amount of resources consumed to perform the second computational task;
perform, using the second service data, the first computational task by the first service to generate the first service data, the first service data comprising a result of the first computational task;
generate first weight data, the first weight data indicating a first amount of resources consumed to perform the first computational task;
generate, by the first service, the first accumulated weight data using the first weight data and the second accumulated weight data, the first accumulated weight data indicating an accumulated amount of resources consumed to perform the first computational task and the second computational task;
transmit the first response to the first service call, the first response comprising the first service data and the first accumulated weight data;
determine a cost associated with the first service call and the second service call based on the first accumulated weight data; and
optimize a service call pattern based on the cost.
1 Assignment
0 Petitions
Accused Products
Abstract
Computing platforms may enable clients to use services to perform data processing jobs. A given job may utilize several services in a service call pattern. Each of these services consumes resources during execution. Described herein are systems, devices and methods for determining costs associated with performance of a service call pattern. Weight data may be generated for each service using various metrics. As service calls are made in the service call pattern, an accumulated weight value is generated which is indicative of the weight data of the services in the service call pattern. The accumulated weight data may represent metrics such as amounts of resources consumed, latency, and transactions per second.
-
Citations
4 Claims
-
1. A non-transitory computer readable storage media including instructions to cause one or more processors to:
-
receive, by a first service, a first service call comprising a first request for performance of a first computational task by the first service, the first computational task being associated with a first response, first service data, and first accumulated weight data; transmit a second service call comprising a second request for performance of a second computational task by a second service, the second computational task being associated with a second response, second service data, and second accumulated weight data, wherein the first computational task is dependent on the second computational task; receive, by the first service, the second response to the second service call, the second response comprising; the second service data which comprises a result of the second computational task performed by the second service; and the second accumulated weight data generated by the second service, wherein the second accumulated weight data indicates an accumulated amount of resources consumed to perform the second computational task; perform, using the second service data, the first computational task by the first service to generate the first service data, the first service data comprising a result of the first computational task; generate first weight data, the first weight data indicating a first amount of resources consumed to perform the first computational task; generate, by the first service, the first accumulated weight data using the first weight data and the second accumulated weight data, the first accumulated weight data indicating an accumulated amount of resources consumed to perform the first computational task and the second computational task; transmit the first response to the first service call, the first response comprising the first service data and the first accumulated weight data; determine a cost associated with the first service call and the second service call based on the first accumulated weight data; and optimize a service call pattern based on the cost. - View Dependent Claims (2, 3, 4)
-
Specification