API and service boundary design
Choose contracts, ownership boundaries, failure modes and idempotent endpoints.
Model Answer & Explanation
Design narrow, versioned contracts around domain ownership (no shared-database spaghetti). Use cursor pagination, explicit timeouts, idempotency keys on mutating POSTs, and standard structured error codes so callers know what is safe to retry.
Follow-up Interview Question · How does an idempotency key behave if the client retries with a different payload?
Module Context & References
Systems · 80/20 Core Foundations Essential architecture, reliability and scaling primitives
Personal Notes · Markdown
Related Interview Questions
Queues, background workers and event-driven systems Hard
Distributed systems and consistency Hard
Observability, tracing and SLOs Medium
Design and deploy a scalable production app Hard
CAP, PACELC and practical consistency models Hard
Caching patterns: cache-aside, write-through, write-back & stampedes Medium