Statix
Fast and reliable Elixir client for StatsD-compatible servers
Install / Use
/learn @lexmag/StatixREADME
Statix
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 <sup>[1]</sup>
- caching of the UDP packet header
- connection pooling to distribute the metric sending
- diligent usage of IO lists
<sup><a name="direct-sending"></a>[1]</sup> 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:

for _ <- 1..10_000 do
Task.start(fn ->
for _ <- 1..10_000 do
StatixSample.increment("sample", 1)
end
end)
end
Make sure you have StatsD server running to get more realistic results.
</details>See the documentation for detailed usage information.
Installation
Add Statix as a dependency to your mix.exs file:
defp deps() 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.
Related Skills
node-connect
347.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
108.0kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
347.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
347.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
