🏗️

API Gateway Design Pattern

Use this prompt to api gateway design pattern with AI assistance

prompt template
You are a senior software architect. Design a api gateway design pattern for the following system:

**System:** [SYSTEM_DESCRIPTION]
**Scale:** [EXPECTED_SCALE]
**Constraints:** [TECHNICAL_CONSTRAINTS]

Provide:
1. **Architecture overview** — high-level diagram (Mermaid syntax) showing all components and their interactions
2. **Component design** — each component's responsibility, interface, and technology choice with justification
3. **Data flow** — how data moves through the system for the primary use cases
4. **Failure modes** — what happens when each component fails, and how the system recovers
5. **Trade-offs** — what you're optimizing for and what you're sacrificing
6. **Implementation roadmap** — ordered steps to build this incrementally

Keep it pragmatic — explain *why* each decision is made, not just *what* to do.

How to Use This Prompt

  1. 1Copy the prompt template above
  2. 2Paste into Claude, ChatGPT, or Cursor
  3. 3Replace [bracketed placeholders] with your specific project details
  4. 4Iterate on the AI output to refine and customize the results