How to use Redis Pub/Sub in Messengersby@vgukasov
3,394 reads

How to use Redis Pub/Sub in Messengers

tldt arrow
Read on Terminal Reader🖨️

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.

Company Mentioned

Mention Thumbnail
featured image - How to use Redis Pub/Sub in Messengers
Vladislav Gukasov HackerNoon profile picture

@vgukasov

Vladislav Gukasov

About @vgukasov
LEARN MORE ABOUT @VGUKASOV'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

RELATED STORIES

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa