Connecting Physical Devices to the Web Event Driven Architecture using WebSocket for the Internet of Things Peter Moskovits Head of Real-Time Solutions Oslo, September 11, 2014 Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. About Peter Peter Moskovits Head of Real-Time Solutions peter.moskovits@kaazing.com @pmoskovi
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Demos
The Request-Response Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Browser Half Duplex Full duplex Back-end server Web Web Tier Middleware Legacy Web
HTML5 WebSocket: TCP for the Web § Standard Protocol (IETF): RFC-6455 § Standard API (W3C): JavaScript § Single socket, full-duplex § Low overhead: <1% of HTTP § Low latency: low milliseconds § SSL support Full duplex Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
The Event-Driven Web WebSocket Full duplex Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Browser Half Duplex Full duplex Back-end server Web Web Tier Middleware Legacy Web Event-Driven Web WebSocket Server Back-end server Web
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. How Can I Use?
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. How Can I Use?
The WebSocket Handshake Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Available in Chrome Developer Tools Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Your application IMAP/SMTP/POP3 XMPP Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Protocol Layering TCP
Your application HTTP IMAP/SMTP/POP3 XMPP Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Protocol Layering TCP
Your application IMAP/SMTP/POP3 XMPP Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Protocol Layering TCP HTTP WebSocket
WebSocket Clients and Server Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Enterprise Messaging Extended to the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Win a Copy
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Win a Copy 1. Introduction to HTML5 WebSocket 2. The WebSocket API 3. The WebSocket Protocol 4. Building Instant Messaging and Chat over WebSocket with XMPP 5. Using Messaging over WebSocket with STOMP 6. VNC with the Remote Frame Buffer Protocol 7. WebSocket Security 8. Deployment Considerations http://goo.gl/xcvj7p
Connected Devices Bridging the Gap Between Hardware and Software Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Image source: http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Raspberry Pi Image source: http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Demo Setup
Controlling the Light Remotely Using Pub-Sub Over the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Light Switch: Range Extended to the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Demo
Remote Controlling Car Over the Web - The Architecture Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Telemetry Data Distributed to the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Telemetry Data Distributed to the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Telemetry Data Distributed to the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Java App
Telemetry Data Distributed to the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Java App
About the Quadcopter: DJI Phantom 2 Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. The Sensor Stack
Arduino: GPS, thermometer, humidity, compass, accelerometer + Go Pro Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Satellite Terminal: InmarSat – Geostationary Satellites Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Satellite Terminal: InmarSat – Geostationary Satellites Warning: Microwave radiation Minimum safe distance: 0.6 metres Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. The Team
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. DEMO
End-to-end latency: under 1 second Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. DEMO
It’s More Than “Just” the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Connected Devices
Connected Devices Communicating with WebSocket WS WS WS WS WS WS WS WS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
Connected Devices Communicating with Proprietary Protocols over WS AMQP/WS MQTT/WS JMS/WS XMPP/WS STOMP/WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
What Does KAAZING do? Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Clients disconnect Network intermediaries Locked down firewalls Millions of users High availability Disaster recovery Developer productivity Integration with existing security infrastructure
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Win a Copy 1. Introduction to HTML5 WebSocket 2. The WebSocket API 3. The WebSocket Protocol 4. Building Instant Messaging and Chat over WebSocket with XMPP 5. Using Messaging over WebSocket with STOMP 6. VNC with the Remote Frame Buffer Protocol 7. WebSocket Security 8. Deployment Considerations http://goo.gl/xcvj7p
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Learn More § http://kaazing.com § http://tutorial.kaazing.com § http://kaazing.com/telemetry § The Definitive Guide to HTML5 WebSocket
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. About Peter Peter Moskovits Head of Real-Time Solutions peter.moskovits@kaazing.com @pmoskovi
Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.

