Azure / azure-functions-eventhubs-extension

Event Hubs extension for Azure Functions
MIT License
20 stars 26 forks source link

Increase max size of a message to 1MB. Fixes #24 #25

Closed alrod closed 5 years ago

paulbatum commented 5 years ago

It looks like its updated here: https://github.com/Azure/azure-event-hubs-dotnet/blob/dev/src/Microsoft.Azure.EventHubs/Amqp/AmqpEventDataSender.cs#L162

So maybe the code defaults to 256KB but then the service communicates that it can accept 1MB?

alrod commented 5 years ago

They updated docs: https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-quotas

https://github.com/MicrosoftDocs/azure-docs/commit/25c1cbf2fd3b419bddf963faeca860713cc02e36#diff-75da88adbc2a7044e08faa6dfc021644

The setting updated later in the code: https://github.com/Azure/azure-sdk-for-net/blob/3db8feaa87d7e44eb91baf7812edb70fbc8042ad/sdk/eventhub/Microsoft.Azure.EventHubs/src/Amqp/AmqpEventDataSender.cs#L162