Patent ID: 8869169

Claim:
A computer-implemented method comprising: receiving, by a first instance of an application, an indication that the first instance has exclusive access to a global memory area that includes an in-memory message queue and stores context data of the application; in response to receiving the indication that the first instance has exclusive access to the global memory area, the first instance of the application: processes one or more messages stored in the in-memory message queue of the global memory area; stores, in a local memory area associated with the first instance, a result of processing the one or more messages; modifies, as a result of processing the one or more messages, the context data of the application stored in the global memory area; and stores, in the local memory associated with the first instance, the modified context data of the application; receiving, by the first instance of the application, an indication that the first instance has exclusive access to a global database; in response to receiving the indication that the first instance has exclusive access to the global database, the first instance of the application: releases the exclusive access to the global memory area; and copies the result of processing the one or more messages, which were stored in the in-memory message queue of the global memory area, and the modified context data of the application, which was stored in the global memory area, from the local memory area that is associated with the first instance to the global database; in response to the release of the exclusive access to the global memory area by the first instance of the application, receiving, by a second instance of the application, an indication that the second instance has exclusive access to the global memory area that includes the in-memory message queue and stores the context data of the application; and in response to receiving the indication that the second instance has exclusive access to the global memory area and substantially in parallel with the first instance having exclusive access to the global database, the second instance of the application: processes one or more messages stored in the in-memory message queue of the global memory area; stores, in a local memory area associated with the second instance, a result of processing the one or more messages; modifies, as a result of processing the one or more messages, the context data of the application stored in the global memory area; and stores, in the local memory associated with the second instance, the modified context data of the application.