architecting the internet of things darren hubert m256

52

Upload: barnard-skinner

Post on 31-Dec-2015

220 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Architecting the Internet of Things Darren Hubert M256
Page 2: Architecting the Internet of Things Darren Hubert M256

Architecting the Internet of ThingsDarren Hubert M256

Page 3: Architecting the Internet of Things Darren Hubert M256

Collecting information from lots of devices is cool - but it is just telematics.

Merging perspectives between devices, systems, and humans to build a better understanding of the world around us.

But tying together insight with action —there lies the promise of IoT.

Page 4: Architecting the Internet of Things Darren Hubert M256

Objectives

Understand what IoT means for IT architects!Learn the technologies, and how to begin applying them to deliver a modern IoT project!Be better able to talk to customers about IoT!

Page 5: Architecting the Internet of Things Darren Hubert M256

Session OverviewWhat is IoT, and why is it important?

Technologies Architects need to know

Quick real world example(s)

Common patterns and practices

IoT from an Architect’s perspective

Page 6: Architecting the Internet of Things Darren Hubert M256

Expectations

Level 200 ARCHITECTURE SessionThere will be no codeThere will be no ”flashing light” demos

Page 7: Architecting the Internet of Things Darren Hubert M256

IoT: The “Internet of Things”…

Page 8: Architecting the Internet of Things Darren Hubert M256

“ ”

The network of physical objects that contain embedded technology to communicate and interact with their internal states or the external environment.

Source: Gartner

Page 9: Architecting the Internet of Things Darren Hubert M256

25Billion (2020)

Source: Gartner

Page 10: Architecting the Internet of Things Darren Hubert M256

what is it?

Unique objects connected to InternetDevices, not peopleBi-directional communicationLarge, complex data flowsNew types of insight

Page 11: Architecting the Internet of Things Darren Hubert M256

why is it important?

Worldwide market for IoT solutions to reach $7.2 trillion in 2020 (IDC)Economic value-add is forecast to be $1.9 trillion across sectors in 2020 (Gartner)

Leading Industry examples : utilities, insurance, agriculture, factory, automobiles, transport, consumer, etc

Page 12: Architecting the Internet of Things Darren Hubert M256

IoT 2010

Cell phone

VoIP phone

HVAC

Computer

Vending

Printer

Security

Media player

Oven

Automobile

Smart scale

Refrigerator

Television

Microwave

Coffee maker

Alarm clock

HOME HOMEWORKPLACE

Page 13: Architecting the Internet of Things Darren Hubert M256

Sleep tracking

Home security Home automation Leak detection

Smart appliances

Indoor navigation

Health monitoring

Smart lighting

Pet tracking

Information capture

Trip tracking and car health

Control

Child and eldermonitoring

Sports and fitness

Air conditioning and temperature control Environmental

sensors

Behavior modification

Garden, lawn and plant care

Food and nutrition tracking

Beacons and proximity

New devices and sensors

Object tracking

Identity Smart vending machines

Medication adherence

Bike ride stats and protection

Entertainment systems

Office equipment

IoT 2015

HOME HOMEWORKPLACE

Page 14: Architecting the Internet of Things Darren Hubert M256

The Gartner Hype Cycle

Technology Trigger

Peak of Inflated

Expectations

Trough of Disillusionmen

t

Slope of Enlightenme

nt

Plateau of Productivity

Page 15: Architecting the Internet of Things Darren Hubert M256

The Gartner Hype Cycle

Page 16: Architecting the Internet of Things Darren Hubert M256

An Architect’s Perspective

Page 17: Architecting the Internet of Things Darren Hubert M256

POV: IoT is at an Inflection Point

Connectivity is

proliferating

Hardware Is getting

cheap

Cloud cost, scale,

flexibility

M2M solutions are mainstream

Software is more

advanced

Page 18: Architecting the Internet of Things Darren Hubert M256

General Technical Requirements

Volumes of Data

Vague Security

RequirementsEnd to End IntegrationMany Devices Large Scale

Page 19: Architecting the Internet of Things Darren Hubert M256

Information Exchange PatternsBasics of IoT Communication

Telemetry

Information flowing from a device to other systems for conveying status of device and environment

Inquiries

Requests from devices looking to gather required information or to initiate activities

