How does WhatsApp technology works?

Whats App is Chat application. WhatsApp is a texting service between mobile phones as a replacement for the regular SMS text messages. Over millions users are active worldwide using the Whatsapp service. Whatsapp uses an internet connection between phones. The service is available for iPhone, Blackberry, Android and Nokia Symbian60-phones.

How does WhatsApp technology works?
The major difference between regular SMS text messages and Whatsapp text messages is that Whatsapp is free: You use the internet connection on your phone (wifi or part of you mobile data package depending on subscription or pre paid type).

We call them Instant Messaging.  This means the messaging between sender and receive should happen in real time, unlike email (offline).

So you need to first understand challenge here to understand how chat apps work.  If you store something on database, then you pass again to another user, it becomes offline (not in real time).  If you pass any message and it stores and also pass at same to other user, it becomes IM (Instant messaging). 

Now in development, there are different PROTOCOLS that help achieve things.

For Emails its: SMTP, POP3 etc.
For Chat its: XMPP (Extensible Messaging and Presence Protocol)

It is protocol based on another format named XML (like html, not exactly, but to give you idea).  Using XMPP protocol, XML as communication medium and setting up this on a server, that host it and helps pass all communication and also setup logic on this server (Basically coding).  So there are many server created with protocol XMPP like eJabber.

Interestingly, WhatsApp is related to "Yowsup" , a Python library.  Python is a programming language on which Quora, YouTube etc. are built! You can find this Yowsup library on tgalal/yowsup.

So now lets put together all above information.
A user A has internet and a client application (whats app) installed on say Android phone), A user B has internet and has same client application (Whatsapp) installed on his iPhone. (So basically cross platform).

A types message "Hi" to B.  The message is passed via Web Services to XMPP server, The XMPP server has list of all WhatsApp user, based on unique phone number, it will detect B and XMPP server will then send message "Hi" to B with web service.  B will recieve this message on iPhone.  In between there will coding done with business rules on server, database level and on client applications as well. 

Whatsapp is implemented at server end over the protocol XMPP. Exactly it is done on XMPP lite which is well established open source chat engine. 

XMPP (Extensible Messaging and Presence Protocol)
What is the Technology behind WhatsApp?
WhatsApp uses a customized version of the open standard Extensible Messaging and Presence Protocol (XMPP) upon installation. WhatsApp automatically compares all the phone numbers from the device's address book with its central database of WhatsApp users to automatically compares all the phone numbers from the devices address book with its central database of WhatsApp users to automatically add contacts to the users WhatsApp contact list.

XMPP

What is Extendible Messaging and Presence Protocol (XMPP) ?
The Extensible Messaging and Presence Protocol (XMPP) is an application profile of the Extensible Markup Language (XML) for streaming XML data in close to real time between any two or more network-aware entities. The address format for XMPP entities was originally developed in the Jabber Open Source Community in 1999. It functions between or among servers, and facilitates near-real-time operation. The Protocol may eventually allow internet users to send instant messages to anyone else on the Internet, regardless of differences in Operating systems and browsers. 

XMPP is sometimes called the Jabber protocol, but this is a technical misnomer. Jabber, an IM application similar to ICQ (I Seek You) and others, is based on XMPP, but there are many applications besides Jabber that are supported by XMPP. The IEEE XMPP working group, a consortium of engineers and programmers, is adapting XMPP for use as an Internet Engineering Task Force (IETF) technology. 

In addition, the Messaging and Presence Interoperability Consortium (MPIC) is considering XMPP as an important interoperability technology. Eventually, XMPP is expected to support IM applications with authentication, access control, a high measure of privacy, hop-by-hop encryption, end-to-end encryption, and compatibility with other protocols.


Database management
For the database management Mnesia DB comes into play. Mnesia is a multiuser distributed DBMS which happens to be the default DB of ERLANG. Thus by using Mnesia, the app is able to achieve quicker request responses, thereby improving the overall efficiency.

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.

Author:

Facebook Comment

Tags

Ideas Internet Tips updates Blogging Education Software new Mobiles What’s New Online Design life SEO other HEALTHY LIFE Computer health Green Living us mattress Sleep Mattresses best mattress inexpensive mattresses for sale king size mattress size (Green Living) Make Money online e-learning mattress sizes single mattress deals sleep mattress best type of mattress for side sleepers mattress selector tool mattress size memory foam mattress nectar mattress reviews Project:LOVE NATURE be green best memory foam mattress building green buy sleep double bed spring mattress price go green home remedies for good sleep how to get a good night sleep mattress dealers mattress mattress tips on how to sleep through the night 2019 web development trends 4Sleep 7 day programmable thermostat Bamboo Vs Cotton Bed Sheets Bamboo vs. Cotton Best Advice for Choosing The Best Sleep Best Sleep Mattress For Back Pain Choose a Best Sleep Mattress for Your Preferred Sleep Position Eco Friendly Products That Really Make a Difference Eco-Friendly Eco-Friendly Tips for Saving Money Green Kitchen Helix Know the History Facts About the Memory Foam Mattress Mother's Day 2018 Mother's Day Best Unique Gift Ideas 2018 NASA Memory Foam Technology POS (Point of Sale) Receipt Printer Printer Spring Mattress The Basics of Cryptocurrency Why Choose to Go Eco-Friendly? (Green Living) adjustable beds amerisleep as3 aviya azza mattress bedroom beds for sale best mattress for sleep apnea best mattresses for back pain best websites 2019 casper mattress cheap mattress choose a mattress for back pain choose mattress india choose mattress usa digital thermostat dozebeds eco friendly eco friendly cooking eco friendly electric stove eco friendly kitchen appliances eco friendly living room eco friendly living tips eco friendly paper eco friendly things in our house go green images good night's sleep meaning green living show green news honeywell thermostat how to be a web designer from home how to become a professional web designer how to become a web designer from home how to become web designer career how to choose a mattress for back pain how to choose a web designer how to choose sleep mattress how to make your home environmentally friendly how to sleep better at night naturally king mattress leed certification canada leed certification checklist leed certification cost leed certification exam leed certification wiki leed platinum buildings loom & leaf make your home green mattress mattress america reviews mattress buying guide mattress for kids memory foam density guide memory foam mattress buying guide memory foam mattress information memory foam mattress reviews minimalist web design 2019 naturally needle mattress new website trends 2019 nomad mattress programmable thermostat home depot queen mattress revive mattress revive mattress r2 saatva should i buy a memory foam mattress sleep at night fast sleep mattress near me sleep mattress reviews sleep mattress usa sleep number bed smart thermostat spring mattress king size spring mattress pocket spring mattress india spring mattress price sustainable living communities the matress thermostat thermostats top web design trends 2019 twin mattress viola ways to go green web design trends 2019 website trends for 2019 what is a green apartment which mattress is good spring or coir or foam winkbeds zenhaven