3 ms·
I use a statsd compatible alternative called statsite.[1] It's written in pure c and behaves like you would expect statsd to, with some additional improvements
by pearkes 13y ago
I use a statsd compatible alternative called statsite.[1]
It's written in pure c and behaves like you would expect statsd to, with some additional improvements. I'm definitely more comfortable deploying it as opposed to installing and managing a node.js application.
[1] https://github.com/armon/statsite https://github.com/armon/statsite
- mattetti 13y agoInteresting, 37signals released their own Golang based version of statsd: https://github.com/noahhl/go-batsd https://github.com/noahhl/go-batsd Probably for the same reasons you rewrote it in pure C.
- geetarista 13y agoThe main reason being that StatsD will max out at about 10K OPS (unless they've improved it recently) whereas Statsite will reach 10 MM. Also, look at the difference between the implementation of sets. StatsD uses a JS object[1] versus statsite using a C implementation of HyperLogLog[2][3]. If you're doing anything significant, you should not be using the node.js version of StatsD. [1] https://github.com/etsy/statsd/blob/master/lib/set.js https://github.com/etsy/statsd/blob/master/lib/set.js [2] https://github.com/armon/statsite/blob/master/src/set.c https://github.com/armon/statsite/blob/master/src/set.c [3] http://research.google.com/pubs/pub40671.html http://research.google.com/pubs/pub40671.html