+ 2

How a messaging app like whatsapp store messages and other data on server?

I am developing a chat application with MERN stack using Socket.io, i want to know how should i store the text messages to Mongo db, Do i need to make POST request everytime to server whenever some user sends a message. I believe this will increase the load on server too much.

2nd Dec 2021, 2:19 AM
Prabhjot Singh
Prabhjot Singh - avatar
1 ответ
+ 2
I Don't Know How Exactly They Do It But, I Have Developed A Public Chatting App! It Wasn't Easy But, I Did It! I Used Node JS WebSockets For The Backend. You Will Find Lots Of Videos On Youtube On How To Learn It! In My Chat Unlimited People Can Join From All Around The World And Chat! The Fast Speed & Use Of WebSockets Is Really Nice. And Guess What? It Doesn't Use Any Extra File Store The Messages! After I Restart The Server, The Server & Message Also Resets! My Chat App Code Is Privatized So, If You Want It You Can Ask... Happy Coding 😊
2nd Dec 2021, 3:57 AM
Sancho Godinho
Sancho Godinho - avatar