×

Selective message republishing to subscriber subsets in a publish-subscribe model

  • US 9,654,433 B2
  • Filed: 04/17/2015
  • Issued: 05/16/2017
  • Est. Priority Date: 09/23/2014
  • Status: Expired due to Fees
First Claim
Patent Images

1. A method for selectively resending a message in a publish-subscribe message distribution model, the method comprising:

  • receiving the message;

    determining that at least one subscriber within a plurality of subscribers is a non-durable subscriber;

    generating a dynamic unique ID for the non-durable subscriber, wherein the generated dynamic unique ID is valid for a lifecycle associated with the non-durable subscriber;

    generating a message ID for the received message, wherein the generated message ID is assigned to the received message;

    sending the received message to the plurality of subscribers;

    receiving a rolled back message from a subscriber within the plurality of subscribers;

    incrementing a redelivery counter associated with the received rolled back message;

    resending the rolled back message to the subscriber based on determining the redelivery counter does not exceed a count limit;

    enqueuing the received rolled back message in a data structure based on determining the redelivery counter exceeds the count limit and based on determining that no message enqueued in the data structure has an ID matching the message ID of the received rolled back message;

    creating a republish list associated with the enqueued rolled back message in response to enqueuing the enqueued rolled back message;

    adding a subscriber ID associated with the subscriber to the republish list based on determining the redelivery counter exceeds the count limit;

    determining that the enqueued rolled back message should be resent;

    retrieving the republish list associated with the rolled back message based on determining that the enqueued rolled back message should be resent;

    determining when a subscriber ID matches a subscriber ID in the retrieved republish list;

    creating a message copy based on the rolled back message for a subscriber associated with the subscriber ID in the retrieved republish list;

    sending the created message copy to the subscriber associated with the subscriber ID;

    removing the subscriber ID from the retrieved republish list; and

    dequeuing the rolled back message from the data structure based on determining that there are no remaining subscriber IDs in the retrieved republish list.

View all claims
  • 1 Assignment
Timeline View
Assignment View
    ×
    ×