lexmag / fluxter

High-performance and reliable InfluxDB writer for Elixir

Home Page:https://hexdocs.pm/fluxter

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rename Fluxter.Batch

lexmag opened this issue · comments

I think it conveys incorrect meaning: collect several writes, not aggregate them into one.
@whatyouhide do you have any naming ideas? Fluxter.Total could work.

I don't like Fluxter.Total personally as it doesn't say much on "total" of what, or how this "total" is calculated. Maybe something like Fluxter.LocalCounter? I'd like to try to convey the idea that 1. it's only for integers 2. it sums them and 3. it doesn't talk to InfluxDB until "flushed".

Let's go with Fluxter.Counter and MyApp.Fluxter.start_counter, MyApp.Fluxter.increment_counter, MyApp.Fluxter.flush_counter.

Closing in favor of the PR #10.