
Elixir Mentor Daniil Popov on Embedded Analytics
12 snips
Oct 5, 2024 Daniil Popov, creator of Phoenix Analytics, dives into the world of embedded analytics in Phoenix projects. He shares the journey of developing his tool, emphasizing its seamless integration and user-friendly setup. The conversation highlights innovative uses of DuckDB for efficient data handling, alongside challenges faced in real-world testing. Daniil also discusses the balance between performance and aesthetics in web development, providing insights valuable for Elixir developers eager to enhance their applications with advanced analytics.
AI Snips
Chapters
Transcript
Episode notes
Embed The Analytics DB For Plug-And-Play
- Do not require users to install DuckDB separately; embed it like SQLite for plug-and-play analytics.
- Daniil made DuckDB persistent to disk and accessible without extra setup.
Keep Tracing Non‑Blocking
- Avoid blocking the request path when tracing; take only necessary request data and process it asynchronously.
- Daniil removed premature Task.spawn and found non-blocking plug cost negligible when done correctly.
Production Finds Real Edge Cases
- Daniil tested Phoenix Analytics in production and discovered edge cases not covered in synthetic tests.
- He fixed failures found after real users exercised the plug in production.
