SlideShare a Scribd company logo
IoT-enabled smoker
for great BBQ
Jimmy Dahlqvist
Meetup Skåne - 2023-03-16
@jimmydahlqvist
Agenda
Background
Architecture overview
Cloud deep dive
Summary
Hello, I'm
JIMMY DAHLQVIST
Father of two girls
Serverless enthusiast
AWS Ambassador
AWS Community Builder
Head of AWS Technologies at Sigma Technology Cloud
BACKGROUND
@jimmydahlqvist
BBQ
Low and slow
• Low even temperature for a long time
Different styles
It’s an art form
@jimmydahlqvist
Smoker types
Ceramic – Kamado
UDS – Ugly drum smoker
Electric pellets
Offset
IoT enabled smoker
IoT device
Architecture overview
@jimmydahlqvist
Components
+
AWS Cloud
+
IoT Device
@jimmydahlqvist
IoT Device
Software
AWS IoT Greengrass 2.0 - Core
Custom component
Hardware
Raspberry Pi 4 model B
2.5mm food probes
MCP3008 – AD converter
@jimmydahlqvist
IoT device software
First iteration
Python application
Updated over SSH
Connected directly to AWS IoT Core
@jimmydahlqvist
Components
+
AWS Cloud
+
IoT Device
@jimmydahlqvist
Cloud architecture
@jimmydahlqvist
Lesson learned
• IoT Rules as router
• Small objects in S3
• Hard to change data format
• Extending was a challenge
@jimmydahlqvist
Improvements
Cloud architecture
• Data transformation
• Event driven architecture
• Decouple services
IoT Device
• Software development lifecycle
• Log handling
• Configuration
@jimmydahlqvist
IoT Device
@jimmydahlqvist
AWS Greengrass
Interact with AWS services
AWS provided components
• Log manager
Custom components
• Publish new versions of components
Support for AWS Lambda
@jimmydahlqvist
Cloud architecture
@jimmydahlqvist
Cloud architecture
Data service
Detection service
Notification service
Data augmentation service
Cloud deep dive
@jimmydahlqvist
Cloud architecture
• Reliably capture data
• Managed services
• Powerful
Data service
Detection service
Notification service
Data augmentation service
Storage first
@jimmydahlqvist
Cloud architecture
Data service
Detection service
Notification service
Data augmentation service
@jimmydahlqvist
Data augmentation
• Data transform pattern
• Fetch data from DynamoDB
@jimmydahlqvist
Cloud architecture
Data service
Detection service
Notification service
Data augmentation service
@jimmydahlqvist
Detection service
• Threshold breaches
• Temperature trends
• The dreadful stall
@jimmydahlqvist
Cloud architecture
Data service
Detection service
Notification service
Data augmentation service
@jimmydahlqvist
Serverless and event-driven
Loosely coupled
Scale and fail independently
Cost effective
Extensibility
Highly available
@jimmydahlqvist
Great BBQ?
I would say so
Takeaways and thoughts
@jimmydahlqvist
Create subscriptions
Creates coupling on the filter
Complex to add more targets
Changing the filter affect all
Coupling is on the event
Easy to add more targets
Filters can change independently
@jimmydahlqvist
Default bus
Avoid using the default bus for custom applications!
@jimmydahlqvist
Transform don’t transport
Use AWS Lambda to transform data, not transport.
Future and summary
@jimmydahlqvist
Next step
• Add camera support
• Lambda functions on the device
• Train an ML model for detection
• Alexa integration
@jimmydahlqvist
Summary
• Building an IoT system
• Serverless and event-driven
• Get great BBQ with help of technology
@jimmydahlqvist
https://www.linkedin.com/in/dahlqvistjimmy/
https://jimmydqv.com | https://dev.to/jimmydqv
THANK YOU

More Related Content

Similar to IoT Enabled Smoker for Great BBQ

Encrypting data in S3 with Stepfunctions
Encrypting data in S3 with StepfunctionsEncrypting data in S3 with Stepfunctions
Encrypting data in S3 with Stepfunctions
Jimmy Dahlqvist
 
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
SnapLogic
 
Understand the Cloud - ebook by EBC Group
Understand the Cloud - ebook by EBC GroupUnderstand the Cloud - ebook by EBC Group
Understand the Cloud - ebook by EBC Group
Adam Flynn
 
