Hello @dotnet_guy
One possible reason could be that the function is processing the incoming messages in batches, and the outgoing spikes are the result of the function processing a batch of messages.
Another possible reason could be that the function is experiencing resource constraints, such as CPU or memory limitations, which are causing delays in processing the incoming messages.
To investigate further, you can try the following steps:
- Check the configuration of your Azure function to ensure that it is not set to fire after a certain time or number of events. You mentioned that you did not configure any additional settings, but it's worth double-checking to make sure.
- Check the resource utilization of your Azure function during the spikes in outgoing messages. You mentioned that the memory usage is high during the spikes, but it would be helpful to also check the CPU usage and other resource metrics to see if there are any constraints that could be causing delays in processing the incoming messages.
- Check the configuration of your Event Hubs instance to ensure that it is not set to throttle incoming messages. Throttling can cause delays in processing incoming messages, which could result in spikes in outgoing messages.
- Consider upgrading to the premium tier of Event Hubs, which provides higher throughput and more predictable performance. The standard tier is designed for moderate workloads, and if you are experiencing spikes in outgoing messages, it's possible that you are hitting the limits of the standard tier.
I hope that this response has addressed your query and helped you overcome your challenges. If so, please mark this response as Answered. This will not only acknowledge our efforts, but also assist other community members who may be looking for similar solutions.