SlideShare une entreprise Scribd logo
1  sur  48
Télécharger pour lire hors ligne
1S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
S E R V E R L E S S D A Y S 2 0 1 9
IOT and Home Automation
Serverless Computing
JAIPUR, INDIA
@Sonal Raj
2S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Hi, I’m Sonal …
3S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
… and here
is where you
can find me
4S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
What’s the plan for this
hour?
S E R V E R L E S S D A Y S 2 0 1 9
5S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
I Internet
of Things
S
Serverless
Z
Python
C
Create
D
Ideas
6S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Senses
7S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Your location
Your state of motion and
direction
Orientation of the
device
Ambience or light in the
room
Proximity to a surface
Can listen to what you
say
See things in front and
behind it.
Transfer Info over a
wireless network
8S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Raspberry Pi 3B+ Arduino PLC / PAC
9S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
What does a simple
IOT setup look like?
10S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
11S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
12S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
13S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Internet
Enabled
Support Digital
Assistants
Smart Phone
Controls
Programmable
APIs
14S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
15S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Architecture
16S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Smart
Homes
17S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Smart
Cities
18S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Serverless
Computing
19S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
20S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
21S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Event Triggers
22S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Serverless Providers
23S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
How it all
works?
24S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Static Websites, Web Apps,
Flask Packages
Backend Apps and Services,
Mobile and IOT
Data Processing in Real Time,
Batch or MapReduce
Creating logic for chatbots
Voice enabled apps and skills
in Alexa assistants
Automation of Services and
Infrastructure management
Applications
25S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Using Python
26S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Can setup REST APIs on
serverless architectures
Message Queueing
Telemetry Transport Libmraa – Low level Communication
library for linux
27S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
pyopencv – Image and
Video Processing
library
Audio and Sound Processing
in Python Micropython
28S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
A Flask extension that has wrappers for the
common constructs for the alexa skills API.
• Has decorators to map Alexa requests and intent slots to view functions
• Helps construct ask and tell responses, re-prompts and cards
• Makes session management easy
• Allows for the separation of code and speech through Jinja templates
• Verifies Alexa request signatures
29S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Lambda/Function structure
for IOT
Lambda Handlers
Parse incoming request message
based on type/context
Event / Session Handlers
Handle launch events and
session events
Response Builders Custom logic and API to
generate response based on
parsed input and sends back
30S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
What can you integrate in
lambdas?
• REST APIs / Http Servers
• Database querying scripts.
• Kafka Queues
• Randomized generators
• Filtering and transforming data on the fly
• Automated backups and everyday tasks and Reports
• Log analysis on the fly
31S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Lambda Tips and Tricks
• Lambda Functions are recycled. Subsequent invocation are redeployed &
add latency. Worse if networked.
32S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Lambda Tips and Tricks
• If you are using Node 4.*, upgrade! OpenSSL bug causes SSL connections
will fail without cause intermittently, but only if you’re using DynamoDB.
Just upgrade to Node 6.x
• Try and Avoid Global State Usage! Containers are reused, it’s possible to
stuff data into global memory and, with a good probability, it will be there in
the next invocation.
33S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Lambda Tips and Tricks
• Keep timeouts to a minimum. Most async library operations come along
with long default timeout periods. NodeJs has default of 2 minutes. Alexa
expects an answer in 7.5s. Keeps applications well behaved.
• User friendly error logging. Make sure that you log custom metrics for
tracking these “soft errors” since Lambda’s invocation error metrics won’t
be relevant anymore. (Cloudwatch on AWS helps!)
34S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Function Limitations
35S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Creating Serverless
APIs for IOT
36S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Code Walkthrough
and Demo
37S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
“Alexa, ask Zomato for the nearest [restaurantType]”
Invocation Name
Slot
Utterance
Intent
What a user must say to
“start” the skill. Each skill
has a unique Invocation
Name
A variable within an
utterance. Variable
possibilities must be
defined.
The spoken message is
mapped to an intent which
decides what code to run
within your skill.
A spoken phrase that
maps to an intent. A skill
can have many
utterances.
38S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Echosim.io
Simulator
39S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
How the future
looks like?
40S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
AlexaBot
https://github.com/jacobajit/AlexaBot
41S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Event driven, serverless
chatbots architecture
42S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
https://goo.gl/UEzRGo
Google Assistant on Your
Amazon Echo
43S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Using data from fitness trackers . . .
• Continuous HR data – detect spikes, stroke patterns, anxiety
• Calorie estimation from step count, and alert when you need to eat.
• Alerting triggers based on thresholds
• Create APIs to connect other devices like glucometers, and Blood
Pressure monitors.
• Publish data to a central store, with web visualization support.
44S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
• Interactive Social Networks
• Interactive Idea boards
• Voice Gaming
• Crisis Alerting
• Office Integration – Meeting room bookings, etc.
• Always aware state.
The Future
45S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
Smart
Problems!
46S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
47S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Internet of Things Serverless Python Create Ideas
48S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] -
Questions
github.com/sonal-raj/serverlessdays2019

