How can we send message size larger than 1MB to EventHub

Shaik Rubina Sultana 0 Reputation points
2023-08-10T12:54:41.05+00:00

I encountered an error while attempting to send a message larger than 1MB to Event Hub. The error message received was: "The message (id: 99xxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxx7c, size: 11400086 bytes) exceeds the current allowable limit (1048576 bytes)." How can I successfully transmit a message larger than 1MB to Event Hub as a single event?

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
710 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Thiago Custodio 196 Reputation points
    2023-08-10T13:02:07.4233333+00:00

    At this moment, 1MB is the max size length. You can get more information about it in the official doc:

    https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-quotas

    1 person found this answer helpful.

  2. Sander van de Velde | MVP 36,131 Reputation points MVP
    2023-08-10T18:46:36.0666667+00:00

    Hello @Shaik Rubina Sultana ,

    as seen in the documentation 1MB is the maximum size, for all tiers:

    User's image

    This is a hard limit.

    You could split up the message into different parts of 1 MB, you could use another storage solution (eg. Azure Blob storage) to store the content of your message and only send a notification to the receiver where the data can be picked up, or you move over to Azure Service bus which supports larger messages:

    Service Bus messaging services (queues and topics/subscriptions) allow application to send messages of size up to 256 KB (standard tier) or 100 MB (premium tier).

    Moving over to EventGrid is not an option, it has the same message size limit.


    If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.

    0 comments No comments

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.