Too Long; Didn't Read
A social network needs to instantly show a new message from another user without reloading a page. The most widespread architecture is: a web browser connects to a server via a WebSocket (a particular type of connection that is established once and is maintained after that) A WebSocket microservice subscribes to the user's private messaging channel. At some point, a web server publishes a message to a channel, and a WebSockets microservice sends it to the browser. Redis implements the Pub/Sub model using the example of private messages in the messenger example.