High-level design
Kept current by Pilot · docs/architecture/hld.md · v14Users
ShoppersWeb · mobile web Merchantsmerchant-portal · APIExternal systems
StripePayments · webhooks ERPPaid orders · queue Claude via BedrockSearch · tagging SentryErrorsContainers
| Container | Tech | Runs | Scale | Data | Status |
|---|---|---|---|---|---|
| web | Rails 8.1 · Puma · Thruster | auh-1 | 3 → 6 auto | postgres · assets | 2 gaps |
| jobs | Solid Queue | auh-1 | 2 fixed | postgres · ERP | 3 gaps |
| postgres | PostgreSQL 17 | auh-1 + dxb-1 replica | 40 GB | PII · orders · customers | 1 gap |
| assets | S3-compatible · CDN | auh-1 | — | Images · receipts | OK |
| ai-gateway | Claude · GPT · bge-m3 | auh-1 | Scale to zero | Prompts not stored | 1 gap |
Non-functional
SLO · RTO · RPONot declared
Missing
Regionsauh-1 active · dxb-1 standby
OK
Data residencyUAE only · backups in-country
OK
BackupsDaily · PITR 7 d
OK
Decisions
No ADRs in repo
Solid Queue over Redis-based queueInferred from Gemfile and config
pgvector over a separate vector DBInferred from migrations
Bedrock for UAE data residencyInferred from AI routes