Capturing and re-creating the state of a queue when migrating a session
First Claim
1. A machine-implemented method, comprising:
- while a first session is established for a client on a first server, receiving a request to migrate the first session established on the first server from the first server to a second server;
wherein the first session comprises queuing state information that describes, with respect to the first session, the ordering of messages in a queue of messages;
migrating the queuing state information to the second server;
establishing a second session for the client on the second server;
wherein the second session includes the queuing state information migrated to the second server; and
wherein the queuing state information migrated to the second server describes, with respect to the second session, the same ordering of messages in the queue of messages that was described by the queuing state information included in the first session.
1 Assignment
0 Petitions
Accused Products
Abstract
A method and apparatus for migrating the session state of an original session from a first node to a second node, such that a process, executing in the migrated session, may enqueue and dequeue messages from a queue of messages and experience the same behavior from the queue of messages as if the process was enqueuing and dequeuing messages in the original session. Advantageously, all the benefits of migrating a session from one node to another node may be realized, even when the session contains queuing state information that describes the state of a queue of messages. Data that indicates how many messages one or more subscribers have removed from the queue of messages may also be stored to preserve proper behavior of the queue of messages for multiple subscribers when sessions are migrated.
132 Citations
20 Claims
-
1. A machine-implemented method, comprising:
-
while a first session is established for a client on a first server, receiving a request to migrate the first session established on the first server from the first server to a second server; wherein the first session comprises queuing state information that describes, with respect to the first session, the ordering of messages in a queue of messages; migrating the queuing state information to the second server; establishing a second session for the client on the second server; wherein the second session includes the queuing state information migrated to the second server; and wherein the queuing state information migrated to the second server describes, with respect to the second session, the same ordering of messages in the queue of messages that was described by the queuing state information included in the first session. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10)
-
-
11. A machine-readable storage medium storing one or more sequences of instructions, wherein execution of the one or more sequences of instructions by one or more processors causes the one or more processors to perform the steps of:
-
while a first session is established for a client on a first server, receiving a request to migrate the first session established on the first server from the first server to a second server; wherein the first session comprises queuing state information that describes, with respect to the first session, the ordering of messages in a queue of messages; migrating the queuing state information to the second server; establishing a second session for the client on the second server; wherein the second session includes the queuing state information migrated to the second server; and wherein the queuing state information migrated to the second server describes, with respect to the second session, the same ordering of messages in the queue of messages that was described by the queuing state information included in the first session. - View Dependent Claims (12, 13, 14, 15, 16, 17, 18, 19, 20)
-
Specification