Contenu connexe

Tendances

Azure Percept Home Automation - Festive Tech Calendar 2021 - 01-12-21
Azure Percept Home Automation  - Festive Tech Calendar 2021 - 01-12-21Azure Percept Home Automation  - Festive Tech Calendar 2021 - 01-12-21
Azure Percept Home Automation - Festive Tech Calendar 2021 - 01-12-21Peter Gallagher
 
IRJET- Web based Solution for Smart Home Functionality Extension and Cont...
IRJET-  	  Web based Solution for Smart Home Functionality Extension and Cont...IRJET-  	  Web based Solution for Smart Home Functionality Extension and Cont...
IRJET- Web based Solution for Smart Home Functionality Extension and Cont...IRJET Journal
 
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...Lviv Startup Club
 
Home automation using raspberry pi
Home automation using raspberry piHome automation using raspberry pi
Home automation using raspberry pidnp99
 
Scripting Things - Creating the Internet of Things with Perl
Scripting Things - Creating the Internet of Things with PerlScripting Things - Creating the Internet of Things with Perl
Scripting Things - Creating the Internet of Things with PerlHans Scharler
 
Internet of Things 101 - Part II
Internet of Things 101 - Part IIInternet of Things 101 - Part II
Internet of Things 101 - Part IIYoonseok Hur
 
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...Peter Gallagher
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...Peter Gallagher
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...Peter Gallagher
 
Smart Speakers Introduction
Smart Speakers IntroductionSmart Speakers Introduction
Smart Speakers IntroductionSourav Sadhukhan
 
ThingSpeak: apps for social things
ThingSpeak: apps for social thingsThingSpeak: apps for social things
ThingSpeak: apps for social thingsHans Scharler
 
Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation  Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation Arun Kumar
 
Home Automation over Internet
Home Automation over InternetHome Automation over Internet
Home Automation over InternetRakesh Chintha
 
3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical VersionVeacon
 
3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical VersionValensas
 
Driving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConfDriving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConfHans Scharler
 
Introduction to Home Automation
Introduction to Home AutomationIntroduction to Home Automation
Introduction to Home AutomationRuslan Ulanov
 

Tendances (20)

Azure Percept Home Automation - Festive Tech Calendar 2021 - 01-12-21
Azure Percept Home Automation  - Festive Tech Calendar 2021 - 01-12-21Azure Percept Home Automation  - Festive Tech Calendar 2021 - 01-12-21
Azure Percept Home Automation - Festive Tech Calendar 2021 - 01-12-21
 
IRJET- Web based Solution for Smart Home Functionality Extension and Cont...
IRJET-  	  Web based Solution for Smart Home Functionality Extension and Cont...IRJET-  	  Web based Solution for Smart Home Functionality Extension and Cont...
IRJET- Web based Solution for Smart Home Functionality Extension and Cont...
 
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
Володимир Широчук “Як це працює – керуємо розумним годинником LaMetric Time г...
 
Home automation using raspberry pi
Home automation using raspberry piHome automation using raspberry pi
Home automation using raspberry pi
 
Scripting Things - Creating the Internet of Things with Perl
Scripting Things - Creating the Internet of Things with PerlScripting Things - Creating the Internet of Things with Perl
Scripting Things - Creating the Internet of Things with Perl
 
Bluetooth
BluetoothBluetooth
Bluetooth
 
Internet of Things 101 - Part II
Internet of Things 101 - Part IIInternet of Things 101 - Part II
Internet of Things 101 - Part II
 
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
Getting started with IoT with only your laptop - September 2019 - Dot Net Liv...
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - .NET Sout...
 
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
Building a Raspberry Pi Robot Arm with .NET 5, Blazor and SignalR - HackSoc -...
 
Smart Speakers Introduction
Smart Speakers IntroductionSmart Speakers Introduction
Smart Speakers Introduction
 
