You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SLAs: {{External service dependencies, uptime commitments}}
3. Context and Scope
3.1 System Context (C1)
graph TB
user[👤 User]
admin[👤 Admin]
system[System Name<br/>Brief description]
external1[[External System 1]]
external2[[External System 2]]
user --> system
admin --> system
system --> external1
system --> external2
Loading
3.2 Technical Context
External System
Protocol
Purpose
{{System 1}}
{{REST/gRPC/etc}}
{{What data/functionality}}
{{System 2}}
{{Protocol}}
{{Purpose}}
4. Solution Strategy
4.1 Architectural Approach
Pattern
Rationale
{{Pattern 1, e.g., Modular Monolith}}
{{Why this over alternatives}}
{{Pattern 2, e.g., Event Sourcing}}
{{Why this over alternatives}}
4.2 Technology Choices
Aspect
Choice
Rationale
{{Language}}
{{Go/Rust/etc}}
{{Why}}
{{Database}}
{{Postgres/MongoDB/etc}}
{{Why}}
{{Communication}}
{{gRPC/REST/etc}}
{{Why}}
5. Building Block View
5.1 Container Diagram (C2)
graph TB
subgraph system[System Name]
api[🌐 API Gateway<br/>:8080]
service[⚙️ Core Service<br/>:50051]
db[(Database<br/>:5432)]
api --> service
service --> db
end
user[👤 User] --> api
external[[External API]] --> service
Loading
5.2 Component Diagram (C3)
graph TB
subgraph service[Core Service]
handler[Handler Layer]
business[Business Logic]
repo[Repository]
adapter[External Adapters]
end
handler --> business
business --> repo
business --> adapter
repo --> db[(Database)]
adapter --> external[[External API]]
Loading
5.3 Component Responsibilities
Component
Responsibility
Dependencies
{{Component 1}}
{{Single responsibility}}
{{What it needs}}
{{Component 2}}
{{Single responsibility}}
{{What it needs}}
6. Runtime View
6.1 Key Scenarios
Scenario: {{Name, e.g., User Authentication}}
sequenceDiagram
participant User
participant API
participant Service
participant DB
User->>API: 1. Request
API->>Service: 2. Forward
Service->>DB: 3. Query
DB-->>Service: 4. Result
Service-->>API: 5. Response
API-->>User: 6. Result
Loading
6.2 Error Handling
External API unavailable: {{Graceful degradation strategy}}