Reputation: 22926
I'm creating mssages using the nodejs client like so:
await sbClient
.createQueueClient('event')
.createSender()
.send({
scheduledEnqueueTimeUtc: date,
body: eventDetails
});
which is great and works, however the problem then becomes if I wanted to change the event details and the date how would I go about updating the message details?
My best guess is to make 'body' actually point to an event id of some sort that can be resolved, and if the vents date doesn't atch the scheduled enqueuetieutc date at time of excution it won't be acted on.
Upvotes: 1
Views: 429
Reputation: 7686
There is no ability to update a Service Bus Message. When you schedule the message, you will receive back a sequence number. You can then use the sequence number to cancel the message, and re-schedule a new message.
Upvotes: 1
Reputation: 1
My understanding is that if the message in SB queue is not "deleted" if you make a peek-lock. However any other type of recieving message will also delete the message in queue.
Also you cannot change the details (update message attributes / content) once its in the queue.
Upvotes: 0