Serverless cloud architecture patterns
Serverless cloud architecture patternsServerless cloud architecture patterns
Serverless cloud architecture patterns
Jimmy Dahlqvist
 
Business at the Speed of Life: Video Conferencing Made Easy
Business at the Speed of Life: Video Conferencing Made EasyBusiness at the Speed of Life: Video Conferencing Made Easy
Business at the Speed of Life: Video Conferencing Made Easy
Lifesize
 
CI/CD As first and last line of defence
CI/CD As first and last line of defenceCI/CD As first and last line of defence
CI/CD As first and last line of defence
Jimmy Dahlqvist
 
Transforming Manufacturing with Easy-to-Use Video Conferencing
Transforming Manufacturing with Easy-to-Use Video ConferencingTransforming Manufacturing with Easy-to-Use Video Conferencing
Transforming Manufacturing with Easy-to-Use Video Conferencing
Lifesize
 
Get YOUR Time Back with Video Conferencing
Get YOUR Time Back with Video ConferencingGet YOUR Time Back with Video Conferencing
Get YOUR Time Back with Video Conferencing
Lifesize
 
Unit 5 -MOVING APPLICATION TO CLOUD
Unit 5 -MOVING APPLICATION TO CLOUDUnit 5 -MOVING APPLICATION TO CLOUD
Unit 5 -MOVING APPLICATION TO CLOUD
MonishaNehkal
 
PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...
PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...
PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...
PROIDEA
 
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Amazon Web Services
 
Three Key Steps for Moving Your Branches to the Cloud
Three Key Steps for Moving Your Branches to the CloudThree Key Steps for Moving Your Branches to the Cloud
Three Key Steps for Moving Your Branches to the Cloud
Zscaler
 
Advantages and disadvantages of cloud computing ppt.pptx
Advantages and disadvantages of cloud computing ppt.pptxAdvantages and disadvantages of cloud computing ppt.pptx
Advantages and disadvantages of cloud computing ppt.pptx
Network Kings
 
Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...
Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...
Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...
Databricks
 
Cloud computing options
Cloud computing optionsCloud computing options
Cloud computing options
botsplash.com
 
Basics of cloud.pptx
Basics of cloud.pptxBasics of cloud.pptx
Basics of cloud.pptx
kripnick3
 
Google Cloud Platform
Google Cloud PlatformGoogle Cloud Platform
Google Cloud Platform
GeneXus
 
Partner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptxPartner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptx
Cloudera, Inc.
 
Cloud computing ft
Cloud computing ftCloud computing ft
Cloud computing ft
Pallawi Bala
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
Naveed Farooq
 

Similar to IoT Enabled Smoker for Great BBQ (20)

Encrypting data in S3 with Stepfunctions
Encrypting data in S3 with StepfunctionsEncrypting data in S3 with Stepfunctions
Encrypting data in S3 with Stepfunctions
 
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
Weathering the Data Storm – How SnapLogic and AWS Deliver Analytics in the Cl...
 
Understand the Cloud - ebook by EBC Group
Understand the Cloud - ebook by EBC GroupUnderstand the Cloud - ebook by EBC Group
Understand the Cloud - ebook by EBC Group
 
Serverless cloud architecture patterns
Serverless cloud architecture patternsServerless cloud architecture patterns
Serverless cloud architecture patterns
 
Business at the Speed of Life: Video Conferencing Made Easy
Business at the Speed of Life: Video Conferencing Made EasyBusiness at the Speed of Life: Video Conferencing Made Easy
Business at the Speed of Life: Video Conferencing Made Easy
 
CI/CD As first and last line of defence
CI/CD As first and last line of defenceCI/CD As first and last line of defence
CI/CD As first and last line of defence
 
Transforming Manufacturing with Easy-to-Use Video Conferencing
Transforming Manufacturing with Easy-to-Use Video ConferencingTransforming Manufacturing with Easy-to-Use Video Conferencing
Transforming Manufacturing with Easy-to-Use Video Conferencing
 
Get YOUR Time Back with Video Conferencing
Get YOUR Time Back with Video ConferencingGet YOUR Time Back with Video Conferencing
Get YOUR Time Back with Video Conferencing
 
