Whenever you're ready, walk me through how you'd approach this.
What is your approach to designing a large-scale, distributed e-commerce platform?
Explain how you would decompose the platform into services and incorporate ML for product retrieval, ranking, personalization, fraud prevention, or inventory decisions. Address data flows, online and batch processing, reliability, observability, evaluation, and failure recovery. Clarify assumptions before proposing the architecture, and discuss tradeoffs between consistency, latency, availability, cost, and model quality.