All Questions
Redis medium

Which Redis implementation allows for tracking 'Daily Active Users' using exactly 1 bit per User ID to minimize RAM consumption?

  1. A Hash: Storing a boolean flag 'active: true' for every unique User ID record in a global analytical map.
  2. B List: Appending a numeric User ID to a chronological feed every time a customer logs into the system.
  3. C Bitmap: Using the `SETBIT` command to toggle bits in a binary-safe string where the offset is the ID.
  4. D HyperLogLog: Estimating the total count of active sessions using a fixed 12KB probabilistic buffer.

One system design question a day, with spaced repetition so the ones you miss come back.

Get the app

Related questions