ThingSpeak: apps for social things
ThingSpeak: apps for social thingsThingSpeak: apps for social things
ThingSpeak: apps for social things
 
Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation  Home automation in kerala ,home automation in calicut , home automation
Home automation in kerala ,home automation in calicut , home automation
 
Home Automation over Internet
Home Automation over InternetHome Automation over Internet
Home Automation over Internet
 
3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version
 
3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version3 Smart Bluetooth Projects - Technical Version
3 Smart Bluetooth Projects - Technical Version
 
Smart home with home automation
Smart home with home automationSmart home with home automation
Smart home with home automation
 
Driving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConfDriving the Internet of Things with Mobile Apps at tiConf
Driving the Internet of Things with Mobile Apps at tiConf
 
Introduction to Home Automation
Introduction to Home AutomationIntroduction to Home Automation
Introduction to Home Automation
 
Making IoT Accessible
Making IoT AccessibleMaking IoT Accessible
Making IoT Accessible
 

Similaire à IOT and Home Automation with Serverless Computing | Serverless Days 2019 | Sonal Raj | Jaipur

Microsoft, Open Source, DevOps, Kubernetes
Microsoft, Open Source, DevOps, KubernetesMicrosoft, Open Source, DevOps, Kubernetes
Microsoft, Open Source, DevOps, KubernetesJessica Deen
 
DevOps, Kuberenetes, Helm and Draft Azure Montevideo Meetup
DevOps, Kuberenetes, Helm and Draft Azure Montevideo MeetupDevOps, Kuberenetes, Helm and Draft Azure Montevideo Meetup
DevOps, Kuberenetes, Helm and Draft Azure Montevideo MeetupJessica Deen
 
DevOps, Waffles, and Superheroes
DevOps, Waffles, and SuperheroesDevOps, Waffles, and Superheroes
DevOps, Waffles, and SuperheroesJessica Deen
 
From Zero to DevOps Superhero
From Zero to DevOps SuperheroFrom Zero to DevOps Superhero
From Zero to DevOps SuperheroJessica Deen
 
Hacking with the Raspberry Pi and Windows 10 IoT Core
Hacking with the Raspberry Pi and Windows 10 IoT CoreHacking with the Raspberry Pi and Windows 10 IoT Core
Hacking with the Raspberry Pi and Windows 10 IoT CoreNick Landry
 
Microsoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOpsMicrosoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOpsJessica Deen
 
Microsoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOpsMicrosoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOpsJessica Deen
 
Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...
Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...
Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...Amazon Web Services
 
AWS re:Invent Recap 2016 Taiwan part 2
AWS re:Invent Recap 2016 Taiwan part 2AWS re:Invent Recap 2016 Taiwan part 2
AWS re:Invent Recap 2016 Taiwan part 2Amazon Web Services
 
DevOps with Kubernetes and Helm
DevOps with Kubernetes and HelmDevOps with Kubernetes and Helm
DevOps with Kubernetes and HelmJessica Deen
 
Decoupled APIs through microservices
Decoupled APIs through microservicesDecoupled APIs through microservices
Decoupled APIs through microservicesDavid Simons
 
Enabling IoT devices to talk Web: The Community approach
Enabling IoT devices to talk Web: The Community approachEnabling IoT devices to talk Web: The Community approach
Enabling IoT devices to talk Web: The Community approach Charalampos Doukas
 
IThome DevOps Summit - IoT、docker與DevOps
IThome DevOps Summit - IoT、docker與DevOpsIThome DevOps Summit - IoT、docker與DevOps
IThome DevOps Summit - IoT、docker與DevOpsSimon Su
 
Juraj vysvader - Python developer's CV
Juraj vysvader - Python developer's CVJuraj vysvader - Python developer's CV
Juraj vysvader - Python developer's CVJuraj Vysvader
 
Footprinting-and-the-basics-of-hacking
Footprinting-and-the-basics-of-hackingFootprinting-and-the-basics-of-hacking
Footprinting-and-the-basics-of-hackingSathishkumar A
 
AI Deeplearning Programming
AI Deeplearning ProgrammingAI Deeplearning Programming
AI Deeplearning ProgrammingPaulSombat
 
Frome Zero to DevOps Superhero: The Container Edition
Frome Zero to DevOps Superhero: The Container EditionFrome Zero to DevOps Superhero: The Container Edition
Frome Zero to DevOps Superhero: The Container EditionJessica Deen
 

