Automated translation of service invocations for batch processing
First Claim
1. A computer-implemented method of invoking services of a service host the method comprising:
- upon receiving a first logic comprising a language integrated query and at least two service invocations specified in a first language that does not support a batching of service invocations;
translating respective service invocations in the first language into translated service invocations specified in a second language that supports the batching of service invocations and translating the language integrated query into an expression tree specified in the second language,wherein the expression tree comprises at least one lambda expression generated from the first logic;
generating a batch logic specified in the second language and comprising the at least two service invocations of the service; and
sending the batch logic to the service host.
2 Assignments
0 Petitions
Accused Products
Abstract
The utilization of data services (such as web services) may involve the invocation of services, which may reduce performance and overburden the server. In some scenarios, the invocation may be specified in a language that does not support batch invocation, but it may not be feasible to re-code the invocations in a language that supports batching. Instead, the service invocations may be automatically translated into a batch logic specified in a batch-capable language and sent to the service as a batch. For example, a local proxy may receive a language-integrated query having two or more service invocations, compile the query into an expression tree including the two or more invocations, and send the expression tree to the service host to achieve the batch processing of the service invocations.
-
Citations
14 Claims
-
1. A computer-implemented method of invoking services of a service host the method comprising:
-
upon receiving a first logic comprising a language integrated query and at least two service invocations specified in a first language that does not support a batching of service invocations; translating respective service invocations in the first language into translated service invocations specified in a second language that supports the batching of service invocations and translating the language integrated query into an expression tree specified in the second language, wherein the expression tree comprises at least one lambda expression generated from the first logic; generating a batch logic specified in the second language and comprising the at least two service invocations of the service; and sending the batch logic to the service host. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A computer-readable storage medium comprising instructions that, when executed on a processor of a device, cause the device to invoke services of a service host by:
-
upon receiving a first logic comprising a language integrated query and at least two service invocations specified in a first language that does not support a batching of service invocations; translating respective service invocations in the first language into translated service invocations specified in a second language that supports the batching of service invocations and translating the language integrated query into an expression tree specified in the second language, wherein the expression tree comprises at least one lambda expression generated from the first logic; generating a batch logic specified in the second language and comprising the at least two service invocations of the service; and sending the batch logic to the service host. - View Dependent Claims (12, 13, 14)
-
Specification