HTTP/2 fot IOT20.08.2015 HackIOT @ fablab1.ru
In 16 words:
HTTP/2 is better than HTTP/1.1 for most IoT tasks, sometimes it can replace MQTT and COAP
http://caniuse.com/#feat=http2
bitly.com/http2-opt
bitly.com/http2-opt
bitly.com/http2-opt
bitly.com/http2-opt
bitly.com/http2-opt
bitly.com/http2-opt
Broker
Client А Client B
Client C
subscribe “temperature”
subscribe “temperature”
MQTT
MQTT
Broker
Client А Client B
Client C
“temperature” = “22”
“temperature” = “22”
publish “temperature” “22”
HTTP/2 Pub/Sub
timkellogg.me/blog/2015/02/20/can-http2-replace-mqtt/
PUBLISH foo/bar POST http://example.com/topic/foo/bar
SUBSCRIBE foo/bar GET http://example.com/topic/foo/bar
UNSUBSCRIBE foo/bar DELETE http://example.com/topic/foo/bar
HTTP/2 Pub/Sub
• MQTT CONNECT
• MQTT DISCONNECT
Service Discovery
CoAP (RFC 7252)
http://www.slideshare.net/zdshelby/coap-tutorial
CoAP (RFC 7252)
http://www.slideshare.net/zdshelby/coap-tutorial
Scalability
• HTTP/1.1 - easy
• COAP - easy
• HTTP/2 - medium
• MQTT - hard
Other Thoughts
• HPACK
• 1 Connection
• Pretty low memory consumption
More posts
• http://www.limmat.co/2015/02/18/http-2-the-new-iot-protocol/
• http://robbysimpson.com/2015/01/26/http2-and-the-internet-of-things/#comment-14
• https://www.mnot.net/blog/2015/02/18/http2
Sergei Silnov
back-end developer
hackiot.ru
[email protected] fb.com/silnov