SlideShare a Scribd company logo
@AlexPshul
Testing 300K messages/sec Lessons
Alex Pshul
@AlexPshul
alex@pshul.com
https://pshul.com
https://codevalue.net
https://www.meetup.com/Code-Digest/
a serverless IoT system case study
@AlexPshul
Kids, I’m going to tell you an incredible story
The story of how we created a beautiful IoT serverless system
@AlexPshul
Agenda
 Project Requirements
 Why Serverless?
 Solutions
 IoT Hub
 IoT Edge
 Testing & Conclusions
 Would I do that again? (Summary)
3
Agenda
@AlexPshul
About Me
4
Alex Pshul
 Architect, Consultant, lecturer & tech freak
 More than 9 years of hands on experience
 Co-organizer of the Code.Digest Meetup
 https://www.meetup.com/Code-Digest/
 Talk to me about:
@AlexPshul
The Project
Requirements
5
@AlexPshul
Requirements
6
Icon made by Freepik from www.flaticon.com
IoT DevicesSync DeviceSome Cloud MagicBeautiful Dashboard
@AlexPshul
Requirements
7
Icon made by Freepik from www.flaticon.com
Some Cloud MagicBeautiful Dashboard IoT Edge
@AlexPshul
Requirements
8
Icon made by Freepik from www.flaticon.com
Some Cloud MagicBeautiful Dashboard IoT Edge
@AlexPshul
Requirements
9
Icon made by Freepik from www.flaticon.com
Some Cloud MagicBeautiful Dashboard IoT Edge
@AlexPshul
Requirements
10
Icon made by Freepik from www.flaticon.com
Some Cloud MagicBeautiful Dashboard IoT Edge
@AlexPshul
Requirements
 Support edge to cloud messages
 Process the messages
 Real-time & Near real-time processing
 Minimum 4 messages/sec
 Maximum 100K messages/sec
 Store data for later use
 Cloud to device messages
11
@AlexPshul
Serverless & Managed Services!
But why?!
12
@AlexPshul
Cost Effective
13
@AlexPshul
Scalable
14
@AlexPshul
Flexible
 Run on cloud
 Or in a container
 Rich IoT out-of-the-box solutions suite
 Easy to start
 Easy to deploy
15
@AlexPshul
Solutions
Which services and why?
16
@AlexPshul
Azure Functions
 Easy to start & deploy
 Cost efficient
 Scalable
 Very Flexible
 Locally (For debug)
 As a Serverless cloud solution
 In an AppService/Premium solutions
 As a container
 Easy microservices implementation
17
@AlexPshul
SignalR as a Service
 Extreme realtime messaging
 Two way communication
 Scalable
 Free tier for development
 Can be run as a library
18
@AlexPshul
SignalR as a Service
19
@AlexPshul
Azure Storage Tables
 Good integration
 Scales
 Data price = Today + Previous days
 Still, Crazy Cheap!
 API matches CosmosDB
 Write to both – For long and short term storage
20
@AlexPshul
Azure Event Hub
 Messages between services
 High throughput scalable units
 Pay-for-use
 Easy integration with Azure services
 And Apache Kafka
21
@AlexPshul
IoT Hub
Edge, Events and everything in between
22
@AlexPshul
What is IoT Hub?
23
@AlexPshul
IoT Edge
 The “edge” of the cloud reach
 Runs on the device
 Easy OTA services
 Version updates
 Installations
 Provisioning
 Runs containers
 Cloud Communication
24
@AlexPshul
IoT Hub + IoT Edge
 Flexible Updates
 Locally
 Remotely to a large amount of devices
 Variety of tiers
 By features
 By throughput
 Units for scaling
 Easy two way communication
