AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration...
Transcript of AI & IoT Integration on the Edge - hasaltaiar.com.au · 2019 - Melbourne Global Integration...
2019 - Melbourne
Global Integration Bootcamp
Has AlTaiar (Principal Consultant / Microsoft Azure MVP)@hasaltaiar
https://www.hasaltaiar.com.au
AI & IoT Integration on the Edge
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
Global Integration Bootcamp, so why AI and IoT?
@HasAltaiar #GiB19 - Melbourne – AI & Integration on the Edge
Global Integration Bootcamp, so why AI and IoT?
@HasAltaiar #GiB19 - Melbourne – AI & Integration on the Edge
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
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
Why Edge Computing?
Latency
Bandwidth
Distribute compute load
Security and Privacy
Occasionally-connected
8@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE
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
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
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
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
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
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
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
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
Azure-built Modules
18@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE
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
Similar Offerings – AWS Greengrass
21@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE
Real-world AI Solutions on the Edge
22@HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE
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
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
25
Any Questions? @HasAltaiar #GIB19 - MELBOURNE – AI & INTEGRATION ON THE EDGE