Tuesday, January 6, 2015

Excellent overview of MQTT

This is a great intro article on MQTT.
http://www-01.ibm.com/support/docview.wss?uid=swg27024986&aid=1

I'm using MQTT in my demo to collect information from a lot of web clients and process it in Decision Server Insights.  Basically, clients will publish to an MQTT server, where subscribers will pick up that information.  My map clients are also subscribers, so they get messages from all the other map clients.

They pass in this simple marker element, which is JSON text.  It doesn't have to be JSON, it's just easier to work with in a JS environment like a web page.

Next, I need to have a java MDB that subscribes to the same topic, and have it transform the message from JSON to XML.  DSI requires XML messages at the moment.

Once I have that in place I can subscribe to my flag drops and send them to DSI and do interesting analysis on them.  The missing piece in this solution is the part where I send messages back to the clients.  But ... time...



it looks like this...



No comments:

Post a Comment