25
@AlexPshul
IoT Hub
2626
Icon made by Freepik from www.flaticon.com
Some Cloud MagicBeautiful Dashboard IoT Edge
@AlexPshul
Cloud “Magic”
2727
Icon made by Freepik from www.flaticon.com
Functions
SignalR
Event Hub IoT Hub IoT Edge
Storage
@AlexPshul
Cloud “Magic” – Store Data
2828
Icon made by Freepik from www.flaticon.com
IoT Message
Functions
SignalR
Event Hub IoT Hub IoT Edge
Storage
@AlexPshul
Cloud “Magic” – Show Data
2929
Icon made by Freepik from www.flaticon.com
Functions
SignalR
Event Hub IoT Hub IoT Edge
Storage
@AlexPshul
Cloud “Magic” – Live Data
3030
Icon made by Freepik from www.flaticon.com
Live Data
Functions
SignalR
Event Hub IoT Hub IoT Edge
Storage
@AlexPshul
Cloud “Magic” – Update a Device
3131
Icon made by Freepik from www.flaticon.com
Update
Device
Functions
SignalR
Event Hub IoT Hub IoT Edge
Storage
@AlexPshul
Testing & Conclusions
Pitfalls and other FAQs
32
@AlexPshul
Max Load Test
33
100 messages/second500 messages/second
@AlexPshul
Max Load Test
34
@AlexPshul
Max Load Test
35
500 messages/second
×200 VMs
100K messages/second
17 × S3 IoT Hub Units
(2 IoT Hubs)
42,500 USD!!!
IoT Hub
@AlexPshul
Max Load Test
36
@AlexPshul
Optimized Load Test
37
@AlexPshul
Optimized Load Test
38
500 messages/second
Pack 20  1 messages
@AlexPshul
Optimized Load Test
39
@AlexPshul
Max Load Test
40
@AlexPshul
Max Load Test
41
25 messages/second
×200 VMs
5K messages/second
1 × S3 IoT Hub Units
2,500 USD!!!
IoT Hub
@AlexPshul
Max Load Test
42
25 messages/second
×200 VMs
5K messages/second
1 × S3 IoT Hub Units
2,500 USD!!!
IoT Hub
@AlexPshul
0  100 Instant Scale is Impossible
43
Scale
Scale Scale
Scale
Scale
Scale
Scale
Scale Scale
Scale
Scale Scale
Scale
SCALE ≠ AVAILABILITY
@AlexPshul
0  100 Instant Scale is Impossible
44
Non HTTP - scales once every 30 seconds
20,000 Entities per second
Partitions # influence the functions scale
@AlexPshul
0  100 Instant Scale is Impossible
45
Use Premium/AppService plan or convert to containers
Use multiple storage accounts
Trial and error to see optimal configuration
@AlexPshul
Summary
Would I go serverless again?
46
@AlexPshul
Would I go serverless again?
47
@AlexPshul
Would I go serverless again?
 Flexible
 React to request changes
 Different deploy options
 Cheap
 Neglectable while developing
 Cheap in production
 If used properly
 Easy to deploy
 Easy to debug
48
Alex Pshul
@AlexPshul
https://www.pshul.com
alexp@codevalue.net
49

More Related Content

PPTX
How I built a ml human hybrid workflow using computer vision - Amir Shitrit
PPTX
Scalable Open-Source IoT Solutions on Microsoft Azure
PPTX
Azure IPaaS: Integration Evolved! (Glenn Colpaert @TechdaysNL 2017)
 