Similaire à IOT and Home Automation with Serverless Computing | Serverless Days 2019 | Sonal Raj | Jaipur (20)

Microsoft, Open Source, DevOps, Kubernetes
Microsoft, Open Source, DevOps, KubernetesMicrosoft, Open Source, DevOps, Kubernetes
Microsoft, Open Source, DevOps, Kubernetes
 
DevOps, Kuberenetes, Helm and Draft Azure Montevideo Meetup
DevOps, Kuberenetes, Helm and Draft Azure Montevideo MeetupDevOps, Kuberenetes, Helm and Draft Azure Montevideo Meetup
DevOps, Kuberenetes, Helm and Draft Azure Montevideo Meetup
 
DevOps, Waffles, and Superheroes
DevOps, Waffles, and SuperheroesDevOps, Waffles, and Superheroes
DevOps, Waffles, and Superheroes
 
From Zero to DevOps Superhero
From Zero to DevOps SuperheroFrom Zero to DevOps Superhero
From Zero to DevOps Superhero
 
Hacking with the Raspberry Pi and Windows 10 IoT Core
Hacking with the Raspberry Pi and Windows 10 IoT CoreHacking with the Raspberry Pi and Windows 10 IoT Core
Hacking with the Raspberry Pi and Windows 10 IoT Core
 
Microsoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOpsMicrosoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOps
 
Creative Engineering Breakthroughs
Creative Engineering BreakthroughsCreative Engineering Breakthroughs
Creative Engineering Breakthroughs
 
Microsoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOpsMicrosoft, Linux, OSS, Cloud and DevOps
Microsoft, Linux, OSS, Cloud and DevOps
 
Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...
Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...
Create an IoT Gateway and Establish a Data Pipeline to AWS IoT with Intel - I...
 
Resume
ResumeResume
Resume
 
AWS re:Invent Recap 2016 Taiwan part 2
AWS re:Invent Recap 2016 Taiwan part 2AWS re:Invent Recap 2016 Taiwan part 2
AWS re:Invent Recap 2016 Taiwan part 2
 
JAWS DAYS 2018
JAWS DAYS 2018JAWS DAYS 2018
JAWS DAYS 2018
 
DevOps with Kubernetes and Helm
DevOps with Kubernetes and HelmDevOps with Kubernetes and Helm
DevOps with Kubernetes and Helm
 
Decoupled APIs through microservices
Decoupled APIs through microservicesDecoupled APIs through microservices
Decoupled APIs through microservices
 
Enabling IoT devices to talk Web: The Community approach
Enabling IoT devices to talk Web: The Community approachEnabling IoT devices to talk Web: The Community approach
Enabling IoT devices to talk Web: The Community approach
 
IThome DevOps Summit - IoT、docker與DevOps
IThome DevOps Summit - IoT、docker與DevOpsIThome DevOps Summit - IoT、docker與DevOps
IThome DevOps Summit - IoT、docker與DevOps
 
Juraj vysvader - Python developer's CV
Juraj vysvader - Python developer's CVJuraj vysvader - Python developer's CV
Juraj vysvader - Python developer's CV
 
Footprinting-and-the-basics-of-hacking
Footprinting-and-the-basics-of-hackingFootprinting-and-the-basics-of-hacking
Footprinting-and-the-basics-of-hacking
 
AI Deeplearning Programming
AI Deeplearning ProgrammingAI Deeplearning Programming
AI Deeplearning Programming
 
Frome Zero to DevOps Superhero: The Container Edition
Frome Zero to DevOps Superhero: The Container EditionFrome Zero to DevOps Superhero: The Container Edition
Frome Zero to DevOps Superhero: The Container Edition
 

Plus de Sonal Raj

Progressive Javascript: Why React when you can Vue?
Progressive Javascript: Why React when you can Vue?Progressive Javascript: Why React when you can Vue?
Progressive Javascript: Why React when you can Vue?Sonal Raj
 
Alexa enabled smart home programming in Python - PyCon India 2018
Alexa enabled smart home programming in Python - PyCon India 2018Alexa enabled smart home programming in Python - PyCon India 2018
Alexa enabled smart home programming in Python - PyCon India 2018Sonal Raj
 
Startup Diagnostics: Reasons why startups can fail.
Startup Diagnostics: Reasons why startups can fail.Startup Diagnostics: Reasons why startups can fail.
Startup Diagnostics: Reasons why startups can fail.Sonal Raj
 
IT Quiz Mains
IT Quiz MainsIT Quiz Mains
IT Quiz MainsSonal Raj
 
