Guaranteed exactly once delivery of messages
First Claim
1. A method for a sender to guarantee an exactly once delivery of a message to a receiver, the method comprising:
- associating an expiration time with the message;
associating an identifier with the message;
storing the message in association with the expiration time and with the identifier;
sending to the receiver the message in association with the expiration time and with the identifier; and
upon reaching the expiration time, if the message has not yet been deleted, then deleting the message along with the identifier and the expiration time associated with the message, the deleting being performed by a scavenger thread at the sender.
2 Assignments
0 Petitions
Accused Products
Abstract
Guaranteed, exactly once delivery of messages is disclosed. In one embodiment, there is a sender and a receiver. In a sender transaction, the sender does the following: receives a message from a sender queue; generates a substantially unique identifier and an expiration time for the message; and, saves the identifier, the expiration time, and the message in a sender database. The sender then sends the identifier, the expiration time, and the message to the receiver. In a receiver transaction, the receiver then does the following: receives the identifier, the expiration time, and the message from a receiver queue; determines whether the message has expired based on the expiration time and determines whether the message is present in a receiver database by its identifier; and, upon determining that the message has not expired and is not present in the receiver database, stores the message in the receiver database, and performs actions associated with the message.
176 Citations
3 Claims
-
1. A method for a sender to guarantee an exactly once delivery of a message to a receiver, the method comprising:
-
associating an expiration time with the message; associating an identifier with the message; storing the message in association with the expiration time and with the identifier; sending to the receiver the message in association with the expiration time and with the identifier; and upon reaching the expiration time, if the message has not yet been deleted, then deleting the message along with the identifier and the expiration time associated with the message, the deleting being performed by a scavenger thread at the sender. - View Dependent Claims (2)
-
-
3. A computer-readable medium having instructions for performing a method for a sender to guarantee an exactly once delivery of a message to a receiver, the method comprising:
-
associating an expiration time with the message; associating an identifier with the message; storing the message in association with the expiration time and with the identifier; sending to the receiver the message in association with the expiration time and with the identifier; and upon reaching the expiration time, if the message has not yet been deleted, then deleting the message along with the identifier and the expiration time associated with the message, the deleting being performed by a scavenger thread at the sender.
-
Specification