Go real-time with the InternetOfThings
-
Upload
uffe-bjoerklund -
Category
Technology
-
view
234 -
download
2
Transcript of Go real-time with the InternetOfThings
![Page 1: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/1.jpg)
Go real-time with "Internet of Things"
RealTime communication and IoT walks hand in hand
Uffe Bjorklund - @ulfbjo
![Page 2: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/2.jpg)
About MeIn RealTimeWeb since 2009.
Web (mostly backend, and you will see why)Kinect, Arduino, Netduino, RaspberryPI, AR Drone etcP2P (like WebRTC)M2M...Full-Duplex communication in general...
![Page 3: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/3.jpg)
Todays agendaIntro to "realtime" developmentShow that state is importantCommunicate cross-protocolAdd "things" to the mix
![Page 4: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/4.jpg)
HTTP/REST/AJAXDesigned for delivering resources (HTML, JS, CSS)Half-Duplex (stateless)~870 bytes average header
![Page 5: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/5.jpg)
Why is "RealTime" importantWell...
Event driven architectureShould decrease complexityWill increase speed
But...A client should never (or rarely) ask for dataYou should never send data to a client that does not need it
So...SimpleFastSaves resources
![Page 6: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/6.jpg)
RealTime FrameworksNodeJS/Socket.ioXSockets.NETSignalRPusher *FleckRealtime.co *PubNub *TornadoKaazing **Firebase *Autobahn
* SaaS** SaaS and SelfHosted
![Page 7: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/7.jpg)
Communication Patterns
![Page 8: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/8.jpg)
Framework CapabilitiesThe most imporant parts (IMO) of a "real-time" framework?
Modular architectureSo that functionality can be overriden/added in a smooth way
StateSo that we get control over where messages are sent
Cross-Protocol CommunicationSo that we can connect things/systems regardles of protocol
But also...ScalingSecurityEtc...
![Page 9: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/9.jpg)
How it works... kind of...
![Page 10: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/10.jpg)
<CODE/>Code availbale at: https://github.com/codeplanner/NDC-
InternetOfThingsDay-2014-11-06
![Page 11: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/11.jpg)
Why should I care about IoT?
Today there is ~300.000 developers in IoT. By 2020 that numberis expected ot be ~4.500.000.
An annual growth by 57 %
![Page 13: Go real-time with the InternetOfThings](https://reader034.fdocuments.in/reader034/viewer/2022052623/559f630e1a28ab4f298b457e/html5/thumbnails/13.jpg)
Sources/CreditsIoT statistics 1: Intel
IoT statistics 2: ReadWrite.comImage of "Communication Patterns" by Phil Leggetter
Graphs by WijmoGame by html5quintus
Code samples by XSockets.NETMissileSharp by Christian Specht
SharpDX by Alexandre MutelRevealJS by Hakim El Hattab