Tuesday, May 5, 2015

How Whatsapp works internally & Build a clone app similar to Whatsapp

WhatsApp is the most sought after messaging application that has revolutionized the messaging app market and has inspired a bunch of clones and competitors as well. On the flipside, many among those cloning attempts are unable to match the standards of WhatsApp.

WhatsApp clones which promise to have similar functionalities of the market giant are either a mere email messaging systems showcased as a messaging system or doesn’t use/follow even half of the technical aspects of WhatsApp.
With that said, it has become a necessity to know the functioning mechanism and technicalities behind whatsapp, especially for those aiming to come up with an instant messaging application as sturdy and versatile as Whatsapp.


How does Whatsapp messaging app work and what are the technical sources behind it?


Whatsapp is real-time messaging application which makes use of Ejabbered (XMPP) server. This server facilitates instant message transfer between two or many users at any given second.

ERLANG is the programming language used by WhatsApp. Optimizing ERLANG the app has managed to achieve better speeds. In fact WhatsApp’s ERLANG optimizing techniques are one of the best examples for the language’s performance.

Managing message exchanges between millions of nodes is managed by monitoring the message queue length. The length of the message queue of all the processes associated with a node is monitored. An alert message is sent if the message queue length exceeds the preset threshold limit.
Whatsapp Internal Structure

FreeBSD is the operating system upon which WhatsApp is laid upon. Improvising on the ERLANG based applications and optimizing FreeBSD, WhatsApp is able to achieve better throughput. For storing multimedia files, the app uses an exclusive web server YAWS.

Source link : http://bit.ly/1GKFINb