Sending large message to eventhub

Bina Trivedi 6 Reputation points
2022-10-27T09:46:59.543+00:00

Hii,
I am trying to send a message of size 2 Mb to the event hub using the spring boot application.
but it gives a "PayloadSizeExceededException" exception error, as the event hub can accept just a 1Mb size message.
is there any way to increase the size of the event hub, to accept more than 1 MB size message?

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
556 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. rafalzak 3,216 Reputation points
    2022-10-27T10:05:43.627+00:00

    Hi @Bina Trivedi ,

    Welcome on Microsoft Q&A.

    It's not possible to increase the message size to more than 1MB.
    Please find detailed info about Event Hub Quotas below:
    https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-quotas