Many in the IoT community are settling on a three-tier architecture for the Internet-of-Things. The ‘Things’, IoT Gateways, and Cloud/Data-center. IoT gateways provide a useful de-coupling function between the machine world and the web/enterprise world. See the VMware CTO blog for a deeper discussion of this topic.