Deploy Upstash Realtime to providers that bill based on active CPU time. Great places to
deploy are Vercel with Fluid Compute enabled, Cloudflare, Railway, a personal VPS or any
other service that does not bill based on connection duration.
Deploying to Vercel
To deploy Upstash Realtime to Vercel, enable Fluid Compute for your project. For new projects, this is enabled by default. Fluid Compute allows for less cold-starts, has much higher function timeouts compared to serverless functions, and most importantly only bills for active CPU time. That way, you’re only billed for actual message processing time, not connection duration.
Billing Example
Traditional serverless connection billing:Serverless Billing
Fluid Compute Billing
Automatic Reconnection
The client automatically reconnects before your function timeout:page.tsx
Message Delivery Guarantee
Upstash Realtime is powered by Redis Streams:1
Client Connects
Establishes connection and subscribes to stream
2
Timeout Approaching
Client disconnects before function timeout
3
Automatic Reconnection
Client reconnects in milliseconds
4
Stream Replay
Redis auto-replays all messages sent during reconnect