DEV Community

Manda Putra
Manda Putra

Posted on

What are the right approach to build chat app that scale with

Hi I had a bit of thinking problem to figure it out how good chat app really are.

For this case I use, I think plain Websockets also use this similiar approach, I think...

Send message to user, private message

There a lot example outhere, and it involves saving the of a websockets, or id.

But what are the right approach? had rooms feature, could I just create new unique rooms if there are another people chatting?

Websockets can use redis pub/sub do I should create dynamic redis pub/sub to send messages?

Are these approach are okay if I had 100.000++ users conected to dynamic pub/sub or rooms mecanism?

There are tools called rabbitMQ, some people recomend it when building chat app or realtime app, what actually its do? It is simplify the app and easy to scale app?

What are message broker? Why is this keep recomended for building realtime apps?

Top comments (2)

mandaputtra profile image
Manda Putra

Yeah ~ let me take a look. Thanks for recomendation. I just wonder how they send private message to current users. How they use their service.

tingwei628 profile image

typo: "recomend" -> recommend