Complete the code to subscribe to a Redis channel named 'news'.
SUBSCRIBE [1]The SUBSCRIBE command listens to the specified channel. Here, 'news' is the correct channel name.
Complete the code to publish the message 'Hello' to the 'news' channel.
PUBLISH [1] 'Hello'
The PUBLISH command sends a message to the specified channel. Here, 'news' is the correct channel.
Fix the error in the code to subscribe to multiple channels: 'news' and 'updates'.
SUBSCRIBE [1] [2]
The SUBSCRIBE command accepts multiple channel names separated by spaces, not commas or quotes.
Fill both blanks to explain why messages sent before subscription are missed.
Redis Pub/Sub [1] messages and [2] them for later delivery.
Redis Pub/Sub does not store or queue messages. If a client is not subscribed when a message is sent, it misses that message.
Fill all three blanks to describe a limitation of Redis Pub/Sub.
If a subscriber [1] before a message is published, it [2] the message because Redis Pub/Sub [3] persistence.
If a subscriber disconnects before a message is published, it misses the message because Redis Pub/Sub lacks persistence.