Schedule messages not triggeeing at expected time

Manith singh 20 Reputation points
2025-06-12T20:12:46.6466667+00:00

Iam using azure service bus (Standard tier) with scheduled enqueuetimeUtc to send delayed messages. However, some messages are not processed exactly at the scheduled time and show noticeable delays. The azure.messaging.servicebus SDK in a .NET application with a service bus processor. Is there any known delay or throttling for scheduled messages in azure service bus? What are the best practices to ensure accurate scheduled message delivery ??

Azure Service Bus
Azure Service Bus
An Azure service that provides cloud messaging as a service and hybrid integration.
0 comments No comments
{count} votes

Accepted answer
  1. Ranashekar Guda 2,825 Reputation points Moderator
    2025-06-12T20:49:49.8666667+00:00

    Hello @Manith singh,
    Thank you for reaching out. Scheduled messages in Azure Service Bus using ScheduledEnqueueTimeUtc are designed to become available for processing at the specified time. It’s important to note that these messages might not always be processed exactly at the scheduled time due to several factors. Azure Service Bus tries to deliver messages as close to the scheduled time as possible, but delays can happen because of high load on the queue, network latency, or how the receiving application is performing. There is no specific throttling applied to scheduled messages, but message delivery can still be slightly delayed if the system is under heavy usage or if the message processor is busy.

    To reduce delays and improve the accuracy of scheduled message delivery, here are some best practices to follow:

    1. Optimize your message processor: Make sure your application is responsive and not blocked by long-running tasks. Use asynchronous message handling where possible.
    2. Avoid scheduling too many messages at once: If you’re scheduling a large number of messages, try to distribute them over time rather than enqueueing them all simultaneously.
    3. Keep the SDK updated: Use the latest version of the Azure.Messaging.ServiceBus SDK to benefit from performance improvements and bug fixes.
    4. Use idempotent processing: Design your message handler so that it can safely process the same message more than once, in case of retries or slight delays.
    5. Monitor and log processing times: Track when a message is scheduled and when it's actually processed. This helps identify and diagnose delay patterns.
    6. Sync your system clock: Ensure your application servers have accurate time settings using NTP (Network Time Protocol), as scheduling is based on UTC time.

    Kindly refer below links:
    Best Practices for performance improvements using Service Bus Messaging

    Scheduled messages

    https://stackoverflow.com/questions/71842283/azure-service-bus-scheduled-message-arriving-too-late

    Hope this helps. Do let us know if you any further queries.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.