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 w

🔒

Upgrade to see the full prompt

Get unlimited access to all 215+ templates — starting at $9/month.

✦ Upgrade to Pro

Already have an account? Sign in

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 PromptIt 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 215 templates