主权项 |
1. A method for managing at least a master copy of a non-transitory machine readable data file in a database according to a publication subscription system model, the method comprising:
saving the machine readable data file corresponding to a first message in the database as the master copy of the machine readable data file; receiving a list of subscribers that subscribe to a topic of the first message; generating consumption metadata includes data indicating whether each subscriber of the list of subscribers is has, or is likely to want to, consume the first message; responsive to adding a new subscriber to the list of subscribers, revising the consumption metadata to include data indicating whether the new subscriber has, or is likely to want to, consume the first message; responsive to a determination that an inactive subscriber has become inactive, revising the consumption metadata to remove data relating to the inactive subscriber; on condition that the consumption data indicates that at least one subscriber has not, and is not likely to, consume the first message, duplicating the first message; and on condition of a determination that all subscribers have consumed the first message, deleting the master copy of the machine readable data file in the database; wherein the consumption metadata includes a binary bit to respectively indicate consumption status for each subscriber of the plurality of subscribers. |