Patent ID: 8875135

Claim:
A method comprising: receiving, at a network device that is coupled to a plurality of servers, a service request from a client device, wherein the service request includes multiple GET requests; assigning, by the network device, the multiple GET requests for pipelined handling by the plurality of servers; performing, by the network device, multiple security inspections corresponding to the service request; dividing, by the network device and using a script located at the network device, the service request into component operations; identifying, by the network device and using the script, a relationship among the component operations in the service request; determining, by the network device, status of individual servers in the plurality of servers; based on identifying the relationship among the component operations and upon determining the status of individual servers in the plurality of servers, assigning, by the network device, a first component operation of the service request separately to a first server and a second server from the plurality of servers, wherein a configuration of the first server is independent of a configuration of the second server; assigning, by the network device, a second component operation of the service request to a third server in the plurality of servers, wherein the second component operation is executed in serial to execution of the first component operation such that a result of the first component operation is used as an input for the second component operation; assigning, by the network device, a third component operation of the service request to a fourth server in the plurality of servers, wherein the third component operation is executed in parallel to execution of the first and second component operations such that a result of the third component operation is independent of results of the first and second component operations; obtaining, by the network device, data separately from the first and second servers in response to the first component operation, wherein the data is obtained from one of the first or second servers earlier than from the other of the first or second servers; sending, by the network device, the data that is obtained earlier from the first and second servers to the third server such that the second component operation on the third server can be completed while discarding the data that is obtained later from the first and second servers; obtaining, by the network device, a first result from the third server in response to the second component operation and a second result from the fourth server in response to the third component operation; generating, by the network device, a response to the service request using the first and second results; and sending, by the network device, the response to the service request to the client device.