ApplicationInsights-Ruby icon indicating copy to clipboard operation
ApplicationInsights-Ruby copied to clipboard

Should have a size limit for message queue

Open yantang-msft opened this issue 8 years ago • 2 comments

Consider replacing the Queue with SizedQueue, so the memory consumption can be controlled, like the "BacklogSize" in .Net sdk. https://github.com/Microsoft/ApplicationInsights-Ruby/blob/develop/lib/application_insights/channel/queue_base.rb#L14

yantang-msft avatar Jun 12 '18 18:06 yantang-msft

Would you like to send a PR for this?

SergeyKanzhelev avatar Jun 12 '18 18:06 SergeyKanzhelev

I can address this later when I have time. Need to consider between blocking vs non-blocking push operation, or use the default thread safe non-blocking push vs checking size before push.

yantang-msft avatar Jun 12 '18 20:06 yantang-msft