This blog post isn't really a proper post, more of a way in which I can remember how to use MQTT for future projects.
Feel free to refer to this and of course comment :)
What is MQTT?
MQTT: Message Queuing Telemetry Transport.
A lightweight machine to machine protocol