iot and serverless - aws - serverless summit - madhusudan shekar

53
© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved. Twitter: @madhushekar23 Linkedin: /in/madhusudanshekar IoT Serverless Madhusudan Shekar

Upload: codeops-technologies-llp

Post on 23-Jan-2018

1.896 views

Category:

Software


0 download

TRANSCRIPT

© 2016, Amazon Web Services, Inc. or its Affiliates. All rights reserved.

Twitter: @madhushekar23

Linkedin: /in/madhusudanshekar

IoT ServerlessMadhusudan Shekar

Business of IoT

SONOS Trueplay: Smart Speaker Tuning

Trueplay measures the acoustics in any room and fine-tunes your speaker

Launched in 2015 yet available to devices purchased over 5 years ago

Data-driven evaluation and testing

Cloud-connected devices are constantly smarter

« A 10 year old product can do things that hadn't

been invented 10 years ago. Most importantly, going

forward, people will expect your product to improve, and if

it isn't being updated and getting better, you're literally

being left behind. »

Philips HealthSuite stores 15PB of

patient data

Data gathered from 390 million

imaging studies, medical records

and patient device inputs

Provide doctors overview of long-

term patient behavior and

symptoms instead of momentary

snapshots

Philips HealthSuite – Improving patient relationship

Improve operational efficiency

and patient safety in hospital

pharmacies

RFID tags attached to medical

vials to check contents and age

of medications in kits

Uses AWS to manage information

on more than 6 million tagged

drugs

Kitcheck - Improving patient safety

Stream, analyze, store and share

data collected by 200,000

telematically-enabled machines

Provide growers timely and

accurate data for optimal

growing conditions

Help farmers plant more

efficiently and improve crop

yields

John Deere – Plant and grow more efficiently

BMW – Make the car the sensor!

Connected-car application

collects sensor data from

BMW 7-series

Built Car-as-a-sensor

(CARASSO) in only 6 months

Provide dynamically

updated map information

TATA Motors – Intelligent Fleet management

Collects sensor information and

monitors truck fleets via AWS

Data allows to route fleets more

effectively

Predict engine failures or

mechanical problems and pre-

emptively send trucks to repair

centers

“Securely connect

billions of devices to AWS

and interact with

applications, other devices

and the AWS platform”

AWS IoT

Serverless

Going Serverless…

Code is all you need Event driven scaling

Never pay for idle Availability and fault tolerance built in

AWS Serverless offerings

And more !!

Lambda DynamoDB S3 Kinesis

How Lambda works

S3 event

notifications

DynamoDB

StreamsKinesis

events

Cognito

eventsSNS

events

Custom

events

CloudTrail

events LambdaDynamoDB

Kinesis S3

Any custom

Redshift

SNS

CloudWatch

events

How does a Lambda function looks like?

def hello(event, context):

return {

"message": ”Hello World!",

"event": event

}

'use strict';

