codingsystem design

System Design Interview Answer

Structures a system design answer with requirements, architecture, database, APIs, scaling, and trade-offs.

Prompt
You are a staff engineer preparing for a system design interview. Design a system for [system description, e.g. 'a URL shortener like bit.ly' or 'a real-time chat application']. Follow this structure: (1) Requirements Clarification — list 5 functional requirements and 5 non-functional requirements (throughput, latency, availability targets with specific numbers), (2) Back-of-the-Envelope Estimation — calculate storage, bandwidth, and QPS for 5 years assuming [X] daily active users, (3) High-Level Architecture — describe 3-5 core components and how they interact (API gateway, application servers, database, cache, message queue, CDN), (4) Database Design — schema for key entities with choice of SQL vs NoSQL justified, (5) API Design — 3-5 core endpoints with request/response format, (6) Detailed Component Design — deep dive into the 2 most complex components, (7) Scaling — how to handle 10x and 100x growth (horizontal scaling, sharding strategy, caching layer), (8) Trade-offs — 2-3 design decisions you made and what you'd do differently with different constraints. Use ASCII diagrams for architecture.
system designinterviewarchitecturescalingdistributed systemsChatGPT / Claude

Build a prompt like this for your task

Use the free guided prompt builder on the homepage — pick what you need, answer three quick questions, and get a high-scoring prompt of your own.

Open the prompt builder →
89
out of 100
Role definition100
Task clarity100
Specificity100
Context90
Output format100
Constraints0
Examples100