Understanding Redis Pub/Sub Limitations: No Persistence
📖 Scenario: You are building a simple chat application using Redis Pub/Sub. You want to understand how messages are delivered and what happens if a user is offline.
🎯 Goal: Create a Redis Pub/Sub setup that demonstrates message publishing and subscribing, and observe the limitation that messages are not stored if the subscriber is offline.
📋 What You'll Learn
Create a Redis channel named
chatroomSubscribe to the
chatroom channelPublish messages to the
chatroom channelDemonstrate that messages sent while subscriber is offline are not received
💡 Why This Matters
🌍 Real World
Many chat apps and real-time systems use Redis Pub/Sub for instant messaging but must handle the limitation that messages are not saved if users are offline.
💼 Career
Understanding Redis Pub/Sub limitations is important for backend developers and system architects designing real-time communication systems.
Progress0 / 4 steps