grahamjenson / ger

Good Enough Recommendation (GER) Engine
376 stars 47 forks source link

Statistics Information #23

Open grahamjenson opened 9 years ago

grahamjenson commented 9 years ago

Query an ESM about its statistics, e.g.

  1. Number of total Events
  2. Number of total People
  3. Number of total Things
thelinuxlich commented 9 years ago

I propose we add Redis as dependency specifically for this. It will be easy and fast to get whatever metrics we want

thelinuxlich commented 9 years ago

For reference: http://oldblog.antirez.com/post/take-advantage-of-redis-adding-it-to-your-stack.html

grahamjenson commented 9 years ago

I don't want to add redis (or any external application) as an absolute dependency to GER because it locks GER into a particular kind of use. That is the main reason for the different ESMs being available, to provide choice and being able to leverage different technologies. I more want to have the ESMs support some kind of statistics output to allow external applications to provide some kind of dashboard, similar to rethinkdbs one.

The different ESMs might have different statistics as outputs as some statistics might be impossible/difficult to get from particular ESMS, e.g. a precise count of events in the Postgres ESM is pretty expensive. Having some kind of standard is needed so that all ESM's can have a common interface to test and use.

thelinuxlich commented 9 years ago

I see, well, it could be a plugin.

grahamjenson commented 9 years ago

Yeah. If you can think of a decent way to have ger with a plugin architecture that would be awesome. Especially since then we can seperate out the ESMs into different modules, and even define different heuristics for them. I have not invested any time into this, but if you have any ideas I have created another issue for that :) https://github.com/grahamjenson/ger/issues/36