System-Design-Question

Fix evaluation timeout for long system design interviews

Category: system_design Date: 2026-03-01

System Design Discussion: Fix Evaluation Timeout for Long System Design Interviews

1. Requirements (Functional + Non-functional)

2. High-Level Architecture

3. Database Design

Database Technology: PostgreSQL or MongoDB (with appropriate indexing and replication)

4. Scaling Strategy

5. Bottlenecks

6. Trade-offs

Solution using the First Principle of System Design:

The First Principle of System Design states that “Simplify, Simplify, Simplify.” The solution to the evaluation timeout problem should prioritize simplicity and ease of use.

To fix the evaluation timeout issue, we can implement a timeout detection mechanism that uses a combination of heuristics, such as:

The system can then notify the interviewer and the candidate about the timeout issue and provide recommendations for improvement.

Code Example:

import time

def detect_timeout(elapsed_time, candidate_behavior):
    # Time-based timeout
    if elapsed_time > 300:  # 5 minutes
        return True

    # Behavior-based timeout
    if candidate_behavior == "inactive" or candidate_behavior == "slow":
        return True

    return False

Learning Links: