Skip to content

Hosting Overview

TradePsykl's hosting strategy and platform choices.


Architecture

Hybrid hosting optimized for cost efficiency and developer focus:

  • Static Sites → Cloudflare Pages (docs, future UI)
  • Backend → Railway (API, Engine containers)
  • Database → MongoDB Atlas (free tier)
  • Auth → Cloudflare Access + Auth0

Platforms

Cloudflare Pages

Static site hosting (documentation, future UI)

Status: ✅ Active (docs deployed)

Cost: $0/month (unlimited bandwidth, 500 builds/month)

Details: cloudflare-pages.md

Cloudflare Access

Zero-trust authentication for docs

Status: ✅ Active (GitHub org members)

Cost: $0/month (up to 50 users)

Details: cloudflare-pages.md → Authentication

Railway

Backend container hosting (planned)

Status: ⏸️ Waiting for production-ready backend

Cost: $5-20/month estimated

MongoDB Atlas

Primary database

Status: Development (local Docker), production migration planned

Cost: $0/month (free tier: 512MB)


Cost Comparison

ArchitectureMonthly Cost
Current Plan (Cloudflare + Railway)$5-20
Azure Container Apps$49-165

Savings: ~90% vs. Azure

Rationale: Minimize cognitive load, focus on trading system vs. infrastructure operations

Details: docs/architecture/04-decisions.md → Hosting approach


Implementation Status

Phase 1: Documentation ✅

  • [x] Cloudflare Pages deployment
  • [x] Cloudflare Access (GitHub org auth)
  • [x] Automatic builds

Status: Complete (November 2025)

Phase 2: Backend (Planned)

  • [ ] Railway project setup
  • [ ] API + Engine deployment
  • [ ] MongoDB Atlas migration
  • [ ] Secrets management
  • [ ] Production observability

Phase 3: UI (Future)

  • [ ] Deploy to Cloudflare Pages
  • [ ] Auth0 integration

Phase 4: Auth0 Migration (Future)

  • [ ] Auth0 IdP in Cloudflare Access
  • [ ] Unified auth across docs/UI

References

Documentation generated with VitePress