π Scalability
A step-by-step scaling roadmap from MVP to 1M+ users
Scaling Targetsβ
| Phase | Users | TPS | Infra |
|---|---|---|---|
| Phase 1 (Now) | ~10,000 | 100 | Cloudflare + Supabase |
| Phase 2 (Q3 2025) | ~100,000 | 1,000 | Multi-region + Cache |
| Phase 3 (Q1 2026) | ~1,000,000+ | 10,000+ | Kubernetes + Sharding |
Current Infrastructure (Phase 1)β
βββββββββββββββββββββββββββββββββββββββββββββββ
β Cloudflare Global CDN β
β ββββββββββββββ ββββββββββββββββββββββ β
β β Pages β β Workers β β
β β (Frontend) β β (API Gateway) β β
β ββββββββββββββ ββββββββββ¬ββββββββββββ β
ββββββββββββββββββββββββββββββΌββββββββββββββββ
β
ββββββββββ΄βββββββββ
β Supabase β
β (PostgreSQL) β
β + Auth + RLS β
ββββββββββ¬βββββββββ
β
ββββββββββ΄βββββββββ
β Upstash Redis β
β (Cache) β
βββββββββββββββββββ
Phase 1 Specsβ
- Frontend: Cloudflare Pages (Global CDN, auto-deploy)
- Backend: Cloudflare Workers (edge serverless)
- Database: Supabase PostgreSQL (Free β Pro plan)
- Cache: Upstash Redis (serverless)
- Blockchain: Sui Testnet β Mainnet
Phase 2: Multi-Region Scalingβ
- Database: Supabase read replicas (Asia / US / EU)
- Cache: Regional Redis clusters
- CDN: Cloudflare Argo for faster routing
- Queue: BullMQ for async task processing
- Monitoring: Grafana + alerts
Phase 3: Enterprise Scalingβ
- Container Orchestration: Kubernetes (EKS / GKE)
- Database: PostgreSQL horizontal sharding (Citus)
- Microservices: Per-service independent scaling
- Event Streaming: Kafka for inter-service communication
- Observability: OpenTelemetry + Jaeger tracing
Blockchain Scalabilityβ
| Aspect | Current | Target |
|---|---|---|
| Primary Chain | Sui (100K+ TPS) | Sufficient for Phase 3 |
| Cross-Chain | β | EVM Bridge + Cardano Bridge |
| State Storage | On-chain objects | Off-chain indexing + on-chain proofs |
| Batch Processing | β | zkProof batch settlements |
Monitoring & Observabilityβ
| Layer | Tool | Metrics |
|---|---|---|
| Frontend | Cloudflare Analytics | Page views, Core Web Vitals |
| API | Grafana | Latency, error rate, throughput |
| Database | Supabase Dashboard | Query performance, connections |
| Blockchain | SuiScan | Tx count, gas usage, module calls |
| Infrastructure | Uptime Robot | Availability, response time |