Skip to main content
CodingArchitectureadvancedFeatured

Architectural Decision Record (ADR) Analysis & Trade-Off Matrix

Evaluate competing technical architectures, state assumptions, and document a formal Architectural Decision Record.

Compatibility & Specs

Compatible AI Models
ClaudeChatGPTGemini
Last UpdatedOct 3, 2026
Customizable Variables3 parameters

How to Use This Prompt

Follow this 3-step workflow to extract high-signal responses from any compatible AI model.

01

1. Tailor the Parameters

Use the interactive customizer above to substitute the bracketed placeholders with your exact context, requirements, and constraints.

02

2. Send to AI Model

Copy the prompt and paste it into Claude, ChatGPT, Gemini, or Copilot. These models follow structured multi-step constraints reliably.

03

3. Review and Iterate

Review the output against the verified benchmark below. Follow up in the conversation to stress-test edge cases or refine tone.

Prompt Variables & Parameters

Reference breakdown of every dynamic variable embedded in this prompt template.

PlaceholderParameter NameTypeStatusDescription & Guidance
[system_requirements]System RequirementstextareaRequiredWhat the system or feature needs to do functionallyDefault: A multi-tenant background notification and webhook delivery pipeline that processes up to 25 million events per day with at-least-once delivery, exponential backoff retries, and customer-configured secret signing.
[non_functional_constraints]Non-Functional ConstraintstextRequiredScale, SLA, team bandwidth, infrastructure budgetDefault: P99 delivery under 3 seconds; 5-person engineering team with minimal dedicated DevOps support; budget capped at $2,500/month AWS compute spend.
[options_considered]Options ConsideredtextareaRequiredThe specific architectural alternatives being evaluatedDefault: Option A: Fully serverless AWS SQS + EventBridge + Lambda workers. Option B: Self-managed Redis Streams with autoscaling Go workers on AWS ECS. Option C: Managed Apache Kafka (Amazon MSK) with dedicated consumer services.

Example Execution & Benchmark Output

Sample input arguments and the verified AI response demonstrating expected quality and formatting.

Sample VariablesInputs
[system_requirements]
A multi-tenant background notification and webhook delivery pipeline that processes up to 25 million events per day with at-least-once delivery, exponential backoff retries, and customer-configured secret signing.
[non_functional_constraints]
P99 delivery under 3 seconds; 5-person engineering team with minimal dedicated DevOps support; budget capped at $2,500/month AWS compute spend.
[options_considered]
Option A: Fully serverless AWS SQS + EventBridge + Lambda workers. Option B: Self-managed Redis Streams with autoscaling Go workers on AWS ECS. Option C: Managed Apache Kafka (Amazon MSK) with dedicated consumer services.
Expected AI ResponseVerified Result
### Architectural Decision Record (ADR): Webhook Delivery Pipeline **Status:** Accepted **Date:** 2026-10-03 **Decision Makers:** Principal Architect, Backend Lead, DevOps Engineer #### 1. Context & Problem Statement We must deliver 25 million multi-tenant webhooks daily. Customer endpoints have unpredictable latency and high failure rates. We need durable queuing, retry backoff, and isolation so one slow recipient endpoint cannot exhaust workers and delay delivery for other tenants. #### 2. Trade-Off Evaluation Matrix - **Option A (AWS SQS + Lambda):** Operational complexity: Very Low | Cost at 25M calls: ~$3,200/mo (exceeds budget due to Lambda duration waiting on slow HTTP responses) | Isolation: High. - **Option B (Redis Streams + Go on ECS) [CHOSEN]:** Operational complexity: Low-to-Moderate | Cost: ~$850/mo (3 lightweight ECS Fargate tasks using non-blocking epoll Go HTTP clients) | Isolation: Moderate. - **Option C (Kafka / MSK):** Operational complexity: Very High | Minimum cluster cost: ~$2,000/mo | Overkill for a 5-person team without dedicated SRE. #### 3. Decision We choose **Option B (Redis Streams with Go workers on ECS)**. Go's lightweight goroutines allow each worker container to hold 10,000 concurrent outbound HTTP requests without memory exhaustion, keeping compute costs 70% below Lambda. #### 4. Consequences & Mitigations - *Negative:* Redis is in-memory; sudden cluster crash could lose un-persisted stream segments. - *Mitigation:* Configure Redis AOF with `appendfsync everysec` and multi-AZ replication. DLQ events overflow to S3 bucket.

Best Use Cases

Scenarios and roles where this prompt produces maximum leverage.

Staff and Principal engineers authoring RFCs and architecture decision documents
Engineering leads evaluating cloud infrastructure costs against team operational capacity
Distributed development teams documenting technical trade-offs for permanent record

Tips for Best Results

Techniques to elevate response fidelity

  • •Provide rich background context rather than one-sentence inputs to receive deep, non-generic responses.
  • •Engage in multi-turn conversation: use the initial output as a baseline, then ask the AI to sharpen specific sections.
  • •Prompt the model to highlight any hidden assumptions or missing trade-offs in its recommendations.

Common Mistakes to Avoid

Frequent failure modes and anti-patterns

  • •Giving minimal context and expecting nuanced, expert-level strategic output.
  • •Not validating factual references, citations, or statistical claims with verified primary sources.
  • •Skipping the customization step and pasting raw bracketed template variables into the AI chat.

Part of Curated Collections

This prompt is sequenced as part of these goal-oriented workflows

View all collections

Related AI Prompts

Complementary workflows in Coding

View all Coding prompts
Codingadvanced

Production Incident Post-Mortem & Root-Cause Synthesizer

Convert messy incident Slack logs and alerts into a blameless, rigorous post-mortem with corrective action items.

claudechatgptgemini
#post-mortem#root-cause-analysis#sre
Codingadvanced

Monolith to Modular Decoupling & Boundary Architect

Carve clear bounded contexts out of entangled monoliths using the Strangler Fig pattern and event-driven seams.

claudechatgptgemini
#software-architecture#refactoring#monolith-to-microservices
Next.jsadvanced

Next.js Server vs. Client Component Boundary Decision Matrix

Audit page trees to push 'use client' directives to the leaves, minimize JS bundles, and maximize server streaming.

claudechatgptgemini
#nextjs#server-components#client-components

Related Engineering Guides

Deep-dive playbooks and system prompt methodologies for Coding

View all guides