Skip to content

Technology Comparisons & Architectural Decisions ​

1. Cloud Execution: WebContainers vs Docker Containers on AWS ​

Comparison FactorWebContainers (Used)Cloud Docker (AWS ECS)
Server Compute Cost$0 (Runs in User Browser)$50-$500+/month per active cluster
Startup Latency$<1 second$$15-45$ seconds (Container provisioning)
ScalabilityInfinite (Zero server bottleneck)Limited by cloud server capacity
Security IsolationBrowser Sandbox (Same-Origin)Linux cgroups / VM isolation
  • Why WebContainers: Eliminates server-side sandbox hosting costs and delivers instant startup times directly inside the user's browser. [CONFIRM WITH DEVELOPER]

2. Real-Time Transport: Socket.IO vs Raw WebSockets vs WebRTC ​

Comparison FactorSocket.IO (Used)Raw WebSocketsWebRTC DataChannels
Room MultiplexingNative socket.join(room)Manual implementationComplex peer signaling
Reconnection & FallbackAutomatic HTTP long-pollingManual reconnection loopsComplex peer mesh
Ecosystem & LibrariesMassive Node/React ecosystemLow-level protocolHeavy peer-to-peer setup
  • Why Socket.IO: Built-in room abstractions and automatic reconnection guarantees smooth pair programming over unreliable network connections.