0
0
Redisquery~5 mins

Pub/sub limitations (no persistence) in Redis - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is a key limitation of Redis Pub/Sub regarding message delivery?
Redis Pub/Sub does not store messages. If a subscriber is offline when a message is published, it will miss that message.
Click to reveal answer
beginner
Why can't Redis Pub/Sub guarantee message delivery to all subscribers?
Because Redis Pub/Sub sends messages only to currently connected subscribers and does not save messages for later delivery.
Click to reveal answer
intermediate
How does Redis Pub/Sub handle message persistence?
Redis Pub/Sub does not support message persistence; messages are transient and lost if no subscriber is listening at publish time.
Click to reveal answer
intermediate
What happens if a subscriber disconnects and then reconnects in Redis Pub/Sub?
The subscriber will not receive any messages published while it was disconnected because Redis Pub/Sub does not store messages.
Click to reveal answer
advanced
Name one alternative to Redis Pub/Sub if message persistence is required.
Redis Streams or message brokers like RabbitMQ or Kafka, which support message persistence and replay.
Click to reveal answer
What happens to messages in Redis Pub/Sub if no subscriber is connected at publish time?
AMessages are stored and delivered later
BMessages are lost immediately
CMessages are queued until a subscriber connects
DMessages are saved to disk
Which feature is NOT supported by Redis Pub/Sub?
AReal-time message delivery
BMessage persistence
CMultiple subscribers
DTopic-based messaging
If a subscriber disconnects, what happens to messages published during that time in Redis Pub/Sub?
AThey are delivered when the subscriber reconnects
BThey are stored in a queue
CThey are lost
DThey are sent to other subscribers only
Which Redis feature can be used if you need message persistence instead of Pub/Sub?
ARedis Lists
BRedis Streams
CRedis Sets
DRedis Hashes
Why might Redis Pub/Sub be unsuitable for critical message delivery?
AIt is too slow
BIt requires complex setup
CIt does not guarantee message delivery
DIt only supports one subscriber
Explain the main limitation of Redis Pub/Sub related to message persistence and delivery.
Think about what happens if a subscriber is offline.
You got /3 concepts.
    Describe alternatives to Redis Pub/Sub when message persistence is needed and why.
    Consider systems designed for guaranteed delivery.
    You got /3 concepts.