Architecture: What WebSocket considerations exist for Cloudflare proxy on ...
Documentation for Sessions
🏗️ Architecture: What WebSocket considerations exist for Cloudflare proxy on ...
Date: 2026-02-07
Time: 20:34:35 UTC
Session: editor2-97.26
Agent: backend
Confidence: 82%
Status: ✅ Documented
📋 Decision Context
Question:
What WebSocket considerations exist for Cloudflare proxy on Vitto API?
Task: Cloudflare API security analysis for all backend services
🎯 Decision Made
Chosen:
Use standard Cloudflare proxy mode (orange cloud) with WebSocket support. Monitor connection limits — free plan supports ~100 concurrent WebSocket connections per domain. Upgrade to Pro ($20/mo) if limits are hit.
Options Considered:
- Proxy mode with WebSocket support
- DNS-only mode (grey cloud) to bypass Cloudflare for WebSocket
- Cloudflare Spectrum for dedicated WebSocket handling
💭 Reasoning
Cloudflare proxy supports WebSockets natively. Vitto API uses WebSockets for MCP gateway (mcp-gateway.gateway.ts). At current scale, free tier limits are sufficient. Grey cloud (DNS-only) would lose WAF/DDoS protection. Spectrum is Enterprise-only and overkill. Key action: verify Cloudflare plan limits before Vitto production launch, and monitor concurrent WS connections post-deployment.
📁 Files Involved
apis/backend-vitto-api/src/app/mcp-gateway/mcp-gateway.gateway.ts
🔗 Related
- Decision ID:
dev_1770496475908_jdt2ubq - Session: 97
- Workspace: editor2
Auto-generated by MCP Smart Consolidation