Skip to content

In this design system, I have leveraged Redis pub/sub and multiple web socket servers to create a chat application that can scale both vertically and horizontally. ๐Ÿ“ˆ

Notifications You must be signed in to change notification settings

BharathxD/Realtime-Chat-Engine-with-Horizontal-Scalability

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

46 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

A Chat Application that Scales Horizontally with WebSockets and Redis

The Chat Application Architecture

In this design system, I have leveraged Redis pub/sub and multiple web socket servers to create a chat application that can scale both vertically and horizontally. ๐Ÿ“ˆ

Here's a simplified breakdown of its functionality

1๏ธโƒฃ Three Web Socket Servers are deployed, each subscribing to a Redis pub/sub.

2๏ธโƒฃ The web socket server quickly publishes incoming messages to the Redis pub/sub.

3๏ธโƒฃ The other connected web socket servers efficiently receive and emit the messages to all connected clients, ensuring real-time delivery. โšก๏ธ

So, whenever there are two users who are connected to two different web-socket servers, they can still maintain real-time communication by leveraging the help of this Publish-Subscribe pattern.

This design system empowers chat applications to handle increased traffic and seamlessly scale horizontally. ๐ŸŒ๐Ÿš€

About

In this design system, I have leveraged Redis pub/sub and multiple web socket servers to create a chat application that can scale both vertically and horizontally. ๐Ÿ“ˆ

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published