PDF
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
PPTX
Application Autoscaling Made Easy with Kubernetes Event-Driven Autoscaling (K...
 
PDF
PPTX
Cloud integration: what's in it for you? (Toon Vanhoutte & Massimo Crippa at ...
 
PPTX
The Future of Energy - Decentral energy distribution in a digital world
How I built a ml human hybrid workflow using computer vision - Amir Shitrit
Scalable Open-Source IoT Solutions on Microsoft Azure
Azure IPaaS: Integration Evolved! (Glenn Colpaert @TechdaysNL 2017)
 
Can we build an Azure IoT controlled device in less than 40 minutes that cost...
Application Autoscaling Made Easy with Kubernetes Event-Driven Autoscaling (K...
 
Cloud integration: what's in it for you? (Toon Vanhoutte & Massimo Crippa at ...
 
The Future of Energy - Decentral energy distribution in a digital world

What's hot (19)

PDF
Blue Cloud Mirror
PDF
Overview of Blue Medora - New Relic Plugin for MongoDB
PDF
How Mentor Graphics Uses Google Cloud for the Internet of Things - Mentor Gra...
PPTX
eBay's private Cloud Journey
PPTX
Payara Micro from Raspberry Pi to Cloud
 
PDF
IoT at Google Scale
PPTX
Build Serverless applications with Azure Event Grid
PPTX
Getting started with Azure Event Grid - Webinar with Steef-Jan Wiggers
 
PPTX
Introduction to Azure Event Grid
PPTX
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)
 
PPTX
SnapLogic Live: IoT Integration
PPTX
Wally MacDermid presents Scality Connect for Microsoft Azure at Microsoft Ign...
PDF
IoT 'Megaservices' - High Throughput Microservices with Akka
PDF
Cloud Con 2015 - Integration & Web APIs
PDF
WSO2Con USA 2015: Planning Your Cloud Strategy
 
PDF
Peter Bakas - Zero to Insights - Real time analytics with Kafka, C*, and Spar...
PPT
PERFTEST FOR WEB BASED APPS
PDF
Overview of Blue Medora - New Relic Plugin for Cloud Foundry
PDF
OWF13 - October 3 - Raphael Ferreira
Blue Cloud Mirror
Overview of Blue Medora - New Relic Plugin for MongoDB
How Mentor Graphics Uses Google Cloud for the Internet of Things - Mentor Gra...
eBay's private Cloud Journey
Payara Micro from Raspberry Pi to Cloud
 
IoT at Google Scale
Build Serverless applications with Azure Event Grid
Getting started with Azure Event Grid - Webinar with Steef-Jan Wiggers
 
Introduction to Azure Event Grid
Living on the (IoT) edge (Sam Vanhoutte @TechdaysNL 2017)
 
SnapLogic Live: IoT Integration
Wally MacDermid presents Scality Connect for Microsoft Azure at Microsoft Ign...
IoT 'Megaservices' - High Throughput Microservices with Akka
Cloud Con 2015 - Integration & Web APIs
WSO2Con USA 2015: Planning Your Cloud Strategy
 
Peter Bakas - Zero to Insights - Real time analytics with Kafka, C*, and Spar...
PERFTEST FOR WEB BASED APPS
Overview of Blue Medora - New Relic Plugin for Cloud Foundry
OWF13 - October 3 - Raphael Ferreira
Ad

Similar to 300k messages/min in an IoT serverless system (20)

PDF
Alex Pshul: What We Learned by Testing Execution of 300K Messages/Min in a Se...
PPTX
A serverless IoT story from design to production and monitoring
PPTX
A serverless IoT Story From Design to Production and Monitoring
PPTX
DWX2018 IoT lecture
PPTX
When IoT meets Serverless - from design to production and monitoring
PPTX
.NET Fest 2019. Alex Pshul. When IoT Meets Serverless
PPTX
Manage your devices with Azure IoT...and more
PPTX
Maturing IoT solutions with Microsoft Azure (Sam Vanhoutte & Glenn Colpaert a...
 
PPTX
Architecting IoT solutions with Microsoft Azure
PDF
IoTforReal Seminar slidedeck
 
PPTX
Azure Internet of Things
PPTX
Azure IoT Camp
PDF
Architecting Azure (I)IoT Solutions @ IoT Saturday 2019
PPTX
Exploring the Azure IoT Ecosystem
PPTX
Azure IoT End-to-End
PDF
IoT
PPTX
Microsoft Azure IoT Hub (Sam Vanhoutte @TechdaysNL 2017)
 
PPTX
Building the IOT Platform as a Service
PDF
IoT Story: From Edge to HDP
PPTX
Azure IoT Summary
Alex Pshul: What We Learned by Testing Execution of 300K Messages/Min in a Se...
A serverless IoT story from design to production and monitoring
A serverless IoT Story From Design to Production and Monitoring
DWX2018 IoT lecture
When IoT meets Serverless - from design to production and monitoring
.NET Fest 2019. Alex Pshul. When IoT Meets Serverless
Manage your devices with Azure IoT...and more
Maturing IoT solutions with Microsoft Azure (Sam Vanhoutte & Glenn Colpaert a...
 
Architecting IoT solutions with Microsoft Azure
IoTforReal Seminar slidedeck
 
Azure Internet of Things
Azure IoT Camp
Architecting Azure (I)IoT Solutions @ IoT Saturday 2019
Exploring the Azure IoT Ecosystem
Azure IoT End-to-End
IoT
Microsoft Azure IoT Hub (Sam Vanhoutte @TechdaysNL 2017)
 
Building the IOT Platform as a Service
IoT Story: From Edge to HDP
Azure IoT Summary
Ad

Recently uploaded (20)

PPTX
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
PPTX
VVF-Customer-Presentation2025-Ver1.9.pptx
PDF
Internet Downloader Manager (IDM) Crack 6.42 Build 41
PDF
Navsoft: AI-Powered Business Solutions & Custom Software Development
PPTX
Odoo POS Development Services by CandidRoot Solutions
PDF
top salesforce developer skills in 2025.pdf
PDF
System and Network Administraation Chapter 3
PPTX
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
PDF
Understanding Forklifts - TECH EHS Solution
PDF
Adobe Illustrator 28.6 Crack My Vision of Vector Design
PDF
Wondershare Filmora 15 Crack With Activation Key [2025
PPTX
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
PDF
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
PPTX
ai tools demonstartion for schools and inter college
PDF
Softaken Excel to vCard Converter Software.pdf
PDF
Design an Analysis of Algorithms I-SECS-1021-03
PPTX
Transform Your Business with a Software ERP System
PDF
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
PPTX
history of c programming in notes for students .pptx
PDF
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool
Oracle E-Business Suite: A Comprehensive Guide for Modern Enterprises
VVF-Customer-Presentation2025-Ver1.9.pptx
Internet Downloader Manager (IDM) Crack 6.42 Build 41
Navsoft: AI-Powered Business Solutions & Custom Software Development
Odoo POS Development Services by CandidRoot Solutions
top salesforce developer skills in 2025.pdf
System and Network Administraation Chapter 3
Agentic AI Use Case- Contract Lifecycle Management (CLM).pptx
Understanding Forklifts - TECH EHS Solution
Adobe Illustrator 28.6 Crack My Vision of Vector Design
Wondershare Filmora 15 Crack With Activation Key [2025
Agentic AI : A Practical Guide. Undersating, Implementing and Scaling Autono...
Audit Checklist Design Aligning with ISO, IATF, and Industry Standards — Omne...
ai tools demonstartion for schools and inter college
Softaken Excel to vCard Converter Software.pdf
Design an Analysis of Algorithms I-SECS-1021-03
Transform Your Business with a Software ERP System
T3DD25 TYPO3 Content Blocks - Deep Dive by André Kraus
history of c programming in notes for students .pptx
Claude Code: Everyone is a 10x Developer - A Comprehensive AI-Powered CLI Tool

300k messages/min in an IoT serverless system