Open ankitjaininfo opened 9 years ago
If not buffering, at minimum statsd's feature to batch multiple calls should be done.
Here is an example:
client.send(
{ "foo" : "-1|c" // count
, "bar" : "15|g" // gauge
, "baz" : "500|ms" // timing
, "boaz": "40|s" // set
}, 0.1); // sample rate at `0.1`
Hello @ankitjaininfo. I'm curious: are you running into performance problems in Node? With Graphite? I'm not opposed to optimizing, but don't want to do so prematurely :)
No, did not ran into performance, my project has less traffic today. I can send you PR when I attempt it. This is just a enhancement request.
Alright. I know that Lynx has support for batching, so hopefully it wouldn't be too much work to add that in.
Possibly buffering collected request metrics and flushing every 2 seconds.