Home/Templates/System Design
Coding

System Design Prompt Template

Design a scalable system architecture covering components, data flow, trade-offs, and scaling strategies for technical interviews or real projects.

The Prompt

ROLE: You are a principal engineer who has led architecture reviews at companies scaling from 10,000 to 10 million users — you know which scaling problems are real and which ones are premature optimisation. CONTEXT: You are designing a system architecture for the use case described below. The design must be practical — it should solve the stated scale requirements without over-engineering, and it should be honest about the tradeoffs of every major decision. This design will be used for a real project, a technical interview, or an architectural review. TASK: Design a complete, well-reasoned system architecture for the use case and scale parameters below. RULES: • Every major component must have a stated reason for its existence — no component without a job • For every architectural decision (database type, message queue, caching layer), name at least one alternative you rejected and explain why • The tradeoffs section must be honest — name what this architecture is bad at, not just what it's good at • Scaling approach must distinguish between stateless horizontal scaling and stateful components that require careful management • Include a "what breaks first" analysis: under 10x load, what component is the first to fail, and what's the mitigation CONSTRAINTS: Describe the architecture in prose + component list — no diagrams, but be specific enough that a diagram could be drawn from the description. Avoid vendor lock-in without explicitly choosing it (if you recommend AWS S3, say you're recommending S3 specifically and why). EDITABLE VARIABLES: • [USE_CASE] — what the system does • [SCALE] — current and target scale (e.g. "1,000 users now, 500,000 in 12 months, 1M requests/day at peak") • [CONSTRAINTS] — budget, team size, existing tech stack, regulatory requirements • [NON_NEGOTIABLES] — requirements that cannot be compromised (e.g. "data must stay in EU", "99.9% uptime SLA") OUTPUT FORMAT: **High-Level Architecture:** [Prose description of the system] **Components:** - [Component]: [Role] | [Technology choice + why] | [Alternative rejected + why] **Data Flow:** [Request path from user to data and back] **Database Strategy:** [Choice, sharding/replication approach, backup] **Caching Strategy:** [What, where, TTL, invalidation approach] **Scaling Approach:** [Stateless vs stateful, auto-scaling triggers] **Key Trade-offs:** - [What this design optimises for] - [What it sacrifices] **What Breaks First:** [Under 10x load + mitigation] QUALITY BAR: A team of 3 engineers should be able to read this design and start building without a single architectural clarification meeting.

Make it specific to you

PromptITIN asks a few questions and builds a version tailored to your use case.

✦ Enhance with AI

How to use this template

1

Copy the template

Click the copy button to grab the full prompt text.

2

Fill in the placeholders

Replace anything in [BRACKETS] with your specific details.

3

Paste into any AI tool

Works with ChatGPT, Claude, Gemini, Cursor, and more.

4

Or enhance with AI

Sign in to PromptITIN and let AI tailor the prompt to your exact situation in seconds.

Why this prompt works

The 'what breaks first' section is what separates a theoretical system design from a practical one — it forces the AI to think about failure modes rather than just happy-path capacity. Requiring rejected alternatives to be named converts this from a recommendation into a decision log.

Tips for best results

  • For technical interviews, add 'explain each decision as if answering a follow-up question' to RULES — it makes the output interview-ready
  • Specify your team's existing expertise in CONSTRAINTS — a perfect architecture that no one can maintain is not a good architecture
  • Ask for a 'start simple, evolve later' version first — many real systems should start as a monolith and decompose when the load actually demands it
  • After generating, ask 'what would you change if the budget was 10x lower?' — the answer reveals which components are performance optimisations vs requirements

More Coding templates

Code Review

Get a comprehensive AI code review covering bugs, performance issues, security vulnerabilities, best practice violations, and refactoring opportunities with specific line references.

View →

Debug an Error

Diagnose any code error with a structured breakdown: root cause analysis, step-by-step fix, and prevention strategies for the future.

View →

Explain Code Simply

Translate complex code into plain English with line-by-line explanations, real-world analogies, and edge-case analysis for any skill level.

View →
← Browse all 195 templates