Design a scalable food news feed
Company: DoorDash
Role: Software Engineer
Category: System Design
Difficulty: hard
Interview Round: Onsite
Design a news-feed feature for a food discovery app. The feed should list items with title, author, summary, and engagement counts, and allow opening a detail view with full description, comments, and related items. Support create/read/update for posts and comments, infinite scroll, ranking by recency and engagement, and basic search/filter. Specify: data model and storage (including comments and reactions), read/write APIs and pagination, the end-to-end path after an incoming API request (edge/CDN, gateway, stateless app tier, background jobs, queues, and data processing), caching/indexing/denormalization for fast reads, scalability (partitioning, rate limiting, backpressure), consistency choices and idempotency, error handling and retries, observability, and performance optimizations.
Quick Answer: This question evaluates expertise in scalable system architecture, data modeling for feeds (posts, comments, reactions), API and caching design, consistency and availability trade-offs, and operational concerns such as observability and rate limiting.