View Source Glific.Metrics.Worker (Glific v5.1.6)

Simple worker which caches all the counts for a specific flow and writes them out in batches. This allows us to amortize multiple requests into one DB write.

Module influenced and borrowed from: https://dashbit.co/blog/homemade-analytics-with-ecto-and-elixir

Link to this section Summary

Functions

Returns a specification to start this module under a supervisor.

Link to this section Functions

Returns a specification to start this module under a supervisor.

See Supervisor.