Open ChiefAlexander opened 3 years ago
This is also probably related to #122 based on some of the comments.
Hi @ChiefAlexander,
I've written a stress program, which ran for 24 hours and not seen this issue so I think I'm missing some key component. Do you have a second to look at what I have to see if matches what you're doing? Or even better, if you can create a small sample that replicates the problem you're seeing I could start with that.
Some things that might be different:
I will try to replicate what we are seeing with your stress program.
A few notes:
I think we could argue about which base image is leaner 😄 . I don't think in this case the underlying OS actually matters based on our own testing.
can i ask where i can switch the connection option to websocket?
Expected Behavior
Receive messages consistently
Actual Behavior
After a few seconds of receiving messages, the latency increases drastically and doesn't come down
I have attached a screenshot from Jaeger showing the increase in function times from an average of ~40ms to an average of ~600ms after processing less than 200 messages from EventHub. This all happens within a few seconds of startup.
I have locally patched the AMQP library trying to dig into the issue to identify where this slow down is occurring but was unable to reach any conclusions. If this is an issue within the AMQP library I am happy to open another issue there but wanted to start here to see if anyone had any ideas.
Environment
Workaround
Utilizing the WebSocket connection option allowed us to have consistent message delivery. After switching our latency within the functions maintains a stable execution time of ~40ms. Which 10x'd our data throughput.