From ece727250290e9641bfaf8721ab54219b45728ba Mon Sep 17 00:00:00 2001 From: narawat Date: Thu, 21 May 2026 17:32:51 +0700 Subject: [PATCH] update decision ID --- ASG_Framework.md | 21 +++++++++++---------- 1 file changed, 11 insertions(+), 10 deletions(-) diff --git a/ASG_Framework.md b/ASG_Framework.md index 156c241..aadf779 100644 --- a/ASG_Framework.md +++ b/ASG_Framework.md @@ -547,11 +547,12 @@ flowchart TD Explain why each major decision was made. -| Decision | Rationale | Alternatives Rejected | -|----------|-----------|----------------------| -| Use WebSockets for real-time updates | Required for <100ms feedback | REST polling - too slow, too many requests | -| Store comparison list in localStorage | Allows offline comparison editing | Redux - overkill for this feature | -| Server-side rendering for comparison export | SEO for shared comparisons | Client-side rendering - no SEO benefit | +| Decision ID | Decision | Rationale | Alternatives Rejected | +|-------------|----------|-----------|----------------------| +| SD-001 | Use NATS for async messaging | Required for real-time messaging with low overhead | Kafka - too complex for current scale | +| SD-002 | Use WebSockets for real-time updates | Required for <100ms feedback | REST polling - too slow, too many requests | +| SD-003 | Store comparison list in localStorage | Allows offline comparison editing | Redux - overkill for this feature | +| SD-004 | Server-side rendering for comparison export | SEO for shared comparisons | Client-side rendering - no SEO benefit | ## 6. Risk Assessment @@ -569,11 +570,11 @@ Link each solution component to specific requirements and assign Solution Design | Solution Component | Requirement ID | Decision ID | Description | |-------------------|----------------|-------------|-------------| -| Comparison table UI | FR-101 | SD-001 | Display wines in table format | -| Filtering | FR-102 | SD-002 | Filter wines by criteria | -| Sorting | FR-103 | SD-003 | Sort wines by any column | -| Real-time updates | NFR-201 | SD-004 | Updates appear within 100ms | -| Export comparison | FR-201 | SD-005 | Export comparison to PDF/CSV | +| Comparison table UI | FR-101 | SD-001 | Display wines in table format (uses NATS messaging) | +| Filtering | FR-102 | SD-002 | Filter wines by criteria (uses WebSocket updates) | +| Sorting | FR-103 | SD-003 | Sort wines by any column (stored in localStorage) | +| Real-time updates | NFR-201 | SD-002 | Updates appear within 100ms (uses WebSocket) | +| Export comparison | FR-201 | SD-004 | Export comparison to PDF/CSV (uses server-side rendering) | ### Specification Template