Connecting Physical Devices to the Web - Event Driven Architecture using WebSocket for the Internet of Things

  • 1.
    Connecting Physical Devicesto the Web Event Driven Architecture using WebSocket for the Internet of Things Peter Moskovits Head of Real-Time Solutions Oslo, September 11, 2014 Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 2.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. About Peter Peter Moskovits Head of Real-Time Solutions peter.moskovits@kaazing.com @pmoskovi
  • 3.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Demos
  • 4.
    The Request-Response Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Browser Half Duplex Full duplex Back-end server Web Web Tier Middleware Legacy Web
  • 5.
    HTML5 WebSocket: TCPfor the Web § Standard Protocol (IETF): RFC-6455 § Standard API (W3C): JavaScript § Single socket, full-duplex § Low overhead: <1% of HTTP § Low latency: low milliseconds § SSL support Full duplex Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 6.
    The Event-Driven Web WebSocket Full duplex Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Browser Half Duplex Full duplex Back-end server Web Web Tier Middleware Legacy Web Event-Driven Web WebSocket Server Back-end server Web
  • 7.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. How Can I Use?
  • 8.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. How Can I Use?
  • 9.
    The WebSocket Handshake Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 10.
    Available in ChromeDeveloper Tools Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 11.
    Your application IMAP/SMTP/POP3XMPP Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Protocol Layering TCP
  • 12.
    Your application HTTPIMAP/SMTP/POP3 XMPP Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Protocol Layering TCP
  • 13.
    Your application IMAP/SMTP/POP3XMPP Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Protocol Layering TCP HTTP WebSocket
  • 14.
    WebSocket Clients andServer Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 15.
    Enterprise Messaging Extendedto the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 16.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Win a Copy
  • 17.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Win a Copy 1. Introduction to HTML5 WebSocket 2. The WebSocket API 3. The WebSocket Protocol 4. Building Instant Messaging and Chat over WebSocket with XMPP 5. Using Messaging over WebSocket with STOMP 6. VNC with the Remote Frame Buffer Protocol 7. WebSocket Security 8. Deployment Considerations http://goo.gl/xcvj7p
  • 18.
    Connected Devices Bridgingthe Gap Between Hardware and Software Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 19.
    Image source: http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Raspberry Pi Image source: http://www.oracle.com/technetwork/articles/java/raspberrypi-1704896.html
  • 20.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Demo Setup
  • 21.
    Controlling the LightRemotely Using Pub-Sub Over the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 22.
    Light Switch: RangeExtended to the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 23.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Demo
  • 24.
    Remote Controlling CarOver the Web - The Architecture Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 25.
    Telemetry Data Distributedto the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 26.
    Telemetry Data Distributedto the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 27.
    Telemetry Data Distributedto the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Java App
  • 28.
    Telemetry Data Distributedto the Web Over Satellite Network KWG Message Broker JMS WS JMS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Java App
  • 29.
    About the Quadcopter:DJI Phantom 2 Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 30.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. The Sensor Stack
  • 31.
    Arduino: GPS, thermometer,humidity, compass, accelerometer + Go Pro Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 32.
    Satellite Terminal: InmarSat– Geostationary Satellites Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 33.
    Satellite Terminal: InmarSat– Geostationary Satellites Warning: Microwave radiation Minimum safe distance: 0.6 metres Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 34.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. The Team
  • 35.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. DEMO
  • 36.
    End-to-end latency: under1 second Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 37.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. DEMO
  • 38.
    It’s More Than“Just” the Web Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 39.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Connected Devices
  • 40.
    Connected Devices Communicatingwith WebSocket WS WS WS WS WS WS WS WS WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 41.
    Connected Devices Communicatingwith Proprietary Protocols over WS AMQP/WS MQTT/WS JMS/WS XMPP/WS STOMP/WS Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.
  • 42.
    What Does KAAZINGdo? Copyright © 2014 Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Clients disconnect Network intermediaries Locked down firewalls Millions of users High availability Disaster recovery Developer productivity Integration with existing security infrastructure
  • 43.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Win a Copy 1. Introduction to HTML5 WebSocket 2. The WebSocket API 3. The WebSocket Protocol 4. Building Instant Messaging and Chat over WebSocket with XMPP 5. Using Messaging over WebSocket with STOMP 6. VNC with the Remote Frame Buffer Protocol 7. WebSocket Security 8. Deployment Considerations http://goo.gl/xcvj7p
  • 44.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. Learn More § http://kaazing.com § http://tutorial.kaazing.com § http://kaazing.com/telemetry § The Definitive Guide to HTML5 WebSocket
  • 45.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved. About Peter Peter Moskovits Head of Real-Time Solutions peter.moskovits@kaazing.com @pmoskovi
  • 46.
    Copyright © 2014Kaazing Corporation. http://goo.gl/xcvj7p All Rights Reserved.