Commands

Commands from other systems to a device or a group of devices to perform specific activities

Notifications

Information flowing from other systems to a device (group) for conveying status changes

Page 20: Architecting the Internet of Things Darren Hubert M256

IoT SolutionsHow to Solve those Basic Patterns

EndpointsCommand

RoutingMessage passing

Message Security

Publish-Subscribe

Page 21: Architecting the Internet of Things Darren Hubert M256

IoT Challenges

Data VolumeScale ConnectivityAddressing Device Size

Page 22: Architecting the Internet of Things Darren Hubert M256

First Principles

Data VolumeScale ConnectivityAddressing Device Size

Cloud Storage AMQP/MQTT

CloudPub/Sub Queues

Page 23: Architecting the Internet of Things Darren Hubert M256

Reference Architecture

Presentation Device, Event and Data ProcessingData Transport

Devices andData

Sources

Solution PortalProvisioning API

Device Identity & Registry

Analytics

Data Visualization

& Presentation

Device Management

Gateway

Storage

Low power

devices

ingestion

IP capable devices

Existing IoT

devices Event Processing

Page 24: Architecting the Internet of Things Darren Hubert M256

What Do Architects Need to Know?

Page 25: Architecting the Internet of Things Darren Hubert M256

Producers Data Transport Storage Analysis Presentation & action

Event Hubs (Service Bus)

SQL DatabaseMachine Learning

Azure Websites

Heterogeneous client agents

Table/Blob Storage

HD Insight/Storm

Mobile Services

External Data Sources

DocumentDBStream Analytics

Notification Hubs

External Data Sources

Cloud Services Power BI

External Services

{ }

Microsoft Azure IoT Services

Page 26: Architecting the Internet of Things Darren Hubert M256

Depth?

Page 27: Architecting the Internet of Things Darren Hubert M256

Event HubsTelemetry Ingestion ServicesScalable publish-subscribe telemetry ingestorsProcesses massive amounts of data (Generally Available WW)• 1M Publishers• 1 GB/S Ingress• 1T Messages/Month (1k per message)TTP/AMQP Protocol Support Pluggable adapters for other cloud services

Page 28: Architecting the Internet of Things Darren Hubert M256

DocumentDBFully managed NoSQL document db service

{ }

NoSQL JSON and JavaScript DB ServiceJSON DB for rapid DevelopmentSchema free – for storage and queryAutomatic indexing of every document propertyCRUD access, query, and JavaScript processing Integrates with HDInsight, Azure Search, etc.

{ }

Page 29: Architecting the Internet of Things Darren Hubert M256

Azure HDInsight100% Apache Hadoop-based service in the cloudScales from terabytes to petabytes on demandProcesses unstructured or semi-structured data from devices and sensorsDeployable in Windows or LinuxConnects with on-premises Hadoop clusters Apache Storm for real-time events Apache Spark for in memory data analysis

Page 30: Architecting the Internet of Things Darren Hubert M256

Azure Stream AnalyticsProcess real-time data in Azure. “Data in Motion”Real Time AnalyticsIntake millions of events per second (up to 1 GB/s)Correlate between different streams, or with static data or modelsEasy processing on continuous streams of dataEnables the detection of anomalies. Ability to trigger an alert when a specific error or condition appears.

Page 31: Architecting the Internet of Things Darren Hubert M256

Azure Machine LearningCloud based predictive analytics engine

Designed for “applied” machine learning, Streamlined experience for data scientists, across multiple skill levelsDrag-and-drop, and data-flow graphs to set up experimentsBuild and test predictive models, predict future trends or behaviorPublish models as a fully managed web service (API)

Raw materials Acquire Raw Materials

Transform raw materials into “finished goods”

Deliver

Data Sources

Ingest Transform and Analyze Publish

Page 32: Architecting the Internet of Things Darren Hubert M256

Azure Notification HubsScalable mobile push notification engineTarget millions of devices/messages with single API call. Target audiences with dynamic tags. Tailor notifications by audience, language, and locationUse with any back end, in the cloud or on-premisesDynamically define and reach audience segments

Page 33: Architecting the Internet of Things Darren Hubert M256

Microsoft PowerBILive, single pane of glass dashboard solution for visualizations and KPIs Cloud based business analytics service:• Track data in real-time with support for streaming data• Drill through to underlying reports to explore and discover new

