6 production-ready cookbooks for real-time messaging with Valkey. From basic PUBLISH/SUBSCRIBE to distributed consumer groups with Valkey Streams.
PUBLISH, SUBSCRIBE, and pattern matching. Your first real-time message in under 5 minutes.
Buffer and broadcast token-by-token LLM responses to multiple clients via Pub/Sub.
XADD, XREAD, and XRANGE for durable, ordered message queues. Pub/Sub vs Streams - when to use which.
Distributed stream processing with XREADGROUP, acknowledgments, pending entries, and dead-letter handling.
One producer → many consumers. Multi-client delivery for AI agent events, notifications, and real-time dashboards.
Backpressure with MAXLEN, monitoring with XINFO, reconnection strategies, and scaling patterns.