Unit 5 -MOVING APPLICATION TO CLOUD
Unit 5 -MOVING APPLICATION TO CLOUDUnit 5 -MOVING APPLICATION TO CLOUD
Unit 5 -MOVING APPLICATION TO CLOUD
 
PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...
PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...
PLNOG 22 - Sebastian Grabski - Is your network ready for application from the...
 
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
Computing at the Edge with AWS Greengrass and Amazon FreeRTOS, ft. General El...
 
Three Key Steps for Moving Your Branches to the Cloud
Three Key Steps for Moving Your Branches to the CloudThree Key Steps for Moving Your Branches to the Cloud
Three Key Steps for Moving Your Branches to the Cloud
 
Advantages and disadvantages of cloud computing ppt.pptx
Advantages and disadvantages of cloud computing ppt.pptxAdvantages and disadvantages of cloud computing ppt.pptx
Advantages and disadvantages of cloud computing ppt.pptx
 
Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...
Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...
Monitoring Half a Million ML Models, IoT Streaming Data, and Automated Qualit...
 
Cloud computing options
Cloud computing optionsCloud computing options
Cloud computing options
 
Basics of cloud.pptx
Basics of cloud.pptxBasics of cloud.pptx
Basics of cloud.pptx
 
Google Cloud Platform
Google Cloud PlatformGoogle Cloud Platform
Google Cloud Platform
 
Partner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptxPartner Briefing_January 25 (FINAL).pptx
Partner Briefing_January 25 (FINAL).pptx
 
Cloud computing ft
Cloud computing ftCloud computing ft
Cloud computing ft
 
Cloud Computing
Cloud ComputingCloud Computing
Cloud Computing
 

More from Jimmy Dahlqvist

AWS ECS and AWS Fargate demystified: run serverless containers
AWS ECS and AWS Fargate demystified: run serverless containersAWS ECS and AWS Fargate demystified: run serverless containers
AWS ECS and AWS Fargate demystified: run serverless containers
Jimmy Dahlqvist
 
Building-resilient-serverless-workloads-Navigating-through-failure
Building-resilient-serverless-workloads-Navigating-through-failureBuilding-resilient-serverless-workloads-Navigating-through-failure
Building-resilient-serverless-workloads-Navigating-through-failure
Jimmy Dahlqvist
 
Serverless website analytics with Lambda@Edge
Serverless website analytics with Lambda@EdgeServerless website analytics with Lambda@Edge
Serverless website analytics with Lambda@Edge
Jimmy Dahlqvist
 
Building a serverless AI powered translation service
Building a serverless AI powered translation serviceBuilding a serverless AI powered translation service
Building a serverless AI powered translation service
Jimmy Dahlqvist
 
AI Powered event-driven translation bot
AI Powered event-driven translation botAI Powered event-driven translation bot
AI Powered event-driven translation bot
Jimmy Dahlqvist
 
Autoscaled Github Runners using StepFunctions
Autoscaled Github Runners using StepFunctionsAutoscaled Github Runners using StepFunctions
Autoscaled Github Runners using StepFunctions
Jimmy Dahlqvist
 
EventBridge Patterns and real world use case
EventBridge Patterns and real world use caseEventBridge Patterns and real world use case
EventBridge Patterns and real world use case
Jimmy Dahlqvist
 
re:Invent Recap Breakfast
re:Invent Recap Breakfastre:Invent Recap Breakfast
re:Invent Recap Breakfast
Jimmy Dahlqvist
 
CHAOS ENGINEERING – OR LET'S SHAKE THE TREE
CHAOS ENGINEERING – OR LET'S SHAKE THE TREECHAOS ENGINEERING – OR LET'S SHAKE THE TREE
CHAOS ENGINEERING – OR LET'S SHAKE THE TREE
Jimmy Dahlqvist
 
Road to an asynchronous device registration API
Road to an asynchronous device registration APIRoad to an asynchronous device registration API
Road to an asynchronous device registration API
Jimmy Dahlqvist
 
GitOps in action, powered by Alexa.
GitOps in action, powered by Alexa.GitOps in action, powered by Alexa.
GitOps in action, powered by Alexa.
Jimmy Dahlqvist
 

More from Jimmy Dahlqvist (11)

AWS ECS and AWS Fargate demystified: run serverless containers
AWS ECS and AWS Fargate demystified: run serverless containersAWS ECS and AWS Fargate demystified: run serverless containers
AWS ECS and AWS Fargate demystified: run serverless containers
 
