Amazon proposes the following data flow for IOT. It is built with AWS and the recently acquired 2lemetry and its ThingFabric platform.
https://aws.amazon.com/iot/how-it-works/
https://www.linkedin.com/pulse/iot-aws-reinvent-quick-hits-matt-trevathan
Components: Rules Engine, Registry, Shadows (state tracking), Data based decisions, Integrations with AWS (Redshift, Lambda, S3, Kinesis, DynamoDB)
