Nomos Cloudflare Migration
Migrate Nomos backend from Firebase/Cloud Run to Cloudflare primitives.
Current Backend
- Database: Cloud Firestore (document DB)
- Compute: Cloud Functions for Firebase
- Storage: Cloud Storage for Firebase
- Auth: Firebase Authentication
Target Backend (Primary)
Cloudflare primitives:
- Database: D1 (SQLite) + Durable Objects (actor state)
- Compute: Workers (edge functions)
- Storage: R2 (S3-compatible)
- Auth: Integrated with Workers (JWT validation)
Alternative Target
Convex as potential alternative:
- Database: Convex reactive database
- Compute: Convex functions
- Simpler model, less infrastructure control
Migration Strategy
- Abstract persistence layer in TypeScript port
- Implement Cloudflare adapter
- Run parallel backends during transition
- Migrate domain by domain
- Evaluate Convex for simpler domains
Financials
| Metric | Value |
|---|---|
| Expected Revenue | £0/mo |
| Expected Costs | £2,000/mo |
| Net Contribution | £-2,000/mo |
Timeline Variants
| Variant | Start | Duration | End | Status |
|---|---|---|---|---|
| Expected | M6 | 3mo | M9 | ✅ Included |
| Aggressive | M3 | 2mo | M5 | ✅ Included |
| Speed of Light | M2 | 1mo | M3 | ✅ Included |