Building-resilient-serverless-workloads-Navigating-through-failure
Building-resilient-serverless-workloads-Navigating-through-failureBuilding-resilient-serverless-workloads-Navigating-through-failure
Building-resilient-serverless-workloads-Navigating-through-failure
 
Serverless website analytics with Lambda@Edge
Serverless website analytics with Lambda@EdgeServerless website analytics with Lambda@Edge
Serverless website analytics with Lambda@Edge
 
Building a serverless AI powered translation service
Building a serverless AI powered translation serviceBuilding a serverless AI powered translation service
Building a serverless AI powered translation service
 
AI Powered event-driven translation bot
AI Powered event-driven translation botAI Powered event-driven translation bot
AI Powered event-driven translation bot
 
Autoscaled Github Runners using StepFunctions
Autoscaled Github Runners using StepFunctionsAutoscaled Github Runners using StepFunctions
Autoscaled Github Runners using StepFunctions
 
EventBridge Patterns and real world use case
EventBridge Patterns and real world use caseEventBridge Patterns and real world use case
EventBridge Patterns and real world use case
 
re:Invent Recap Breakfast
re:Invent Recap Breakfastre:Invent Recap Breakfast
re:Invent Recap Breakfast
 
CHAOS ENGINEERING – OR LET'S SHAKE THE TREE
CHAOS ENGINEERING – OR LET'S SHAKE THE TREECHAOS ENGINEERING – OR LET'S SHAKE THE TREE
CHAOS ENGINEERING – OR LET'S SHAKE THE TREE
 
Road to an asynchronous device registration API
Road to an asynchronous device registration APIRoad to an asynchronous device registration API
Road to an asynchronous device registration API
 
GitOps in action, powered by Alexa.
GitOps in action, powered by Alexa.GitOps in action, powered by Alexa.
GitOps in action, powered by Alexa.
 

Recently uploaded

Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
saastr
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
AstuteBusiness
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
DanBrown980551
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
Zilliz
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
Alex Pruden
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
shyamraj55
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
MichaelKnudsen27
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
Tomaz Bratanic
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Jeffrey Haguewood
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
Jakub Marek
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
HarisZaheer8
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
Miro Wengner
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Alpen-Adria-Universität
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
Dinusha Kumarasiri
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
marufrahmanstratejm
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
Zilliz
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
LucaBarbaro3
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
maazsz111
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
Ivanti
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Tosin Akinosho
 

Recently uploaded (20)

Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
Overcoming the PLG Trap: Lessons from Canva's Head of Sales & Head of EMEA Da...
 
Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |Astute Business Solutions | Oracle Cloud Partner |
Astute Business Solutions | Oracle Cloud Partner |
 
5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides5th LF Energy Power Grid Model Meet-up Slides
5th LF Energy Power Grid Model Meet-up Slides
 
Programming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup SlidesProgramming Foundation Models with DSPy - Meetup Slides
Programming Foundation Models with DSPy - Meetup Slides
 
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
zkStudyClub - LatticeFold: A Lattice-based Folding Scheme and its Application...
 
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with SlackLet's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
Let's Integrate MuleSoft RPA, COMPOSER, APM with AWS IDP along with Slack
 
Nordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptxNordic Marketo Engage User Group_June 13_ 2024.pptx
Nordic Marketo Engage User Group_June 13_ 2024.pptx
 
GraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracyGraphRAG for Life Science to increase LLM accuracy
GraphRAG for Life Science to increase LLM accuracy
 
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
Salesforce Integration for Bonterra Impact Management (fka Social Solutions A...
 
Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)Main news related to the CCS TSI 2023 (2023/1695)
Main news related to the CCS TSI 2023 (2023/1695)
 
AWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptxAWS Cloud Cost Optimization Presentation.pptx
AWS Cloud Cost Optimization Presentation.pptx
 
JavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green MasterplanJavaLand 2024: Application Development Green Masterplan
JavaLand 2024: Application Development Green Masterplan
 
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing InstancesEnergy Efficient Video Encoding for Cloud and Edge Computing Instances
Energy Efficient Video Encoding for Cloud and Edge Computing Instances
 
Azure API Management to expose backend services securely
Azure API Management to expose backend services securelyAzure API Management to expose backend services securely
Azure API Management to expose backend services securely
 
