Virendra Wadher, Nov 27. 10 min read
In this tutorial, we are discussing about real time messaging app. They are essential part of our day to day life. But have you thought how this application work. We are going to discuss about one of real time messaging application Whatsapp.
Before diving into mechanism of whatsapp,let's understand 'How communication works ?'
If two clients(Computer 1 and Computer 2 ) want to communicate or send messages to each other, first address of each computer shouls been known to each other(It may be IP, MAC, or any customized uniques identity) and messages are exchange with each other over a network, in this case it is INTERNET.
But, what if number of clients are in millons and billons and network is very large?It becomes difficult to know the address of each and every client in a very large network, In this case we need componet between the clients called "SERVER" to make system more robust and highly available. The role of server is to coordinate between all the clients connected to it.
Now all clients makes connections with server instead of each other.
When client 1 want to send data to client 3, it first send data to server and server knows the address of client 3, then it forward data to client 3 and vice versa.
The special features about Whatsapp are,
Thanks for reading !!