DataDog / dogstatsd-csharp-client

A DogStatsD client for C#/.NET
datadoghq.com
Other
94 stars 62 forks source link

Use dedicated threads for background workers #151

Closed kevingosse closed 3 years ago

kevingosse commented 3 years ago

Long-running operations (> 500 ms) should always go to a dedicated thread.

I used to think it didn't matter much, but I just ran into a situation where the threadpool wasn't scaling properly, and keeping this threadpool worker just to wait on a queue was causing a significant drop in a throughput.

ogaca-dd commented 3 years ago

@kevingosse: Thanks for the improvement!