IT Quiz Prelims
IT Quiz PrelimsIT Quiz Prelims
IT Quiz PrelimsSonal Raj
 
Spock the human computer interaction system - synopsis
Spock   the human computer interaction system - synopsisSpock   the human computer interaction system - synopsis
Spock the human computer interaction system - synopsisSonal Raj
 
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013Sonal Raj
 
Storm Real Time Computation
Storm Real Time ComputationStorm Real Time Computation
Storm Real Time ComputationSonal Raj
 

Plus de Sonal Raj (8)

Progressive Javascript: Why React when you can Vue?
Progressive Javascript: Why React when you can Vue?Progressive Javascript: Why React when you can Vue?
Progressive Javascript: Why React when you can Vue?
 
Alexa enabled smart home programming in Python - PyCon India 2018
Alexa enabled smart home programming in Python - PyCon India 2018Alexa enabled smart home programming in Python - PyCon India 2018
Alexa enabled smart home programming in Python - PyCon India 2018
 
Startup Diagnostics: Reasons why startups can fail.
Startup Diagnostics: Reasons why startups can fail.Startup Diagnostics: Reasons why startups can fail.
Startup Diagnostics: Reasons why startups can fail.
 
IT Quiz Mains
IT Quiz MainsIT Quiz Mains
IT Quiz Mains
 
IT Quiz Prelims
IT Quiz PrelimsIT Quiz Prelims
IT Quiz Prelims
 
Spock the human computer interaction system - synopsis
Spock   the human computer interaction system - synopsisSpock   the human computer interaction system - synopsis
Spock the human computer interaction system - synopsis
 
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
Real Time Graph Computations in Storm, Neo4J, Python - PyCon India 2013
 
Storm Real Time Computation
Storm Real Time ComputationStorm Real Time Computation
Storm Real Time Computation
 

Dernier

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024Rafal Los
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilV3cube
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j
 
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 DevelopmentsTrustArc
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024The Digital Insurer
 
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 RobisonAnna Loughnan Colquhoun
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfEnterprise Knowledge
 
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 Processorsdebabhi2
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)Gabriella Davis
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Igalia
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024Results
 
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 organizationRadu Cotescu
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEarley Information Science
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreternaman860154
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Miguel Araújo
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityPrincipled Technologies
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking MenDelhi Call girls
 
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
 

Dernier (20)

The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024The 7 Things I Know About Cyber Security After 25 Years | April 2024
The 7 Things I Know About Cyber Security After 25 Years | April 2024
 
Developing An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of BrazilDeveloping An App To Navigate The Roads of Brazil
Developing An App To Navigate The Roads of Brazil
 
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
Neo4j - How KGs are shaping the future of Generative AI at AWS Summit London ...
 
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
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024Tata AIG General Insurance Company - Insurer Innovation Award 2024
Tata AIG General Insurance Company - Insurer Innovation Award 2024
 
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
 
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdfThe Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
The Role of Taxonomy and Ontology in Semantic Layers - Heather Hedden.pdf
 
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
 
A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)A Domino Admins Adventures (Engage 2024)
A Domino Admins Adventures (Engage 2024)
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024A Call to Action for Generative AI in 2024
A Call to Action for Generative AI in 2024
 
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
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men08448380779 Call Girls In Civil Lines Women Seeking Men
08448380779 Call Girls In Civil Lines Women Seeking Men
 
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...
 

