This repository contains a Wiki describing some of the things you need to think about when starting with MQTT and publish-subscribe applications in general.