0 day streak
Anonymous · shared experience20 Sept 2025 · 5 views

PharmEasy: Design a feature flag service with targeting rules

Interview question #PharmEasy SDE 2 Low-level design

Problem. Design a reusable feature flag (toggle) service. Product owners create flags and attach targeting rules that can be complex. Client apps ask, in real time, which features are on for a given user.

Requirements given. Low latency for evaluation, flexible rules, the ability to plug in new custom rule types later, and no single point of failure.

Expected in the answer. Functional and non-functional requirements, the data schema, the API design for managing and evaluating flags, and how a new rule type gets added without rewriting the evaluator. Several follow-up questions came after the first design.

Context. SDE 2 Java backend loop; the candidate called it the toughest LLD round they had taken, and the verdict was positive.

0 comments

Comments 0

No comments yet. Ask the author something, or add what happened in your own round.