Skip to content

Deployment Guide

Stoma runs on any JavaScript runtime. Choose your deployment target below.

Cloudflare Workers

Deploy to the edge with Cloudflare Workers. Full support for Service Bindings, KV, Durable Objects, and Cache API.

Deploy to Cloudflare →

Node.js

Traditional Node.js deployment with Express, Fastify, or standalone HTTP servers.

Deploy to Node.js →

Docker

Containerize your gateway with Docker. Includes Alpine and multi-stage build examples.

Deploy with Docker →

RuntimeAdapterStorageBest For
Cloudflare WorkerscloudflareAdapterKV, Durable ObjectsEdge-first, global latency
Node.jsnodeAdapterIn-memory / RedisTraditional servers
DockermemoryAdapterIn-memory / RedisContainers, Kubernetes
BunbunAdapterIn-memoryFast servers, Serverless

Choose edge deployment when you need:

  • Global low latency
  • Zero cold starts
  • Built-in DDoS protection
  • Auto-scaling without configuration

Choose containers when you need:

  • Kubernetes/ECS integration
  • Full control over runtime
  • Complex networking setups
  • Existing container infrastructure

Choose server deployment when you need:

  • WebSocket support
  • Long-running processes
  • Complex state management
  • Integration with existing Node.js services