Single AWS Architecture (AMWAY)
Published 2026-05-14Updated 2026-06-303 min read
Same skeleton as LG H&H plus AMWAY specialization: ABO Tree (Neptune depth queries), recurring subscriptions (state machine), global multilingual support, and direct-selling regulatory guards.
1. Architecture Overview
2. AMWAY-specific Components
| Component | Role |
|---|---|
| Neptune (700K edges) | ABO tree 5-level depth queries (*1..5 openCypher) — +40% vs. LG H&H's 500K |
| Step Functions (Subscription State Manager) | Subscription state machine: Active → Pause → Cancelled / Renewed |
| Bedrock Guardrails (enhanced) | 4 topics + direct-selling regulations + minors + health functional food ads |
| Cohere embed-v4 / rerank-v3.5 | Korean · Chinese · Japanese · English · Spanish concurrently (more than 100 countries, cohere.rerank-v3-5:0) |
| OpenSearch multilingual analyzers | Nori + Smartcn (Chinese) + Kuromoji (Japanese) + Standard |
3. Traffic Flow (S9-A ABO Tree Visualization)
1. Browser → CloudFront → Lambda@Edge (JWT + persona header)
2. CloudFront → Next.js → FastAPI /api/abo-tree?root=$rootId&depth=5
3. FastAPI → Neptune openCypher: MATCH (root)-[:HAS_DOWNLINE*1..5]->(d) ...
4. Result → cytoscape.js JSON
5. Browser rendering + interaction
4. Security & Governance (AMWAY-enhanced)
| Item | Implementation |
|---|---|
| Authentication | Cognito + Lambda@Edge JWT |
| Authorization | Persona × country whitelist (only P5 Compliance can write RegulatorySignal) |
| PII | ABO tree visualization exposes only masked IDs |
| Guardrails | 4 topics + direct selling + minors + HFF + multi-country ad-language review |
| Audit | CloudTrail + Audit DynamoDB (Compliance daily activity report) |
5. Cost (8-week PoC)
| Item | Estimate |
|---|---|
| Bedrock Sonnet | Chatbot 15K/month (multilingual lengthens responses) |
| Cohere multilingual | 60K/month |
| Neptune | r6g.large 1 node (700K edges) |
| OpenSearch Serverless | 3 OCU |
| Step Functions | Subscription state processing |
| Monthly estimate | Approximately $5K–$7K USD |
6. PoC Milestones (8 weeks)
| Week | Work |
|---|---|
| 1–2 | Infrastructure + data ingestion (in-house + 49.5K synthetic ABO tree + external) |
| 3 | S1 · S2 · S3 |
| 4 | S9-A ABO Tree + S10-A subscription |
| 5 | S5 · S7 |
| 6 | S11-A regulatory + S8 guardrails |
| 7 | S4 · S6 |
| 8 | Demo rehearsal |