Search code examples
javagoogle-app-enginemqttiotmoquette

GAE: MQTT broker


So I was wondering if it's possible to run a MQTT broker on the Google App Engine platform? Couldn't find any information about it (or maybe I might be using the wrong keywords).

I've got my GAE running on Java so I'd like to go into direction of running the MQTT broker on GAE using a backend.

EDIT: Did some further research and it seems Moquette is running on Java. Does someone have experience running Moquette on the GAE?

EDIT2: Ok, it seems the examples of Moquette are running using an OSGi container, which is unavailble in GAE. Looking for a script to start this server on GAE.


Solution

  • MQTT is protocol on top of TCP. In order to run MQTT server, one needs to be able to open a listening socket. Those are still not supported on normal AppEngine instances.

    Note: GAE backends have been replaced: now you just have automatic scaled (aka frontend) instances and manual scaled (aka backend) instances.

    Back to your problem: Managed VMs have most of the benefits of GAE (access to services), but run a full JVM, which allows listening sockets.