teaching_llm_applications

Assessment

Written component

image

image

image

image

image

To serve 900 million active users simultaneously on platforms like ChatGPT, Claude, or Sarvam, engineers must design an architecture capable of handling extreme, stateful concurrency. Global edge servers manage initial traffic via dynamic geo-load balancing, resolving edge routing and validating session tokens before handing off traffic to local regional clusters. Once inside the cluster, intelligent API gateways route incoming prompts to distributed databases to fetch conversational history, user profiles, and system prompts. To prevent persistent database bottlenecks during traffic spikes, localized read-only replica caches (e.g., Redis or distributed in-memory stores) serve high-frequency user metadata and system state with sub-millisecond latency.

After state and history retrieval, the request reaches the core inference engines, where the most complex engineering challenges reside. Compute clusters rely on continuous batching and dynamic continuous sequence scheduling to maximize GPU utilization across tens of thousands of accelerator chips. Crucially, memory management uses techniques like PagedAttention to dynamically allocate and offload Key-Value (KV) cache chunks, preventing VRAM fragmentation during long context generation. By decoupling the lightweight API orchestration layer from the compute-heavy, memory-bound GPU clusters, the system maintains ultra-low latency while serving billions of daily tokens across a massive worldwide user base.

Practical / coding component of assessment