insight• Pin new visualizations and KPIs to monitor performance

Page 34: Architecting the Internet of Things Darren Hubert M256

IoT Cloud Patterns

Page 35: Architecting the Internet of Things Darren Hubert M256

Field Gateway

Device Connectivity & Management

IoT Device & Cloud PatternsD

evi

ces

RTO

S, L

inux,

Win

dow

s, A

ndro

id, i

OS

Cloud Gateway

Event Hubs

Field Gateway

Protocol Adaptation

Event Hubs• High scale telemetry ingestion

service• HTTP/AMQP protocol support• Each Event Hub supports

• 1 million publishers• 1GB/s ingress

• Generally available worldwide• 1 Trillion messages/month

Page 36: Architecting the Internet of Things Darren Hubert M256

Field Gateway

Device Connectivity & Management

IoT Device & Cloud PatternsD

evi

ces

RTO

S, L

inux,

Win

dow

s, A

ndro

id, i

OS

Cloud Gateway

Event Hubs

Field Gateway

Protocol Adaptation

Additional IoT Requirements• Command & control• Device identity• Device registry• Device management

Page 37: Architecting the Internet of Things Darren Hubert M256

Field Gateway

Device Connectivity & Management

IoT Device & Cloud PatternsD

evi

ces

RTO

S, L

inux,

Win

dow

s, A

ndro

id, i

OS

Cloud Gateway

Event Hubs&IOT Hub

Field Gateway

Protocol Adaptation

Protocol Adaptation

IoT Hub• Capability coming with Azure IoT

Suite• Bi directional D2C and C2D• Up to 10M devices• Telemetry ingestion• Command & control• Device registry & identity• Device Management• More…

Page 38: Architecting the Internet of Things Darren Hubert M256

Hot Path Business Logic

Service Fabric & Actor FrameworkField Gateway

Device Connectivity & Management

IoT Device & Cloud PatternsD

evi

ces

RTO

S, L

inux,

Win

dow

s, A

ndro

id, i

OS

Cloud Gateway

Event Hubs&IOT Hub

Field Gateway

Protocol Adaptation

Protocol Adaptation

Analytics & Operationalized Insights

Batch “Cold Path” Analytics

Azure HDInsight, DocumentDB, Azure ML

Hot Path Analytics

Azure Stream Analytics, Azure HDInsight (Storm)

{ }

{ }

Page 39: Architecting the Internet of Things Darren Hubert M256

Hot Path Business Logic

Service Fabric & Actor FrameworkField Gateway

Device Connectivity & Management

IoT Device & Cloud PatternsD

evi

ces

RTO

S, L

inux,

Win

dow

s, A

ndro

id, i

OS

Cloud Gateway

Event Hubs&IOT Hub

Field Gateway

Protocol Adaptation

Protocol Adaptation

Analytics & Operationalized Insights

Presentation & Business Connectivity

Presentation &

Business Connectivity

App Service, Websites

Dynamics, BizTalk Services, Notification Hubs

Batch “Cold Path” Analytics

Azure HDInsight, DocumentDB, Azure ML

Hot Path Analytics

Azure Stream Analytics, Azure HDInsight (Storm)

{ }

{ }

Page 40: Architecting the Internet of Things Darren Hubert M256

Hot Path Business Logic

Service Fabric & Actor Framework

Device Connectivity & Management

Pattern: Predictive MaintenanceD

evi

ces

RTO

S, L

inux,

Win

dow

s, A

ndro

id, i

OS

Cloud Gateway

Event Hubs&IOT Hub

Protocol Adaptation

Analytics & Operationalized Insights

Presentation & Business Connectivity

Presentation &

Business Connectivity

App Service, Websites

Dynamics, BizTalk Services, Notification Hubs

Batch “Cold Path” Analytics

Azure HDInsight, DocumentDB, Azure ML

Hot Path Analytics

Azure Stream Analytics, Azure HDInsight (Storm)

{ }

{ }

Page 41: Architecting the Internet of Things Darren Hubert M256

Hot Path Business Logic

Service Fabric & Actor FrameworkField Gateway

Device Connectivity & Management

Pattern: Service Delivery ManagementD

evi

ces

