9
VS

Comparing CoAP vs MQTT

  • Upload
    kellogh

  • View
    8.537

  • Download
    1

Embed Size (px)

Citation preview

Page 1: Comparing CoAP vs MQTT

VS

Page 2: Comparing CoAP vs MQTT

REST Architecture

Resource

GET

PUT

POST

DELETE

Client

Page 3: Comparing CoAP vs MQTT

REST Architecture

• A resource has a scalar value• Last known value is important

Page 4: Comparing CoAP vs MQTT

Publish/Subscribe Architecture

• Decouple consumption from production• Event stream• Big data analytics

Page 5: Comparing CoAP vs MQTT

Pub/Sub On CoAP

• GET+Observe• Loses data in high throughput scenarios• Not decoupled

Page 6: Comparing CoAP vs MQTT

REST On MQTT

• Client– Publisher, subscribes to response topic

• Server– Subscriber

Page 7: Comparing CoAP vs MQTT

REST On MQTT

• Request– $CTL/<domain>/<app>/<clientId>/POST/resource

• Response– $CTL/<domain>/<app>/<clientId>/resource/

<requestId>

Page 8: Comparing CoAP vs MQTT

REST On MQTT

• Not simple– Future non-local subscribe could ease the pain

• Not composable or extensible• Requires extra protocol above MQTT• Response is not guaranteed• Mutable state

Page 9: Comparing CoAP vs MQTT

Thanks!