Redis
Redis serves multiple roles in Tracera, handling everything from caching to real-time message broadcasting.Roles
| Role | Data Structure | Purpose |
|---|---|---|
| Price Cache | String/Hash | Latest prices for instant reads |
| Pub/Sub | Channels | Broadcasting price and volatility updates |
| Volatility Rankings | Sorted Sets | Ranked list of most volatile items |
| Session Store | String | SCS session data with TTL |
| Rate Limiting | String (counter) | Per-IP request counters with TTL |
| Magic Link Tokens | String | One-time-use tokens with 10-minute TTL |
| Import Cooldown | String | Per-user portfolio import cooldown |