Azure / azure-functions-eventhubs-extension

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

(AzureCXP) fixed eventhub size limit #72

Closed MayankBargali-MSFT closed 1 month ago

MayankBargali-MSFT commented 4 years ago

Line 29 has hardcoded value for event hub standard namespace where this should not be hardcoded as the basic event hub has a size limit of 256 KB whereas the standard and dedicated event hub has a size limit of 1 MB: https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-quotas

Standard event hub size used to be 256 KB a few years back and that was changed to 1MB long time back. Either the logic needs to be updated to dynamically fetch the max size or this value needs to be updated.

As the validation is this piece of code if we are sending more than 240 KB data for Standard SKU then below error is observed.

2020-08-27T03:17:51.319 [Error,EventHubTriggerCSharp1] Exception while executing function: Functions.EventHubTriggerCSharp1. Microsoft.Azure.WebJobs.Host: Error while handling parameter outEventHubMessage after function returned:. Microsoft.Azure.WebJobs.ServiceBus: Event is too large. Event is approximately 999668b and max size is 245760b. 2020-08-27T03:17:51.366 [Error,EventHubTriggerCSharp1] Exception while executing function: Functions.EventHubTriggerCSharp1

FinVamp1 commented 4 years ago

Adding @alrod when he is back to review this although it may not be merged as we have an on-going discussion in https://github.com/Azure/azure-functions-eventhubs-extension/issues/29