alphacomm / alpharpc

AlphaRPC is an RPC daemon based on ZeroMQ that can be used to distribute workload over one or multiple servers.
alpharpc.net
BSD 3-Clause "New" or "Revised" License
2 stars 5 forks source link

Instantly send result to client #30

Closed jacobkiers closed 10 years ago

jacobkiers commented 10 years ago

Depends on #29.

This PR makes sure that as soon as the Client sends an ExecuteRequest, the ClientHandler will respond with a FetchResponse if the result is already known.

It improves the efficiency a bit, because it saves the Client a round trip if the result is known. On the other hand, it sightly changes the contract between Client and ClientHandler.

Since the protocol is never offically documented, and AlphaRPC does not (yet) have a policy of supporting third-pary clients, I think it is okay to merge it though.