MQTT — Future of mobile app communication

Shubhanshu Singh
3 min readMar 14, 2016

#TrySomethingNew
Stop exploiting the protocol intended for WEB (HTTP), try MQTT to make your user happy, designed for MOBILE.

It’s the 21st century, and we are still using age old protocol that’s suffocating and not meant for what it’s been intended to do.

For creating and building a better, richer user experience we need a lightweight protocol which delivers messages over low bandwidth or unreliable network. Reliability and bandwidth may vary from 2G network to high-speed WIFI, but can we afford to lose data or are we willing to write all kinds of complex logic to ensure message delivery, NO!!
Here we need a simple protocol which results in little footprint, hence MQTT.

We are always connected through smartphones, notebooks, and tablets, as technology evolves the user experience is constantly changing and requires a system that can facilitate the transports of data in near real time to optimize his/her experience, making it better day by day.

The conventional old request/response model does not work for many of today’s current scenarios.To ensure that user the experience is satisfactory, messaging applications must be able to deliver stable, reliable behavior in an unreliable or an intermittently connected wireless environment.For example, a promotion can be targeted at a particular consumer or segment of users at exactly the correct time based on the costumer’s previous preference and current geolocation that too at a speed of light….(just saying,not that fast though!)

MQTT is designed to overcome following limitations:
>Network Limitation,includes limited bandwidth,high latency,fragile connections.
>Device Limitation,includes limited memory or processing capabilities.

The protocol is open so that it can be simply integrated with other conventional solutions,check out the open source initiative PAHO by Eclipse Foundation. A pub-sub model,where sender & receiver are decoupled where publishers do not need to know who or what is subscribing to messages,and vice-versa.Features like automated message storage and retransmission, minimize developer’s task to ensure message delivery. Also keeps a track of session by a user and knows when it gets terminated, consequently any action can be performed,maybe a PUSH NOTIFICATION etc. ( there are many other possibilities based on developer’s creativity ).This protocol ensures delivery of most critical messages based on QOS (Quality of Service),plus there is no content format restriction as everything is in Byte Array.

A Simple Scenario : Taxi Booking App (An Idea)

So, whether it is e-commerce app , music app, taxi booking app or a travel app, etc. can leverage real-time MQTT system to it’s fullest and deliver user what they need, and promises to be a founding stone to what we call it as ‘Internet Of Things’.

A perfect fit for all your mobile app’s need,try it.

QUICK FIGHT RESULTS - HTTP vs MQTT

Use Cases

P.S. Thanks for reading this far! I’d really appreciate it if you recommend this post so other people can see it!.

--

--

Shubhanshu Singh

Tech Enthusiast, fascinated by the power of internet. exCTO @HalaPlayDotCom, exTech-Lead @MoEngage.