You need to broadcast live pricing updates from your service to tens of thousands of connected clients. Clients that disconnect temporarily do not need to receive missed messages. Which approach should you use with Azure Cache for Redis?
Choose an answer
Tap an option to check your answer.
Correct answer: Publish updates to a Redis Pub/Sub channel (for example, prices) and have clients SUBSCRIBE or PSUBSCRIBE (for example, prices.*); accept that messages are not queued for disconnected clients..
Why this is the answer
The correct approach is to use Redis Pub/Sub channels. Pub/Sub is designed for broadcasting messages to multiple subscribers without guaranteeing delivery to disconnected clients, which aligns perfectly with the requirement that missed messages are not needed. Publishers send messages to a channel, and subscribers receive messages published to that channel. Redis Streams with consumer groups would queue messages for disconnected clients, which is explicitly not required. Keyspace notifications are for monitoring changes to Redis keys, not for broadcasting live updates. AOF persistence saves the Redis dataset to disk for durability and recovery, but it does not queue or replay published Pub/Sub messages to reconnecting clients.
Pass your exam — without the endless answer hunt
Get every verified question and explanation for this exam in one place, and save hours of prep. 1,000+ certifications · 20+ languages · free to start.
Pass your exam faster → No card needed