IOT and Home Automation with Serverless Computing | Serverless Days 2019 | Sonal Raj | Jaipur

  • 1. 1S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - S E R V E R L E S S D A Y S 2 0 1 9 IOT and Home Automation Serverless Computing JAIPUR, INDIA @Sonal Raj
  • 2. 2S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Hi, I’m Sonal …
  • 3. 3S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - … and here is where you can find me
  • 4. 4S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - What’s the plan for this hour? S E R V E R L E S S D A Y S 2 0 1 9
  • 5. 5S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - I Internet of Things S Serverless Z Python C Create D Ideas
  • 6. 6S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Senses
  • 7. 7S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Your location Your state of motion and direction Orientation of the device Ambience or light in the room Proximity to a surface Can listen to what you say See things in front and behind it. Transfer Info over a wireless network
  • 8. 8S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Raspberry Pi 3B+ Arduino PLC / PAC
  • 9. 9S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - What does a simple IOT setup look like?
  • 10. 10S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 11. 11S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 12. 12S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 13. 13S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Internet Enabled Support Digital Assistants Smart Phone Controls Programmable APIs
  • 14. 14S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 15. 15S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Architecture
  • 16. 16S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Smart Homes
  • 17. 17S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Smart Cities
  • 18. 18S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Serverless Computing
  • 19. 19S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 20. 20S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 21. 21S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Event Triggers
  • 22. 22S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Serverless Providers
  • 23. 23S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas How it all works?
  • 24. 24S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Static Websites, Web Apps, Flask Packages Backend Apps and Services, Mobile and IOT Data Processing in Real Time, Batch or MapReduce Creating logic for chatbots Voice enabled apps and skills in Alexa assistants Automation of Services and Infrastructure management Applications
  • 25. 25S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Using Python
  • 26. 26S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Can setup REST APIs on serverless architectures Message Queueing Telemetry Transport Libmraa – Low level Communication library for linux
  • 27. 27S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas pyopencv – Image and Video Processing library Audio and Sound Processing in Python Micropython
  • 28. 28S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas A Flask extension that has wrappers for the common constructs for the alexa skills API. • Has decorators to map Alexa requests and intent slots to view functions • Helps construct ask and tell responses, re-prompts and cards • Makes session management easy • Allows for the separation of code and speech through Jinja templates • Verifies Alexa request signatures
  • 29. 29S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Lambda/Function structure for IOT Lambda Handlers Parse incoming request message based on type/context Event / Session Handlers Handle launch events and session events Response Builders Custom logic and API to generate response based on parsed input and sends back
  • 30. 30S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas What can you integrate in lambdas? • REST APIs / Http Servers • Database querying scripts. • Kafka Queues • Randomized generators • Filtering and transforming data on the fly • Automated backups and everyday tasks and Reports • Log analysis on the fly
  • 31. 31S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Lambda Tips and Tricks • Lambda Functions are recycled. Subsequent invocation are redeployed & add latency. Worse if networked.
  • 32. 32S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Lambda Tips and Tricks • If you are using Node 4.*, upgrade! OpenSSL bug causes SSL connections will fail without cause intermittently, but only if you’re using DynamoDB. Just upgrade to Node 6.x • Try and Avoid Global State Usage! Containers are reused, it’s possible to stuff data into global memory and, with a good probability, it will be there in the next invocation.
  • 33. 33S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Lambda Tips and Tricks • Keep timeouts to a minimum. Most async library operations come along with long default timeout periods. NodeJs has default of 2 minutes. Alexa expects an answer in 7.5s. Keeps applications well behaved. • User friendly error logging. Make sure that you log custom metrics for tracking these “soft errors” since Lambda’s invocation error metrics won’t be relevant anymore. (Cloudwatch on AWS helps!)
  • 34. 34S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Function Limitations
  • 35. 35S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Creating Serverless APIs for IOT
  • 36. 36S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Code Walkthrough and Demo
  • 37. 37S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas “Alexa, ask Zomato for the nearest [restaurantType]” Invocation Name Slot Utterance Intent What a user must say to “start” the skill. Each skill has a unique Invocation Name A variable within an utterance. Variable possibilities must be defined. The spoken message is mapped to an intent which decides what code to run within your skill. A spoken phrase that maps to an intent. A skill can have many utterances.
  • 38. 38S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Echosim.io Simulator
  • 39. 39S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - How the future looks like?
  • 40. 40S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas AlexaBot https://github.com/jacobajit/AlexaBot
  • 41. 41S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Event driven, serverless chatbots architecture
  • 42. 42S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas https://goo.gl/UEzRGo Google Assistant on Your Amazon Echo
  • 43. 43S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Using data from fitness trackers . . . • Continuous HR data – detect spikes, stroke patterns, anxiety • Calorie estimation from step count, and alert when you need to eat. • Alerting triggers based on thresholds • Create APIs to connect other devices like glucometers, and Blood Pressure monitors. • Publish data to a central store, with web visualization support.
  • 44. 44S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas • Interactive Social Networks • Interactive Idea boards • Voice Gaming • Crisis Alerting • Office Integration – Meeting room bookings, etc. • Always aware state. The Future
  • 45. 45S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas Smart Problems!
  • 46. 46S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 47. 47S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Internet of Things Serverless Python Create Ideas
  • 48. 48S L I D EJ a i p u r , I n d i a S E R V E R L E S S D A Y S 2 0 1 9- [ ] - Questions github.com/sonal-raj/serverlessdays2019