Deployment Overview
MoroJS supports multiple runtime environments out of the box. Deploy your APIs anywhere from traditional servers to modern edge computing platforms.
Multi-Runtime Architecture
Write your API once and deploy it anywhere. MoroJS automatically adapts to different runtime environments:
- Same codebase works across all platforms
- Automatic runtime detection and optimization
- Platform-specific features when available
- Consistent API across all environments
Universal Deployment Code
typescript
Supported Runtimes
Node.js
Traditional server deployment with full feature support
- Full HTTP/WebSocket support
- File system access
- All middleware
- Database connections
Vercel Edge
Ultra-fast edge runtime for global distribution
- Global edge network
- Instant cold starts
- Auto-scaling
- Zero config deployment
AWS Lambda
Serverless deployment with AWS ecosystem integration
- Pay per request
- Auto-scaling
- AWS integrations
- Event-driven architecture
Cloudflare Workers
Edge computing with global distribution
- V8 isolates
- Global network
- KV storage
- Durable objects
Quick Deploy Examples
Vercel
vercel.json
typescript
api/[...route].ts
typescript
Docker
Dockerfile
typescript
Runtime Performance
Runtime | Cold Start | Throughput | Best For |
---|---|---|---|
Node.js | ~200ms | 68k+ req/sec | APIs, WebSockets, File processing |
Vercel Edge | ~50ms | 45k+ req/sec | Global APIs, CDN integration |
AWS Lambda | ~300ms | 40k+ req/sec | Event processing, AWS integration |
Cloudflare Workers | ~10ms | 50k+ req/sec | Edge computing, Global distribution |