Use cases
Pub/Sub
-
Redis Pub/Sub (Publish/Subscribe) is a messaging pattern where clients can subscribe to channels, and other clients can publish messages to these channels. Clients that are subscribed to a channel receive all the messages published to that channel. This messaging pattern is useful for broadcasting messages to multiple clients.
Redis Streams
-
A data structure that acts like an append-only log.
-
The main advantages of Redis Streams are the highly efficient consumer groups, allowing groups of consumers to uniquely consume from different parts of the same stream of messages, and the blocking operations that allow a consumer to wait until a new data is added to the stream.
-
You’re Probably Thinking About Redis Streams Wrong (opens in a new tab)
-
Harness - Event-Driven Architecture Using Redis Streams (opens in a new tab)
Cache-aside (Lazy-loading)
- Improves read performance
Write-Behind (Write-Back)
-
Improves write performance
-
Resources