Design a Feature Flag and A/B Testing System

0%

Editorial Solution

System Requirements

Capacity Estimation

Customer base and flag count

API Design

SDK Evaluation API (in-process function call)

Database Design

Flag Config Store — primary source of truth

High-Level Design

Request Flows

Flow 1: Flag evaluation (millions per second per customer, happens on customer infra)

Detailed Component Design

1. Rule Evaluation Engine (SDK-side, hot path)

Trade-offs and Technology Choices

Streaming versus polling

Failure Scenarios and Bottlenecks

Our streaming service is down

Future Improvements

Edge-evaluated experimentation (move analysis to the SDK)

Contextual bandits / ML-driven rollouts

Table of Contents

System Requirements

Capacity Estimation

Customer base and flag count

API Design

SDK Evaluation API (in-process function call)

Database Design

Flag Config Store — primary source of truth

High-Level Design

Request Flows

Flow 1: Flag evaluation (millions per second per customer, happens on customer infra)

Detailed Component Design

1. Rule Evaluation Engine (SDK-side, hot path)

Trade-offs and Technology Choices

Streaming versus polling

Failure Scenarios and Bottlenecks

Our streaming service is down

Future Improvements

Edge-evaluated experimentation (move analysis to the SDK)

Contextual bandits / ML-driven rollouts

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock

Premium content

Unlock
Try this problem yourself

Reading a solution is not the same as producing one under interview pressure. Design it on the whiteboard and get scored feedback.

Concepts used in this design

The building blocks this design relies on, each explained in its own lesson.


Markdown supported

0%

Editorial Solution

System Requirements

Capacity Estimation

Customer base and flag count

API Design

SDK Evaluation API (in-process function call)

Database Design

Flag Config Store — primary source of truth

High-Level Design

Request Flows

Flow 1: Flag evaluation (millions per second per customer, happens on customer infra)

Detailed Component Design

1. Rule Evaluation Engine (SDK-side, hot path)

Trade-offs and Technology Choices

Streaming versus polling

Failure Scenarios and Bottlenecks

Our streaming service is down

Future Improvements

Edge-evaluated experimentation (move analysis to the SDK)

Contextual bandits / ML-driven rollouts

Table of Contents

System Requirements

Capacity Estimation

Customer base and flag count

API Design

SDK Evaluation API (in-process function call)

Database Design

Flag Config Store — primary source of truth

High-Level Design

Request Flows

Flow 1: Flag evaluation (millions per second per customer, happens on customer infra)

Detailed Component Design

1. Rule Evaluation Engine (SDK-side, hot path)

Trade-offs and Technology Choices

Streaming versus polling

Failure Scenarios and Bottlenecks

Our streaming service is down

Future Improvements

Edge-evaluated experimentation (move analysis to the SDK)

Contextual bandits / ML-driven rollouts