Design a Authentication Service

Last updated: January 17, 2026

Quick Overview

Design a fault-tolerant authentication system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.

HRT
System Design
Software Engineer
HRT
January 17, 2026
Software Engineer
System Design Round
System Design
Easy

30

2

3,231 solved


Design a fault-tolerant authentication system that handles millions of requests. Discuss trade-offs in consistency, availability, and performance.

This ML system design question from HRT's System Design Round tests your ability to think about ML systems at scale. The interviewer expects discussion of data quality, feature stores, model serving infrastructure, and A/B testing strategy.

What the Interviewer Expects
  • Map the business problem to a concrete ML objective
  • Propose reasonable features and a baseline model
  • Discuss basic model evaluation metrics
  • Outline a simple serving architecture
Key Topics to Cover
Online vs offline evaluation
Data collection and labeling strategy
Monitoring and model degradation detection
ML objective formulation and metric selection
Feature engineering and feature stores
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How would you handle a 10x increase in prediction requests?
  • How would you run A/B tests on different model versions?
  • What would you do if model performance degrades over time?
  • How would you ensure fairness and reduce bias in the model?
Practice a Similar Problem on Codemia

Solve a related problem with our interactive workspace, get AI feedback, and view detailed solutions.

Solve on Codemia
Sample Answer
Requirements
  • Functional Requirements:
    1. User Registration: Users can create accounts with email/password or social logins.
    2. User Authentication: Validate user credentials for login.
    3. Passwor...
Capacity Estimation
  • We expect around 10 million users, with an average of 5 authentication requests per user per day.
  • Daily Requests Calculation:
    10 million users * 5 requests = 50 million requests per day....

Submit Your Answer
Markdown supported

Related Questions