Email delivery events takes long to be published

Muriuki, Levi M 251 Reputation points
2023-06-22T19:43:32.9233333+00:00

I'm noticing an interesting behavior with Azure Communication Services Event Grid. The SMS events get published super fast, but the email events take a while (several minutes) to get published, even though the email is delivered quite fast. Any ideas?

User's image

Azure Communication Services
Azure Communication Services
An Azure communication platform for deploying applications across devices and platforms.
708 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
322 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 22,841 Reputation points Microsoft Employee
    2023-06-26T19:36:28.51+00:00

    Based on my understanding of your scenario, Azure Communication Services (ACS) emits the Microsoft.Communication.EmailDeliveryReportReceived event when a delivery report is received for an email sent by the Communication Service. The event is triggered when the delivery report is received, and the Event Grid service sends data about that event to subscribing endpoints. The delay in publishing the email delivery event could be due to the batching behavior of the Event Grid service.

    Event Grid operates with all-or-none semantics and doesn't support partial success of a batch delivery. As mentioned in the doc - Subscribers should be careful to only ask for as many events per batch as they can reasonably handle in 30 seconds. The batching policy settings aren't strict bounds on the batching behavior, and are respected on a best-effort basis. At low event rates, you'll often observe the batch size being less than the requested maximum events per batch<sup>.</sup>

    Kindly let me know, I'll follow-up with you further.

    Reference:

    Azure Communication Services - Email events
    Event Grid message delivery and retry