AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration...

22
2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar https://www.hasaltaiar.com.au AI & IoT Integration on the Edge

Transcript of AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration...

Page 1: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

2019 - Melbourne

Global Integration Bootcamp

Has AlTaiar (Principal Consultant / Microsoft Azure MVP)@hasaltaiar

https://www.hasaltaiar.com.au

AI & IoT Integration on the Edge

Page 2: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

whoami

Has AlTaiar

Microsoft Azure MVP

Principal Consultant (Data / AI)

@HasAlTaiar

Https://www.hasaltaiar.com.au

@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE 2

Page 3: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Global Integration Bootcamp, so why AI and IoT?

@HasAltaiar #GiB19 - Melbourne – AI & Integration on the Edge

Page 4: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Global Integration Bootcamp, so why AI and IoT?

@HasAltaiar #GiB19 - Melbourne – AI & Integration on the Edge

Page 5: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

What’s IoT?IoT is a network of physical and virtual devices (“things”) that are connected and able

to exchange data. Each thing is uniquely identifiable and capable of operating within

the existing internet infrastructure. Typically, IoT devices exchange massive amounts

of data at a rapid pace.

6@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

IoT isIntegrationwith a twist

Page 6: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

What’s Edge Computing?

Edge computing is a method of optimizing computing systems by performing data processing at the edge of the network, near the source of the data.

Azure IoT Edge moves computing and custom business logic from the cloud to devices on the network to improve privacy, security, and improve performance.

7@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 7: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Why Edge Computing?

Latency

Bandwidth

Distribute compute load

Security and Privacy

Occasionally-connected

8@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 8: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Azure IoT Edge

IoT Edge Runtime Environment

ModulesCustom Code

Cloud-based InterfaceManage & Monitor

9@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Azure IoT Hub

Page 9: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

IoT Hub vs Event Hub?

IoT Hub is Event hub+

@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE 10

Device Management

Device Authentication

Complex Message Routing

Edge Connectivity & Deployment

Device and Module Twin

Page 10: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Device Twin & Module Twin

• JSON Document

• Store tags, Desired/ Reported properties, and identity

• Sync device/module attributes between backend services and devices

• Up to 8KB per category (tags, desired properties)

@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE 11

Page 11: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

How does it work?

• Code modules as Docker images

• Configure modules on the IoT Hub

• The Azure IoT Hub does the rest

@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE 12

Page 12: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Azure IoT Edge RuntimePortable on Windows and Linux

Supports Win & Linux Containers

Installed as a local service

Has 2 main parts: ◦ IoT Edge Agent◦ IoT Edge Hub

13@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 13: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

IoT Edge HubActs as a proxy of the Azure IoT Hub

Optimizes no of real connections to the cloud.

Caches messages and twin updates locally when disconnected.

Facilitates module-to-module communication.

@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE 15

Page 14: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

IoT Edge AgentResponsible for instantiating modules

Ensures that modules continue to run

Reports the status of modules to the IoT Hub.

Ensures security (verify a module’s image before starting it)

Like other module, Agent uses its module twin to store configuration data.

@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE 16

Page 15: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

IoT Edge Modules

Pieces of code, containerised.

OCI-Compatible containers.

Many languages supported (C, C#, Java, Python, etc)

Composition happens in the deployment manifest file

Each Module has: ◦ Module image

◦ Module instance

◦ Module identity

◦ Module twin

17@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 16: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Azure-built Modules

18@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 17: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Configuration & Monitoring

Full control over device lifecycle

Build a data/integration pipeline

Target one device or a group of devices

IoT Hub manages the deployments

Integration with App Insight & Log Analytics

19@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 18: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Similar Offerings – AWS Greengrass

21@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 19: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Real-world AI Solutions on the Edge

22@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 20: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Demo

23

Show me the money ☺

@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Temp Sensor

Filter Module

Custom Code

IoT Hub

Azure IoT Hub

IoT Agent

Page 21: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

Key Takeaways

Edge computing can be great model for solving complex issues with Latency, data throughput, Security, Privacy standards.

Azure IoT Edge provides state-of-the-art suite of services for managing deployment, pipeline, configuration, and modules life-cycle.

It’s fairly easy to build custom modules on Azure IoT Edge, and the Azure team is adding pre-built modules continuously.

The AI wave is just starting, it relies heavily on IoT to integrate the physical and the cyber world. This creates a great opportunity for Technologists.

24@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE

Page 22: AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration Bootcamp Has AlTaiar (Principal Consultant / Microsoft Azure MVP) @hasaltaiar AI & IoT

25

Any Questions? @HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE