Details
-
Sub-task
-
Status: Closed
-
Minor
-
Resolution: Complete
-
None
Description
- Instead of capturing a moving average on the sending thread (causing lock contention on high-volume streams), consider off-loading the calculation to when the statistic is accessed instead (requires keeping n elapsed times in a FIFO collection or similar).
- For high-volume streams, consider batching the response time over n messages, to avoid a StopWatch.start()/stop() on every send.