Patent ID: 8898680

Claim:
A method comprising: providing a node in a distributed data grid having a plurality of nodes, wherein said node comprises a first message processing thread, and a service thread having an associated service queue; receiving an incoming message at said service thread; preprocessing the incoming message in said service thread and generating a continuation data structure, wherein said continuation data structure represents a control state of a computational process on said service thread which allows said computational process to resume execution at a later point in time on said first message processing thread; transmitting a request to process the incoming message from said service thread to said first message processing thread, wherein the request is transmitted with the continuation data structure; processing the incoming message in said first message processing thread using said continuation data structure; generating a return message in said first message processing thread; wrapping, via said first message processing thread, the continuation data structure in said return message; and sending said return message and said continuation data structure from said first message processing thread to said service queue.