Whenever you're ready, walk me through how you'd approach this.
How would you build a real-time recommendation system that scales to handle millions of active users with low latency?
Explain the end-to-end architecture, including candidate retrieval, ranking, re-ranking, feature management, and model serving. Discuss offline training, online inference, evaluation, monitoring, and failure handling. State the assumptions you would clarify before selecting capacity, latency targets, and model complexity.