DRS: Making high-impact & informed decisions with Dream11’s In-house Experimentation Platform!

Dream11 Engineering23 Jan 2025

Problem

Dream11, a sports app with over 130 million users, runs many experiments in parallel, and traffic spikes sharply during events such as the IPL. If one user is in several experiments, the tests bias each other, and no metric change can be tied to a single product change. External tools lacked the user sampling, assignment strategies and backend experiments Dream11 needed at this scale, so it built DRS (Data-Driven Review System).

Example from the article: edge services handle over 120 million requests per minute at peak, so the experiment service cannot see every request, and variants must stay sticky.

Solution in brief

DRS defines each experiment by a cohort, a sampling technique (cluster or stratified) and an assignment strategy (randomised or round robin). Users are exclusive to one experiment, and an exposure field ramps traffic up gradually, like a canary deployment. A request token lets the API gateway call the experiment service only for users needing a new assignment.

Questions this case answers
  • How to run many concurrent experiments on mutually exclusive user groups while keeping exposure controllable and assignment latency low at very high request rates
  • How to assign users to variants in proportion to the target allocation when users are grouped into clusters or strata of unequal size
  • How to run many parallel experiments without users falling into several tests at once?
  • How to release an experiment to a growing share of traffic so that a bug hurts few users?

Tools and methods

  • Cohorts with include/exclude rules — limit who can enter an experiment
  • Cluster and stratified sampling — group users by a model or by traits before assigning variants
  • Randomised and round-robin assignment — weighted random draw, or the variant with the smallest overshoot
  • Exposure and threshold — cap the share and the number of users who enter an experiment
  • Aerospike — cache for assignments, with Cassandra as the source of truth
Continue reading — it's free

Google or a one-time email code. No password.