sa-mw-dach / manuela

MANUfacturing Edge Lightweight Accelerator
Apache License 2.0
40 stars 24 forks source link

Check MQTT connect options in Quarkus (MP Reactive Messaging etc) #35 #96

Closed wrichter closed 4 years ago

wrichter commented 4 years ago

The SmallRye Client looks totally elegant: https://github.com/quarkusio/quarkus-quickstarts/blob/master/mqtt-quickstart/src/main/java/org/acme/quarkus/sample/PriceGenerator.java however it's based on the Vert.X MQtt client which currently does not support Web Sockets https://vertx.io/docs/apidocs/io/vertx/mqtt/MqttClientOptions.html

wrichter commented 4 years ago

It does seem to support TLS-SNI though: https://github.com/smallrye/smallrye-reactive-messaging/blob/master/smallrye-reactive-messaging-mqtt/src/main/java/io/smallrye/reactive/messaging/mqtt/MqttSource.java#L63 and https://vertx.io/docs/apidocs/io/vertx/mqtt/MqttClient.html#connect-int-java.lang.String-java.lang.String-io.vertx.core.Handler-

wrichter commented 4 years ago

However TLS-SNI brings a world of pain with regards to certificate management (and/or creating your custom SocketFactory so that a TLS handshake happens with invalid certs).

wrichter commented 4 years ago

With skupper.io we'd have additional options not to use web sockets or TLS-SNI, but this needs to mature more. @ortwinschneider do you see the need to evaluate additional aspects or should we move this to done?