Public CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptxPublic CyberSecurity Awareness Presentation 2024.pptx
Public CyberSecurity Awareness Presentation 2024.pptx
 
Building Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and MilvusBuilding Production Ready Search Pipelines with Spark and Milvus
Building Production Ready Search Pipelines with Spark and Milvus
 
Trusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process MiningTrusted Execution Environment for Decentralized Process Mining
Trusted Execution Environment for Decentralized Process Mining
 
SAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloudSAP S/4 HANA sourcing and procurement to Public cloud
SAP S/4 HANA sourcing and procurement to Public cloud
 
June Patch Tuesday
June Patch TuesdayJune Patch Tuesday
June Patch Tuesday
 
Monitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdfMonitoring and Managing Anomaly Detection on OpenShift.pdf
Monitoring and Managing Anomaly Detection on OpenShift.pdf
 

IoT Enabled Smoker for Great BBQ

Editor's Notes

  1. Hi!! So exited to be back here at Öredev as a speaker. It’s really great to see so many BBQ enthusiasts in the same room. I’m the guy between you and lunch…. In the next 40 minutes will we talk about how to get great BBQ by using tech. We will touch topics like BBQ, IoT, BBQ, Serverless and eventdriven architecture, and did I say BBQ? This is Iot Enabled Smoker for great BBQ and my name is Jimmy and I will be you pitmaster today!
  2. So the agenda for the day is: Background to the project Overview of the architecture and how it has evolved over time Cloud deep dive and – talk about changes I made and the benefits of that Summary – and final thoughts Before we dive into everything, who am I?
  3. As I said, my name is Jimmy Dahlqvist!! Father of two daughter, afraid of nothing!! IoT, Serverless, BBQ fantast! Serverless since 2016 – lambda Old Day Job – Head of sigma – (cheer) collegues in audience AWS Ambassador + Community Builder (cheer ??)
  4. Let’s jump into the background so we all have the same context.
  5. What is ? Low & Slow – Vs hot and fast I normally target ~120-125c – Reason for doing that is….. Tenderize, tissue breakdown Styles – Us (varies by state, Texas, Tenesee, Nort caroline, New york…), Jamaica, Austrailia, UK – Sweden most US styles Not cooking – Art! But doesn’t mean we can’t use Tech…..
  6. Audience Poll!! Kamado ? UDS? Electric ? Offset ?
  7. My offset smoker – Isn’t she a beuti! How does an offset work + IoT Device – ANIMATION IoT Device – Watch fire, help from technology, What does it do!!
  8. This is an overview of the IoT Device and the food probes I use, standard 2.5mm thermistor probes. What is a Thermistor?
  9. Background and context done Let’s look at the components, and architecture
  10. Two parts – IoT device + cloud Example services for both CLICK!!! Let us take a closer look at the IoT Device
  11. Two parts – HW + SW HW: Rasp-Pi 4 2.5mm food probes – thermistor! MCP3008 (10bit 8 channel)– AD converter – read voltage SW: AWS IoT Greengrass 2.0 – Core Custom component – math voltage to temp
  12. Initialy simple Python app updated over SSH Problems – Logs and Hard to update
  13. Done – Looked at IoT device CLICK Let’s talk about Cloud – where we will spend most of our time
  14. First version of cloud looked like this… Happy little man to the left I guess is me… Device data -> IoT Core IoT Core -> Rules -> Storage + Athena + Dynamo IoT Core -> Rules -> Several SF business logic (thresholds, trends…) API GW RESTful…
  15. IoT rules as router –> on mqtt –> not on payload –> messages discarded in business logic Each event –> one OBJECT in s3 –> Glue/Athena not optimized for that Data written directly to storage (Storage First is good but…) –> Format dictated by the device –> need transform Hard to extend –> Several services did same thing –> notification –> or needed to implement API
  16. So I had a couple of areas that I wanted to improve. I wanted to add the possibility to do a proper ETL and data transformation. So it would be easy to change how data is stored and presented in the cloud withour having to change the device, Introduce a event driven architecture with EventBridge as the event router instead of relying to heavily on rules in IoT core. The rules are great but at this point they didn’t really fulfill what I wanted to accomplish. Lastly decouple the services. Break the mini-monolith... All changes was to create a more flexible system that was easy to extend and manage.
  17. Let’s start by looking at the changes made for the IoT device
  18. With the Initial problems I decided to test out Greengrass. Interact with AWS Services – s3 config etc AWS provided components – Log Manager Build SW as components - Easy to push and publish new versions AWS Lambda support
  19. Now we move over to the cloud part what was done there
  20. Second iteration several improvments. IoT Core no longer primary message router -> EventBridge introduced -> EventDriven architecture -° Rules / targets / subscription Business Logic -> Microservice pattern – with clear responsibility -> Communicating over EB and API Transformation service -> EB Transform / augemnt EB – PayLoad filtering
  21. Let’s take a closer look at some parts of the architecture….. And start with the ingress part…… CLICK! -> Animate Favorite pattern – Storage First Create reliable way to capture data – prevent data loss Use managed services Very powerful when incoming data doesn’t require instant transformation
  22. The next part we should look at is the data augmentation CLICK This part became very important in the new design… CLICK
  23. ….. It allowed me to decouple cloud development from device development Data transform pattern Data augmentation -> Additional information fetched from DynamoDB. Data is transformed to an internal format -> Decouple from the IoT device Almost no code. StepFunctions integration to other services
  24. One of the most important services are the detection service CLICK This is where all the BBQ magic happens….. CLICK
  25. Threshold breach Trends Stall – Happens around 70c (160f). What is it?
  26. Next part to look at is actually the entire system. CLICK!! Everything is built on a serverless and event-driven approach.
  27. Reason You build an serverless and eventdriven architecture. Loosely coupled services Scale and fail independently Cost effective – pay for what you use Extensibility – easy and fast to extend HA – built in
  28. So have technology help me to become a better pitmaster and to get some great BBQ? Some may say it’s cheating but why not use tech to help?
  29. …. I let the result speak for it self!
  30. EventBridge Choreographs Four bounded contexts represented by each service (orchestrated) Stepfunctions The service has unique business logic that need to be implemented and happen in a certain order, when a event is invoked.
  31. StepFunctions Express Workflow has an invocation model of “At least once” which means that it’s possible that your workflow get invoked twice. In dev and test it’s unlikely that it will happen, even in my small project I never saw it. But if you run it in a large enough scale it will happen. So make sure your workload is idempotent and can handle it. This makes them ideal for orchestrating idempotent actions such as transforming input data and storing via PUT in Amazon DynamoDB.
  32. When building on eventbridge I would recommend that you create subscriptions. With that I mean that you create one event rule for one target. Even if EB support up to 5 targets per rule I still say this should be a 1-2-1 mapping. Why? If you create one rule with multiple targets you will create a coupling on the event filter. And if you hit the 5 target limit what are you suppose to do then? Create a second rule with the same filter and start adding new targets? What if you need to update the filter? You will impact several targets that might not be what you wanted to do in the first place, leaving you to start breaking things apart again. So instead we create subscriptions where we create the coupling on the event it self, and we set one target for one rule. It’s easy to add more target, just create a second rule and add the target to it. And the filter in every rule can change without affecting any other target. However…. This of course can lead to several rules having the same filter and that could create problems on it’s own. But in my opinion it’s still better to create subscriptions and deal with a rule explosion.
  33. there is a default EB bus in the region already existing that AWS services post events to. Should you use that as your bus in your application? My recommendation is NO. Leave that bus to be used by AWS services and create your own custom buses for you application. The reason for that is that in that case will become easier to extend and ass busses later. I have seen the default bus being used and the mess it was when then moving to a custom bus. So can’t repeat it enough… Leave the default bus alone! Create custom buses! It’s like using the default VPC…. We don’t do that either!
  34. So instead of using SQS + Lambda to transport. It would be possible to have IoT Core invoke a Express StepFunction with only one step which would be a SDK integration and that integration would just post the event to EB. No code, only 100% managed AWS services doing all of the work for me behind the scene. That is a really nice way to be able to use the SDK integration in StepFunctions. This wcould however break my storage first approach, but since there is no code involved, just AWS calling the SDK on my behalf I could totally live with that. It truly show the power and flexibility in a serverless approach and a service like AWS StepFunctions.
  35. So what is next in this project then?
  36. So to summarize the last 40 minutes. Building an IoT system Serverless and event-driven Get great BBQ with help of technology And with that I say! CLICK!!