Algorithm Design & Real-Time System Optimization Questions
Algorithm design techniques and real-time optimization strategies applicable to distributed systems and latency-sensitive architectures. Covers scheduling, resource management, concurrency, distributed algorithms, load balancing, and performance optimization under strict latency requirements.
MediumTechnical
65 practiced
Compare token-bucket and leaky-bucket algorithms for traffic shaping in latency-sensitive services. For each algorithm, describe behavior under bursty load, queueing impact, and which better preserves p99 latency while allowing controlled bursts.
EasyTechnical
60 practiced
Explain the difference between hard real-time and soft real-time systems. Provide one example for each (hardware or software), and discuss implications for algorithm selection, scheduling policies, and system choices (e.g., language, GC, OS schedulers) when building distributed services with real-time constraints.
MediumTechnical
47 practiced
Implement consistent hashing with virtual nodes in Python. Provide class ConsistentHash(nodes: List[str], vnodes: int) and method get_node(key: str) -> node_id. Use hashlib.sha256 for hashing and return deterministic mapping. Demonstrate expected mapping for 3 nodes and keys ['a','b','c']. Explain complexity for get_node and rebalancing when nodes change.
MediumSystem Design
49 practiced
Design an API gateway that enforces SLA-based routing and per-customer timeouts. Requirements: route VIP customers to dedicated pools, apply per-route timeouts that prevent downstream SLA violations, and add minimal latency. Describe routing data model, algorithms for selecting pools under load, and failure handling.
MediumSystem Design
64 practiced
Design a low-latency pub/sub notification service for social feeds: 10M subscribers, 50k messages/sec, average fan-out 1,000, delivery target p99 < 200ms for push notifications. Discuss architecture, fan-out strategy (fan-out-on-write vs fan-out-on-read), partitioning, batching, caching, and how to bound tail latency.
Unlock Full Question Bank
Get access to hundreds of Algorithm Design & Real-Time System Optimization interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.