Imagine a sales mechanism for perishable goods. Each item has an expiration date. The search index will index all products for sale, but will be very interested in those available for counting purchases, as well as when all items have expired.
To cope with the expiration dates in the search engine, I could:
Interrogate the data warehouse on the interval and ask the system about the items that have expired since the last time you viewed and created the update event in the search engine. The search engine can query the data store for the current number of items available and update the index accordingly.
Somehow to plan an expiration event when an item was added to the sales collection, and the processor simply processes the event queue.
Ideas? I like the idea of planning future events, but I don’t know the technologies that will help me delay the delivery of events until a certain time. Perhaps MS Service Bus can do this with LockedUntilUtc? There must be a pattern that people use for this type of thing, and I just don't know what to look for.
source
share