RTO

S, L

inux,

Win

dow

s, A

ndro

id, i

OS

Cloud Gateway

Event Hubs&IOT Hub

Field Gateway

Protocol Adaptation

Analytics & Operationalized Insights

Presentation & Business Connectivity

Presentation &

Business Connectivity

App Service, Websites

Dynamics, BizTalk Services, Notification Hubs

Batch “Cold Path” Analytics

Azure HDInsight, DocumentDB, Azure ML

Hot Path Analytics

Azure Stream Analytics, Azure HDInsight (Storm)

{ }

{ }

Page 42: Architecting the Internet of Things Darren Hubert M256

Event Hub Stores

Streaming Data

Stream Analytics processes events as

they arrive in the EventHub

AML Model Web Service

BES endpoint

Power BI / D3

Dashboard

Data for

Real-time Processing

Aggregations

External Data

Azure Services

Azure SQLContains Historical

Data

Real time data stats

Azure Data Factory

Pipeline invokes AML Web Service

Real Ti

me

Batc

h

Example Architecture

Real Time Telemetry

Data

Azure Data Factory

Pipeline Moves Data

Batch updates of predictions

Page 43: Architecting the Internet of Things Darren Hubert M256

Data for

Real-time Processing

Real Time Energy

Consumption Data (Public

Source)

Event Hub Stores

Streaming Data

Stream Analytics processes events as

they arrive in the EventHub

AML Model Web Service

BES endpoint

Power BI / D3

Dashboard

Data Stream

Job

Hourly Prediction

Updates

External Data

Azure Services

Copy to Azure SQL

for batch predictions

Scrape Data

5 mins

Azure WebJob Runs jobs to scrape

data from public source

Azure SQLContains Historical

Energy Consumption Data

Real time data stats

Azure Data Factory

Pipeline invokes AML Web Service

Real Ti

me

Batc

h

Example Architecture

Page 44: Architecting the Internet of Things Darren Hubert M256

Old ways of Thinking can be dangerous Understand the business model Beware of new patterns: eventual

consistency, etc. Don’t focus on the device Avoid analysis paralysis. Get it done!

Risks of IoT

Page 45: Architecting the Internet of Things Darren Hubert M256

Examples

Page 46: Architecting the Internet of Things Darren Hubert M256
Page 47: Architecting the Internet of Things Darren Hubert M256

88 Acres. Darrel Smith, Dir. Energy and Sustainability, Microsoft RE&F

Page 48: Architecting the Internet of Things Darren Hubert M256

Architecture is at the centre of IoT IoT is Advanced ”Modern” Architecture IoT Projects are Complex - Teamwork is

necessary These projects are mission critical and

difficult We can’t learn everything - but we need

breadth Don’t be afraid - get started and learn

Summary

Page 49: Architecting the Internet of Things Darren Hubert M256

Complete your session evaluation now and win!

Page 50: Architecting the Internet of Things Darren Hubert M256

© 2015 Microsoft Corporation. All rights reserved.Microsoft, Windows and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or

other countries.MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.

Page 51: Architecting the Internet of Things Darren Hubert M256

Real Time Telemetry

Data

Event Hub Stores

Streaming Data

Stream Analytics

processes events as they arrive in

the EventHub

AML Model (Published

Web Service)

Power BI (Dashboard)

Data for

Real-time Processing

Streaming Data

Near Real-time

Updates

IoT Clients Azure Services

IoT Clients Azure Services

ML Predictions consumed

through the RRS web service

interface

Example Architecture 1

Page 52: Architecting the Internet of Things Darren Hubert M256

Example Architecture 4External

DataAzure

Services

External Data

Azure Services

On Premise

SQL Server

Data Strea

m

Devices and

Systems

Azure Data Factory Pipeline

schedules On- Premise Data

Transfer

Scored Result

s

Copy Activity

Azure Storage Blob

Input

Azure Data Factory

Pipeline invokes Copy and Compute

Services

Compute

Activity

Copy Activity

Azure Storage Blob Output (ML

Scores)

AML Model Predictions consumed

through the web service interface

Consu

me

s V

ia

AD

F

Azure Data Factory Pipeline

transfers data to On-Premise data

storageCopy

Activity

Consumes

Power BI Dashboard

Data at rest