Skip to content

Commit dc9029b

Browse files
Merge pull request #269572 from EldertGrootenboer/patch-3
Update message-sequencing for cancelling scheduled messages
2 parents 024222b + 7f7b626 commit dc9029b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

articles/service-bus-messaging/message-sequencing.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,9 @@ Because the feature is anchored on individual messages and messages can only be
5050
> [!NOTE]
5151
> Message enqueuing time doesn't mean that the message will be sent at the same time. It will get enqueued, but the actual sending time depends on the queue's workload and its state.
5252
53+
> [!NOTE]
54+
> Due to performance considerations, the activation and cancellation of scheduled messages are independent operations without mutual locking. If a message is in the process of being activated and is simultaneously cancelled, the activation process will not be reversed and the message will still be activated. Moreover, this can potentially lead to a negative count of scheduled messages. To minimize this race condition, it is recommended to avoid scheduling activation and cancellation operations in close succession.
55+
5356
### Using scheduled messages with workflows
5457

5558
It is common to see longer-running business workflows that have an explicit time component to them, like 5-minute timeouts for 2-factor authentication, hour-long timeouts for users confirming their email address, and multi-day, week, or month long time components in domains like banking and insurance.

0 commit comments

Comments
 (0)