azure e .net per internet of things
TRANSCRIPT
Azure e .NET per l’Azienda Maker
Marco ParenzanMicrosoft MVP 2014 for Azure
1nn0va / [email protected]
Speaker info/Marco Parenzan
www.slideshare.net/marco.parenzan
www.github.com/marcoparenzan
marco [dot] parenzan [at] 1nn0va [dot] it
www.1nnova.it
@marco_parenzan
Formazione ,Divulgazione e Consulenza con 1nn0va
Microsoft MVP 2014 for Microsoft Azure
Cloud Architect, NET developer
Loves Functional Programming, Html5 Game Programming and Internet of Things
Microservices
Saturday
2015: un
viaggio con
NServiceBus L
IVE
IoT Day - 08/05/2015
Internet of Things // Internet delle Cose
Cos’è l’Internet of Things?
• La rete degli oggetti fisici che contengono tecnologia per comunicare e
interagire con loro stati interni o esterno ambiente embedded.
• Il termine è stato creato da Kevin Ashton nel 1999 per descrivere una
tecnologia per l'identificazione univoca degli oggetti all'interno di una "rete".
Internet of Things e i device
• IoT non è solo circa la raccolta dati, si tratta di come è possibile utilizzare
questi dati per ottenere il valore
• Un dispositivo Embedded connesso a Internet non è un dispositivo Internet
delle cose
• An “IoT Device” does not exists !
• Avete IoT quando hai cose (dispositivi) e Internet, una soluzione che integra
dispositivi e servizi basati su Internet è un prodotto IoT
Perchè IoT?
• Data-Driven Insight (“Telemetry”)
• More efficient use of resources (reduce cost, environmental impact)
• More targeted products and services (increase revenue, social impact)
• => “Things” = a rapidly expanding source of raw material for the Insight pipeline
• Enable Action at a Distance (“Command & Control”)
• Engage with customers beyond the point of sale
• Preventive maintenance, Best practices guidance, Proactive sales, Remote
servicing etc.
• => From CRM to PRM – “Product Relationship Management”
Gartner HypeCycle for IoT 2014
Un momento di svolta per l’IoT
Components
and devices
are
inexpensive
Connectivity
is pervasive
Development
is easy
Economic
benefits are
enormous
New
scenarios fuel
demand
Windows per l’IoTThanks to Mirco Vanini for slides
http://mircovanini.blogspot.it/2015/04/mec-internet-of-things-conference-
2015_21.html
La strada per la convergenza
Windows 10 for IoT Devices
Windows 10 for IoT Devices
Windows Developer Program for IoT
This is the first in a series of
Internet of Things (IoT) programs
for the creation of connected
devices. This program is tailor-
made for both makers and
Windows developers entering
into the IoT space.
Designed for developers
Leverage the Windows platform
and its diverse hardware
ecosystem. Utilize familiar Win32
programming using best in-class
development and debugging
tools.
Windows platform with
Visual Studio
The accessibility of Arduino
combined with the connectivity
of Windows. Quickly iterate and
expand on hardware and
software designs using existing
shields and sketches
Rapid hardware development
www.windowsondevices.com
We’re excited to announce that
we are expanding our Windows
Developer Program for IoT by
delivering a version of Windows
10 that supports Raspberry Pi 2.
This release of Windows 10 will
be free for the Maker community
through the Windows Developer
Program for IoT.
Windows 10 per Raspberry Pi 2
Azure per l’IoT
Perchè il cloud?
• Creare ambienti per lo sviluppo del business rapidamente
• Scalare per sopportare i picchi di utilizzo
• Incrementare le attivita’ giornaliere, l’efficenza e ridurre i costi.
On Premises
Lo s
calin
g, l
a r
esi
lien
zae la g
est
ion
eso
no
a n
ost
roca
rico Infrastructure
(as a Service)
Gest
ito
dal ven
do
rA n
ost
roca
rico
scalin
g, re
silien
za&
gest
ion
e
Platform (as a Service)
Sca
lin
g, re
silien
zae
gest
itid
al ven
do
r
No
ig
est
iam
o
Modelli di Hosting classico
Software(as a Service)
Business model
Applications
Sca
lin
g, r
esi
lien
zae
gest
ito
dal ven
do
r
Modelli di Cloud
Azure
footprint
19 regioni worldwide nel 2015
Data Centers
Regional Partners
I servizi di Microsoft AzureC
lien
t la
yer
(on
-pre
mis
es)
Tablet Phone
Games
consolePC
On-
premises
databaseBrowser
Office Add-
in
On-
premises
service
AD
Multifactor
Authentication
Access
Co
ntr
ol
Layer
Inte
gra
tio
n
layer
Service Bus CDN
BizTalk
Services
Traffic
Manager
Virtual
NetworksExpress
Route
Ap
pli
cati
on
layer
API Mgmt Websites
Cloud
Services VM
Mobile
Services
Media
Services
Notification
Hubs Scheduler Automation
Data
Layer
Storage Blobs Tables Queues Data
Machine
Learning HD Insight
Backup and
RecoverySQL
Database Caching StorSimple
Internet of Things
Con Microsoft Azure IoT services, si possono monitorareassets, incrementare l’efficienza, spingere le performance operative per abilitare le innovazioni, ed utilizzandomeccanismi di data analytics avanzati si può trasformare la propria azienda con nuovi business models e revenue streams.
Event Hubs
Notification Hubs
Stream Analytics
Machine Learning
HDInsight
Power BI for Office 365
Architettura canonica per processare eventi
•
• Addressability (non-IP devices, firewalls/NATs, online/offline, roaming)
• Heterogeneity (OS/firmware, power/network constraints, protocols)
• Security (identity, authorization, privacy, data integrity)
• Efficient Scale (millions of devices per tenant, at a reasonable cost)
•
• Telemetry (collection, filtering, routing, throughput, per-message QoS)
• Notifications (targeting devices/device groups within large populations)
• Command/Query and Inquiries (correlation, sessions/batching)
Cloud Device Gateway Challenges
• Devices connect via open standard protocols• AMQP 1.0 and HTTP: natively in Service Bus
• MQTT, CoAP and others: implement via custom gateway/adapter model
• Sockets secured via TLS (or a lightweight variant)
• Each device gets a dedicated Inbox/Outbox “queue” on the Gateway• Outbox: Telemetry, alerts and service invocations
• Inbox: commands and queries
• Request/reply: correlated messageon top of inbox/outbox messaging channels
• Security: device can only access its own specific inbox/outbox endpoints (URI’s)
Service Bus as a Cloud Gateway
Backend
Components
Cloud Gateway
Outbox(Telemetry)
Inbox(Command & Control)
Pro
toco
l H
ead
Co
mm
an
d A
PI
.NET per l’IoTThanks to Lorenzo Barbieri for slides
http://www.slideshare.net/Codemotion/201503-keynote-codemotionms
https://www.visualstudio.com/en-us/products/visual-studio-community-vs.aspx
Demo: Temperature MonitoringA solution to monitor an appliance remotely with Arduino, Azure, Windows
and .NET
http://github.com/marcoparenzan/temperaturemonitoring
29
Azure e .NET per l’Azienda Maker
Marco ParenzanMicrosoft MVP 2014 for Azure
1nn0va / [email protected]