- Notifications
You must be signed in to change notification settings - Fork0
Fast and reliable Elixir client for StatsD-compatible servers
License
SalesLoft/statix
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
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 ofIO lists
[1] In contrast with process-based clients, Statix has lower memory consumption and higher throughput – Statix v1.0.0 does about876640 counter increments per flush:
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.
Seethe documentation for detailed usage information.
Add Statix as a dependency to yourmix.exs
file:
defpdeps()do[{:statix,">= 0.0.0"}]end
Then runmix deps.get
in your shell to fetch the dependencies.
This software is licensed underthe ISC license.
About
Fast and reliable Elixir client for StatsD-compatible servers
Resources
License
Stars
Watchers
Forks
Packages0
Languages
- Elixir100.0%