Basically, within an Azure Service Bus, I have a topic and a subscription.
If a message arrives in the topic between 11:00AM, my subscriber should not handle it yet. However, at 14:00PM, I would expect my subscriber to treat it.
Is there a way to achieve this natively with Topic filters?
I don't find any mention of this kind of use case in the official documentation regarding filters.
Indeed, all presented samples are about:
"subscriber handling this kind of message, or never".
I'm looking for:
"subscriber expecting handling this kind of message but, but later at a specific time".
I was able to get it to work using this:
Sounds like you want to defer a message ?
Don't know much about the Azure SDK for Node.js but from the MSDN Documentation you can set a
ScheduledEnqueueTimeUtc
on the message :Only sample to send a message to a Queue is :
From the nodejs sdk, I found a constants.js file that defines these properties :
If you have a look at the servicebusservice.js, there is a
setRequestHeaders
function that takes some properties of the message and set it as header.So I guess you can set this property on the message like that :
Let me know if it works :-)