This question evaluates design skills for RESTful APIs and backend systems, covering API schema and versioning, authentication and rate limiting, caching and cache invalidation, storage models, precomputation pipelines, consistency and staleness bounds, monitoring, and operational concerns.
You are designing backend APIs to power a "related products" module based on co‑purchase behavior (market-basket analytics). The service must support high read throughput, filtering (time, region, channel), and predictable latency. It will be consumed by internal services and client applications.
Design RESTful APIs and the surrounding system to:
Login required