Skip to content

Repository files navigation

Statix

Build StatusHex Version

Statix is an Elixir client for StatsD-compatible servers. It is focused on speed without sacrificing simplicity, completeness, or correctness.

What makes Statix the fastest library around:

  • direct sending to socket [1]
  • caching of the UDP packet header
  • connection pooling to distribute the metric sending
  • diligent usage of IO lists

[1] In contrast with process-based clients, Statix has lower memory consumption and higher throughput – Statix v1.0.0 does about 876640 counter increments per flush:

Statix

It is possible to measure that yourself.
for_<-1..10_000doTask.start(fn->for_<-1..10_000doStatixSample.increment("sample",1)endend)end

Make sure you have StatsD server running to get more realistic results.

See the documentation for detailed usage information.

Installation

Add Statix as a dependency to your mix.exs file:

defpdeps()do[{:statix,">= 0.0.0"}]end

Then run mix deps.get in your shell to fetch the dependencies.

License

This software is licensed under the ISC license.

About

Fast and reliable Elixir client for StatsD-compatible servers

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages