SlideShare une entreprise Scribd logo
1  sur  18
Télécharger pour lire hors ligne
Architecting Scalable
Software Platforms for
IoT Applications
Archanaa Ravikumar
Lead Engineer, BCG Digital Ventures
Pooja Subramanian
Lead Consultant, ThoughtWorks Technologies
IoT STACK
Smart light
Temperature
Sensor
Security
Camera
Level 1-2
Sensors
Actuators
Devices
Pressure
sensor
adapter
Camera
adapter
ZWave
adapter
Level 3
Adapters
Gateway On-Prem
Level 4-5
Cloud Platform
Services
Level 6
Mobile, Web
Applications
Zigbee
adapter
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
Heat
Sensor
Air cooler
Sprinkler
AN IoT APPLICATION
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
IoT PLATFORM - WHAT’S DIFFERENT?
Scale
Security
Continuous
Improvement
Icons made by Freepik from www.flaticon.com
Context Mapping
Device
Representation
CONTEXT MAPPING
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
Mostly uncategorized control
data for multiple building
applications
Smart Building Applications in
Cloud or on Prem
Outside Air Temperature
Humidity
Room Temperature
Occupancy Status
Time Series Data
Sensor Metadata
GUI Data
Event Data
DEVICE REPRESENTATION MODELS
Actor Model Device Twin
OCF
ACTOR MODEL
● Reliable actor model
● Concurrent processes that run with
individual context
● Representation of relationship between
devices
● Each actor can send messages to other
related actors
● Persisted actor state
Thermostat
actor
AC actor
Fire alarm
actor
Sprinkler actor
Control unit
actor
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
HIERARCHY OF ACTORS
Hotel Timbaktoo
Floor 2Floor 1
Room 1 Room 2
Thermostat
Floor 3
Air-conditioner
{
"id" : "512cde1a-2343-4b36-a045-603732b3f30a",
"name" : "Hotel Timbaktoo",
"documentType" : "Building",
"floors" : [
"245866c5-87d4-4426-b8f8-aed71212de84",
"e52e3a21-2eb2-43ed-bbb3-5c7e5c0cad7f",
"c7e1226a-d77e-4c21-988d-28f88443bb0a"
],
"path" : "hotels/512cde1a-2343-4b36-a045-603732b3f30a"
...
...
}
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
Device Twin
Tags
Properties
Desired
Reported
Read, receive
change
notifications
Read,
write
Read, write
change
notifications
Read
change
notifications
Read, write
change
notifications
Device
app
Backend
DEVICE TWIN
{
"deviceId": "devA",
"etag": "AAAAAAAAAAc=",
"status": "enabled",
"statusReason": "provisioned",
"statusUpdateTime": "0001-01-01T00:00:00",
"connectionState": "connected",
"lastActivityTime":
"2015-02-30T16:24:48.789Z",
"cloudToDeviceMessageCount": 0,
"authenticationType": "sas",
"x509Thumbprint": {
"primaryThumbprint": null,
"secondaryThumbprint": null
},
"version": 2,
"tags": {
"$etag": "123",
"deploymentLocation": {
"building": "43",
"floor": "1"
}
},
"properties": {
"desired": {
"telemetryConfig": {
"sendFrequency": "5m"
},
"$metadata" : {...},
"$version": 1
},
"reported": {
"telemetryConfig": {
"sendFrequency": "5m",
"status": "success"
},
"batteryLevel": 55,
"$metadata" : {...},
"$version": 4
}
}
}
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
1. Provide specifications, code and a certification program to enable manufacturers to
bring OCF Certified products to the market that can interoperate with current IoT
devices and legacy systems.
2. Make the end user’s experience better by seamlessly bridging to other ecosystems
within a user’s smart home and ensure interoperability with OCF compliant devices.
OCF
DEFINITION OF A THING
Image and details from open connectivity org
https://openconnectivity.org/specs/OCF_2.0_Specification_Overview.pdf
DEFINITION OF A THING
Image and details from open connectivity org
https://openconnectivity.org/specs/OCF_Core_Specification_v2.2.0.pdf
● Number of edge
devices
● Volume of data
● Frequency of data
transmitted
SCALE
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
Gateway
● Provide bi-directional
communication between
edge devices and
controllers
● Register and provision
devices
● Enable improved security
● Abstract multiple
protocols used for
edge-cloud connectivity
Telemetry Service
● Accept a continuous
stream of device
metadata
● Process all incoming
telemetry data
● Use rule-based routing
of data to other
services
Time series Database
● Ingest change that
sensors capture over a
range of time
● Handle high write loads
● Improve efficiency by
treating time as a first
class citizen
Cache
● Store pre-processed data
● Aid in quicker decision
making
● Allow configurable cache
updates
● Aid in availability when
systems go down
temporarily
SCALE
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
● Platform security
○ Roles and access controls
● 2FA for device authorization
○ Certificate on the device that needs
to be validated by the app
○ QR code scanning
● Absence of telemetry
● Data confidentiality
● Protocol security
● Firmware vulnerabilities
○ Patch updates
SECURITY
Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
● CI/CD pipeline across devices and platforms
● Unit tests at mobile, web, cloud applications and devices
● Monitoring post deployments across all layers
● OTA updates and graceful upgrades
● Complexity caused by
○ Version updates
○ Protocol changes
CI/CD
Commit stage
Automated
Testing
Deploy to test
devices
Integrated
testing
Release
App
Device command/query
API Gateway
Device
SensorSensor
Other services
Device Management
Service
Telemetry Service
IoT Hub
Sends device command
Device
Data
Receives telemetry
Backend Services
AMQP
Bluetooth
(Installation)
App
Zwaveproprietary
Monitoring
Dashboard
Timeseries
DB
Web socket comms
SAMPLE ARCHITECTURE
Thank You
Archanaa Ravikumar
Lead Engineer, BCG Digital Ventures
archanaa.ravikumar@bcgdv.com
https://www.linkedin.com/in/ravikumar-archanaa/
Pooja Subramanian
Lead Consultant, ThoughtWorks Technologies
poojas@thoughtworks.com
https://www.linkedin.com/in/pooja-subramanian-17bbba3b/

Contenu connexe

Tendances

Tamino Mobile - XML based Integration, Development and Application Services f...
Tamino Mobile - XML based Integration, Development and Application Services f...Tamino Mobile - XML based Integration, Development and Application Services f...
Tamino Mobile - XML based Integration, Development and Application Services f...
mfrancis
 

Tendances (20)

Perth Meetup February 2021
Perth Meetup February 2021Perth Meetup February 2021
Perth Meetup February 2021
 
Architecting SaaS
Architecting SaaSArchitecting SaaS
Architecting SaaS
 
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
apidays LIVE LONDON - Discovering API Version differences with ease by Jaap B...
 
apidays LIVE London 2021 - API Security in Highly Volatile Threat Landscapes ...
apidays LIVE London 2021 - API Security in Highly Volatile Threat Landscapes ...apidays LIVE London 2021 - API Security in Highly Volatile Threat Landscapes ...
apidays LIVE London 2021 - API Security in Highly Volatile Threat Landscapes ...
 
WEB API Gateway
WEB API GatewayWEB API Gateway
WEB API Gateway
 
apidays LIVE Paris - The Business of APIs by Jed Ng
apidays LIVE Paris - The Business of APIs by Jed Ngapidays LIVE Paris - The Business of APIs by Jed Ng
apidays LIVE Paris - The Business of APIs by Jed Ng
 
apidays LIVE London 2021 - Application to API Security, drivers to the Shift ...
apidays LIVE London 2021 - Application to API Security, drivers to the Shift ...apidays LIVE London 2021 - Application to API Security, drivers to the Shift ...
apidays LIVE London 2021 - Application to API Security, drivers to the Shift ...
 
5 Pillars of Building Enterprise0grade APIs
5 Pillars of Building Enterprise0grade APIs5 Pillars of Building Enterprise0grade APIs
5 Pillars of Building Enterprise0grade APIs
 
[apidays Live Australia] How do you enhance customer experience through event...
[apidays Live Australia] How do you enhance customer experience through event...[apidays Live Australia] How do you enhance customer experience through event...
[apidays Live Australia] How do you enhance customer experience through event...
 
TDD for APIs in a Microservice World (Short Version) by Michael Kuehne-Schlin...
TDD for APIs in a Microservice World (Short Version) by Michael Kuehne-Schlin...TDD for APIs in a Microservice World (Short Version) by Michael Kuehne-Schlin...
TDD for APIs in a Microservice World (Short Version) by Michael Kuehne-Schlin...
 
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
apidays LIVE New York 2021 - APIOps: automating API operations for speed and ...
 
The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...
The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...
The Elephant in the Kubernetes Room - Team Interactions at Scale @ KubeCon No...
 
How Cisco is Leveraging MuleSoft to Drive Continuous Innovation​ at Enterpris...
How Cisco is Leveraging MuleSoft to Drive Continuous Innovation​ at Enterpris...How Cisco is Leveraging MuleSoft to Drive Continuous Innovation​ at Enterpris...
How Cisco is Leveraging MuleSoft to Drive Continuous Innovation​ at Enterpris...
 
Nyc mule soft_meetup_13_march_2021
Nyc mule soft_meetup_13_march_2021Nyc mule soft_meetup_13_march_2021
Nyc mule soft_meetup_13_march_2021
 
What is an API Gateway?
What is an API Gateway?What is an API Gateway?
What is an API Gateway?
 
Crossing the low-code and pro-code chasm: a platform approach
Crossing the low-code and pro-code chasm: a platform approachCrossing the low-code and pro-code chasm: a platform approach
Crossing the low-code and pro-code chasm: a platform approach
 
apidays LIVE New York 2021 - API Security & AI by Deb Roy, Accenture
apidays LIVE New York 2021 - API Security & AI by Deb Roy, Accentureapidays LIVE New York 2021 - API Security & AI by Deb Roy, Accenture
apidays LIVE New York 2021 - API Security & AI by Deb Roy, Accenture
 
How Secure Are Your APIs?
How Secure Are Your APIs?How Secure Are Your APIs?
How Secure Are Your APIs?
 
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage [WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
[WSO2 API Day Chicago 2019] Sustainable Competitive Advantage
 
Tamino Mobile - XML based Integration, Development and Application Services f...
Tamino Mobile - XML based Integration, Development and Application Services f...Tamino Mobile - XML based Integration, Development and Application Services f...
Tamino Mobile - XML based Integration, Development and Application Services f...
 

Similaire à apidays LIVE Australia 2020 - Building a scalable API platform for an IoT ecosystem by Archanaa Ravikumar & Pooja Subramanian

Common industrial protocol
Common industrial protocolCommon industrial protocol
Common industrial protocol
Huấn Trần
 

Similaire à apidays LIVE Australia 2020 - Building a scalable API platform for an IoT ecosystem by Archanaa Ravikumar & Pooja Subramanian (20)

IoT on Blockchain Solution Overview
IoT on Blockchain Solution OverviewIoT on Blockchain Solution Overview
IoT on Blockchain Solution Overview
 
IoT on azure
IoT on azureIoT on azure
IoT on azure
 
Integrate IoT cloud analytics and over the-air (ota) updates with google and ...
Integrate IoT cloud analytics and over the-air (ota) updates with google and ...Integrate IoT cloud analytics and over the-air (ota) updates with google and ...
Integrate IoT cloud analytics and over the-air (ota) updates with google and ...
 
Essential Capabilities of an IoT Platform
Essential Capabilities of an IoT PlatformEssential Capabilities of an IoT Platform
Essential Capabilities of an IoT Platform
 
Creator IoT Framework
Creator IoT FrameworkCreator IoT Framework
Creator IoT Framework
 
Common industrial protocol
Common industrial protocolCommon industrial protocol
Common industrial protocol
 
Embrace network
Embrace networkEmbrace network
Embrace network
 
Cascon Decentralized IoT update - Blockchain and Smart Contracts
Cascon Decentralized IoT update - Blockchain and Smart ContractsCascon Decentralized IoT update - Blockchain and Smart Contracts
Cascon Decentralized IoT update - Blockchain and Smart Contracts
 
Azure Internet of Things
Azure Internet of ThingsAzure Internet of Things
Azure Internet of Things
 
Workshop AWS IoT @ IoT World Paris
Workshop AWS IoT @ IoT World ParisWorkshop AWS IoT @ IoT World Paris
Workshop AWS IoT @ IoT World Paris
 
Citrix xenapp training
Citrix xenapp training Citrix xenapp training
Citrix xenapp training
 
Workshop AWS IoT @ SIDO
Workshop AWS IoT @ SIDOWorkshop AWS IoT @ SIDO
Workshop AWS IoT @ SIDO
 
Edge computing and its role in architecting IoT
Edge computing and its role in architecting IoTEdge computing and its role in architecting IoT
Edge computing and its role in architecting IoT
 
Real time approach of piezo actuated beam for wireless seismic measurement us...
Real time approach of piezo actuated beam for wireless seismic measurement us...Real time approach of piezo actuated beam for wireless seismic measurement us...
Real time approach of piezo actuated beam for wireless seismic measurement us...
 
The Internet of Things: QA Unleashed
The Internet of Things: QA UnleashedThe Internet of Things: QA Unleashed
The Internet of Things: QA Unleashed
 
MULTI-FACTOR AUTHENTICATION SECURITY FRAMEWORK USING BlOCKCHAIN IN CLOUD COMP...
MULTI-FACTOR AUTHENTICATION SECURITY FRAMEWORK USING BlOCKCHAIN IN CLOUD COMP...MULTI-FACTOR AUTHENTICATION SECURITY FRAMEWORK USING BlOCKCHAIN IN CLOUD COMP...
MULTI-FACTOR AUTHENTICATION SECURITY FRAMEWORK USING BlOCKCHAIN IN CLOUD COMP...
 
Real time approach of piezo actuated beam for wireless
Real time approach of piezo actuated beam for wirelessReal time approach of piezo actuated beam for wireless
Real time approach of piezo actuated beam for wireless
 
Smart Manufacturing Connectivity for Brown-field Sensors Testbed at a glance
Smart Manufacturing Connectivity for Brown-field Sensors Testbed at a glanceSmart Manufacturing Connectivity for Brown-field Sensors Testbed at a glance
Smart Manufacturing Connectivity for Brown-field Sensors Testbed at a glance
 
Internet of Things Pitch Deck
Internet of Things Pitch DeckInternet of Things Pitch Deck
Internet of Things Pitch Deck
 
Integration of Things (Sam Vanhoutte @Iglooconf 2017)
Integration of Things (Sam Vanhoutte @Iglooconf 2017) Integration of Things (Sam Vanhoutte @Iglooconf 2017)
Integration of Things (Sam Vanhoutte @Iglooconf 2017)
 

Plus de apidays

Plus de apidays (20)

Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
Apidays New York 2024 - The secrets to Graph success, by Leah Hurwich Adler, ...
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
Apidays New York 2024 - API Discovery - From Crawl to Run by Rob Dickinson, G...
 
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
Apidays Singapore 2024 - Building with the Planet in Mind by Sandeep Joshi, M...
 
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
Apidays Singapore 2024 - Connecting Cross Border Commerce with Payments by Gu...
 
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
Apidays Singapore 2024 - Privacy Enhancing Technologies for AI by Mark Choo, ...
 
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
Apidays Singapore 2024 - Blending AI and IoT for Smarter Health by Matthew Ch...
 
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
Apidays Singapore 2024 - OpenTelemetry for API Monitoring by Danielle Kayumbi...
 
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
Apidays Singapore 2024 - Connecting Product and Engineering Teams with Testin...
 
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
Apidays Singapore 2024 - The Growing Carbon Footprint of Digitalization and H...
 
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
Apidays Singapore 2024 - API Monitoring x SRE by Ryan Ashneil and Eugene Wong...
 
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
Apidays Singapore 2024 - A nuanced approach on AI costs and benefits for the ...
 
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu SubbuApidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
Apidays Singapore 2024 - Modernizing Securities Finance by Madhu Subbu
 
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
Apidays Singapore 2024 - How APIs drive business at BNP Paribas by Quy-Doan D...
 

Dernier

Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
Joaquim Jorge
 

Dernier (20)

GenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdfGenAI Risks & Security Meetup 01052024.pdf
GenAI Risks & Security Meetup 01052024.pdf
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law DevelopmentsTrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
TrustArc Webinar - Stay Ahead of US State Data Privacy Law Developments
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live StreamsTop 5 Benefits OF Using Muvi Live Paywall For Live Streams
Top 5 Benefits OF Using Muvi Live Paywall For Live Streams
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Artificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and MythsArtificial Intelligence: Facts and Myths
Artificial Intelligence: Facts and Myths
 
Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024Top 10 Most Downloaded Games on Play Store in 2024
Top 10 Most Downloaded Games on Play Store in 2024
 
Real Time Object Detection Using Open CV
Real Time Object Detection Using Open CVReal Time Object Detection Using Open CV
Real Time Object Detection Using Open CV
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
Bajaj Allianz Life Insurance Company - Insurer Innovation Award 2024
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 

apidays LIVE Australia 2020 - Building a scalable API platform for an IoT ecosystem by Archanaa Ravikumar & Pooja Subramanian

  • 1. Architecting Scalable Software Platforms for IoT Applications Archanaa Ravikumar Lead Engineer, BCG Digital Ventures Pooja Subramanian Lead Consultant, ThoughtWorks Technologies
  • 2. IoT STACK Smart light Temperature Sensor Security Camera Level 1-2 Sensors Actuators Devices Pressure sensor adapter Camera adapter ZWave adapter Level 3 Adapters Gateway On-Prem Level 4-5 Cloud Platform Services Level 6 Mobile, Web Applications Zigbee adapter Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0" Heat Sensor Air cooler Sprinkler
  • 3. AN IoT APPLICATION Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
  • 4. IoT PLATFORM - WHAT’S DIFFERENT? Scale Security Continuous Improvement Icons made by Freepik from www.flaticon.com Context Mapping Device Representation
  • 5. CONTEXT MAPPING Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0" Mostly uncategorized control data for multiple building applications Smart Building Applications in Cloud or on Prem Outside Air Temperature Humidity Room Temperature Occupancy Status Time Series Data Sensor Metadata GUI Data Event Data
  • 6. DEVICE REPRESENTATION MODELS Actor Model Device Twin OCF
  • 7. ACTOR MODEL ● Reliable actor model ● Concurrent processes that run with individual context ● Representation of relationship between devices ● Each actor can send messages to other related actors ● Persisted actor state Thermostat actor AC actor Fire alarm actor Sprinkler actor Control unit actor Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
  • 8. HIERARCHY OF ACTORS Hotel Timbaktoo Floor 2Floor 1 Room 1 Room 2 Thermostat Floor 3 Air-conditioner { "id" : "512cde1a-2343-4b36-a045-603732b3f30a", "name" : "Hotel Timbaktoo", "documentType" : "Building", "floors" : [ "245866c5-87d4-4426-b8f8-aed71212de84", "e52e3a21-2eb2-43ed-bbb3-5c7e5c0cad7f", "c7e1226a-d77e-4c21-988d-28f88443bb0a" ], "path" : "hotels/512cde1a-2343-4b36-a045-603732b3f30a" ... ... } Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
  • 9. Device Twin Tags Properties Desired Reported Read, receive change notifications Read, write Read, write change notifications Read change notifications Read, write change notifications Device app Backend DEVICE TWIN { "deviceId": "devA", "etag": "AAAAAAAAAAc=", "status": "enabled", "statusReason": "provisioned", "statusUpdateTime": "0001-01-01T00:00:00", "connectionState": "connected", "lastActivityTime": "2015-02-30T16:24:48.789Z", "cloudToDeviceMessageCount": 0, "authenticationType": "sas", "x509Thumbprint": { "primaryThumbprint": null, "secondaryThumbprint": null }, "version": 2, "tags": { "$etag": "123", "deploymentLocation": { "building": "43", "floor": "1" } }, "properties": { "desired": { "telemetryConfig": { "sendFrequency": "5m" }, "$metadata" : {...}, "$version": 1 }, "reported": { "telemetryConfig": { "sendFrequency": "5m", "status": "success" }, "batteryLevel": 55, "$metadata" : {...}, "$version": 4 } } } Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
  • 10. 1. Provide specifications, code and a certification program to enable manufacturers to bring OCF Certified products to the market that can interoperate with current IoT devices and legacy systems. 2. Make the end user’s experience better by seamlessly bridging to other ecosystems within a user’s smart home and ensure interoperability with OCF compliant devices. OCF
  • 11. DEFINITION OF A THING Image and details from open connectivity org https://openconnectivity.org/specs/OCF_2.0_Specification_Overview.pdf
  • 12. DEFINITION OF A THING Image and details from open connectivity org https://openconnectivity.org/specs/OCF_Core_Specification_v2.2.0.pdf
  • 13. ● Number of edge devices ● Volume of data ● Frequency of data transmitted SCALE Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
  • 14. Gateway ● Provide bi-directional communication between edge devices and controllers ● Register and provision devices ● Enable improved security ● Abstract multiple protocols used for edge-cloud connectivity Telemetry Service ● Accept a continuous stream of device metadata ● Process all incoming telemetry data ● Use rule-based routing of data to other services Time series Database ● Ingest change that sensors capture over a range of time ● Handle high write loads ● Improve efficiency by treating time as a first class citizen Cache ● Store pre-processed data ● Aid in quicker decision making ● Allow configurable cache updates ● Aid in availability when systems go down temporarily SCALE Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
  • 15. ● Platform security ○ Roles and access controls ● 2FA for device authorization ○ Certificate on the device that needs to be validated by the app ○ QR code scanning ● Absence of telemetry ● Data confidentiality ● Protocol security ● Firmware vulnerabilities ○ Patch updates SECURITY Icons made by Good Ware from www.flaticon.com is licensed by Creative Commons BY 3.0"
  • 16. ● CI/CD pipeline across devices and platforms ● Unit tests at mobile, web, cloud applications and devices ● Monitoring post deployments across all layers ● OTA updates and graceful upgrades ● Complexity caused by ○ Version updates ○ Protocol changes CI/CD Commit stage Automated Testing Deploy to test devices Integrated testing Release
  • 17. App Device command/query API Gateway Device SensorSensor Other services Device Management Service Telemetry Service IoT Hub Sends device command Device Data Receives telemetry Backend Services AMQP Bluetooth (Installation) App Zwaveproprietary Monitoring Dashboard Timeseries DB Web socket comms SAMPLE ARCHITECTURE
  • 18. Thank You Archanaa Ravikumar Lead Engineer, BCG Digital Ventures archanaa.ravikumar@bcgdv.com https://www.linkedin.com/in/ravikumar-archanaa/ Pooja Subramanian Lead Consultant, ThoughtWorks Technologies poojas@thoughtworks.com https://www.linkedin.com/in/pooja-subramanian-17bbba3b/