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.
Ask episode
AI Snips
Chapters
Transcript
Episode notes
ADVICE

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.
ADVICE

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.
ANECDOTE

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.
Get the Snipd Podcast app to discover more snips from this episode
Get the app