handlermodule.exports.hello = (event, context, cb) => cb(null,

{ message: ’Hello World!', event }

);

AWS IoT

Registry

Establishes an identity for devices and manages

metadata such as the devices’ attributes and

capabilities

Rules and Actions

Match patterns and take actions to send data to

other AWS services or republish

Shadows

Apps and devices can access “RESTful”

Shadow (Thing’s State) that is in sync with

the device

{Thing Name,

Sensor Temp,

, GetTemp(),

Output LED}

Rules Engine

Shadow

Registry

Amazon S3,

AWS Lambda,

Kinesis

DynamoDB

SNS

Elasticsearch

Machine Learning

Mobile App

AWS IoT: Key features

Secure by Default

Connect securely via X509 Certs and

TLS v1.2 Client Mutual Auth

Multi-protocol Message Gateway

Millions of devices and apps can connect

over MQTT or HTTP or WebSockets.

Elastic Pub Sub Broker

Go from 1 to 1-billion long-lived

connections with zero provisioning

Subscribers

Publishers

AWS IoT: Key features

DEVICE SDKSet of client libraries to

connect, authenticate and

exchange messages

DEVICE GATEWAYCommunicate with devices via

MQTT and HTTP

AUTHENTICATIONSecure with mutual

authentication and encryption

RULES ENGINETransform messages

based on rules and

route to AWS Services

AWS Services

- - - - -

3P Services

SHADOWPersistent thing state during

intermittent connections

APPLICATIONS

AWS IoT API

REGISTRYIdentity and Management of

your things

AWS IoT Platform

Demo Time Lets Sync a Light Bulb

Light bulb explained

Amazon

Cognito

AWS IoTIoT

shadow

MQTT

IoT with AWS

IoT with AWS

IoT Endpoints IoT Edge IoT Cloud Enterprise Applications

Things

Things

Things

Device shadow

Device shadow

Greengrass

Lambda

Functions

Device shadow

Local Comms

Edge

Users

Long-range Comms

Device shadow

Rules

Engine

AWS IoT service

IoT

Users

AWS Lambda

Amazon Kinesis

Amazon DynamoDB

AWS

Amazon Machine Learning

Amazon Redshift

IoT Analytics

Big Data, Machine Learning, & Integration

Real-time viewCorrelationAnalysisArchive

Enterprise Users

Corp Apps

Corp Data Center

MQT

T

MQT

T

MQT

T

MQTT

MQT

T

MQT

T

IoT Partners

Operating systems

Consulting

Wireless operator

OEM

ISVsSilicon

Cloud

Moving to the Edge

Devices

Localactions

Local Lambda Functions

Security

AWS-grade security

Localtriggers

Local Message Broker

Data and state sync

Local Device Shadows

Features

AWS Greengrass

Respond quickly to local events

Operate offline

Simplified device programming

Reduce the cost of IoT applications

AWS-gradesecurity

Benefits

AWS Greengrass

Greengrass components

Greengrass is software, not hardware

(you bring your own)

2 components that work together:

• Greengrass Core

• IoT Device SDK

AWS Greengrass Core (GGC)

The runtime responsible for Lambda

execution, messaging, device

shadows, security, and for interacting

directly with the cloud

AWS Greengrass Core (GGC)

• Min single-core 1 GHz• Min 128 MB RAM• x86 and ARM• Linux (Ubuntu or Amazon)

• The sky is the limit

IoT device SDK

Any device that uses the IoT device SDK can be configured to interact with AWS Greengrass core via the local network

Devices can be small or big

Starts with the IoT device SDK for C++, more coming soon

Devices work together locally

An AWS Greengrass groupis a set of cores and other devices configured to communicate with one another

Devices work together with the cloud

AWS Greengrass works with AWS IoTto maintain long-lived connections and process data via the rules engine

Your Lambda functions can also interact directly with other AWS services

How about a Connected Car

Connected Car

Each Car with a GreenGrass Core with sensors sending data to it

What features - Connected Car Platform

Connected Vehicle Cloud• Secure data consumption

• Vehicle health reports

• Anomaly detection

• Diagnostics alerts

• Map Integration

• Mobile Companion Application

Infotainment / eCommerce• Head Unit AGL Prototype

• Alexa Voice Services

• Facial recognition

• Hands-free accessibility

• Location-based offers

• Music Integration

• Amazon Video Integration

AWS Components for Connected Vehicle

Connected Vehicle

AWS Connected Vehicle Cloud Reference Architecture

On the vehicle

AWS Connected Vehicle Cloud Reference Architecture

AWS IoT Ingest

AWS Connected Vehicle Cloud Reference Architecture

Just-in-Time Registration

AWS Connected Vehicle Cloud Reference Architecture

Storage and Delivery

AWS Connected Vehicle Cloud Reference Architecture

Anomaly Detection

AWS Connected Vehicle Cloud Reference Architecture

Aggregated Telemetry Data

AWS Connected Vehicle Cloud Reference Architecture

Drive Score Algorithm

AWS Connected Vehicle Cloud Reference Architecture

DTC Detection

AWS Connected Vehicle Cloud Reference Architecture

Connected Vehicle APIs

AWS Connected Vehicle Cloud Reference Architecture

Authentication and Authorization

AWS Connected Vehicle Cloud Reference Architecture

AWS Connected Vehicle Cloud

AWS Connected Vehicle Cloud Reference Architecture

Demo Time!!

IoT and Serverless

• AWS IoT takes advantage of Serverless Capabilities

• Scale on demand

• Respond to Events:

• Complex Event Processing

• Triage through queues

• Focus on Benefits

• Innovate and Iterate Fast

IoT Device SDK

Thank you

Twitter: @madhushekar23

Linkedin: /in/madhusudanshekar