Home > Interesting > bitmapist: a powerful analytics library for Redis

bitmapist: a powerful analytics library for Redis

https://github.com/Doist/bitmapist

bitmapist

bitmapist: a powerful analytics library for Redis

This Python library makes it possible to implement real-time, highly scalable analytics that can answer following questions:

* Has user 123 been online today? This week? This month?
* Has user 123 performed action “X”?
* How many users have been active have this month? This hour?
* How many unique users have performed action “X” this week?
* How many % of users that were active last week are still active?
* How many % of users that were active last month are still active this month?
* What users performed action “X”?

This library is very easy to use and enables you to create your own reports easily.

Using Redis bitmaps you can store events for millions of users in a very little amount of memory (megabytes). You should be careful about using huge ids (e.g. 2^32 or bigger) as this could require larger amounts of memory.

Additionally bitmapist can generate cohort graphs that can do following:

Cohort over user retention
* How many % of users that were active last [days, weeks, months] are still active?
* How many % of users that performed action X also performed action Y (and this over time)
And a lot of other things!
If you want to read more about bitmaps please read following:

http://blog.getspool.com/2011/11/29/fast-easy-realtime-metrics-using-redis-bitmaps/
http://redis.io/commands/setbit
http://en.wikipedia.org/wiki/Bit_array

Advertisements
Categories: Interesting
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: