Realtime
Pricing
Upstash Realtime is designed to be extremely cost-efficient. With minimal Redis commands per operation and smart connection management, you can build real-time features at scale without worrying about costs.
Upstash Realtime is built on Redis Streams and Pub/Sub. Every operation translates to one or more Redis commands, detailed below.
Command Overview
Client-Side Operations
When using useRealtime in your React components:
| Operation | Commands | Count |
|---|---|---|
| Initial connection | SUBSCRIBE, XRANGE | 2 |
| Reconnection every 300 seconds | UNSUBSCRIBE, XRANGE, SUBSCRIBE | 3 |
| Ping to keep connection alive every 60 seconds | PUBLISH | 1 |
Server-Side Operations
When using the server-side API:
| Operation | Commands | Count |
|---|---|---|
| Emit event | PUBLISH, XADD | 2 |
Emit with expireAfterSecs | PUBLISH, XADD, EXPIRE | 3 |
| Read history | XRANGE | 1 |