Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [paho-dev] Storing All MQTT publishes in a MongoDB Database

Hi Dishant,

in that case, this question would be better addressed to the Mosquitto mailing list -- I'm sure requests for this capability have come up before.  Also, as Dominik has pointed out, HiveMQ has this capability already.

Ian

On 04/20/2015 05:12 PM, dishant ghai wrote:
Hi,

I'd be grateful if I get a Mosquitto based solution for now. I'm using Mosquito 1.4.2

Thanks

On Mon, Apr 20, 2015 at 9:32 PM, Dominik Obermaier <dominik.obermaier@xxxxxxxxx> wrote:
Hi Dishant,

if you want to store the data directly on the broker instead of a wildcard subscriber, you can take a look at this blog post which discusses a more centralized approach in detail:


As an addendum to the blog post, there is an example plugin available which stores data into a sql database. The principles remain the same if you are using MongoDB: https://github.com/hivemq/hivemq-database-example-plugin
Hope this helps,
Dominik

On 20 Apr 2015 at 17:57:18, dishant ghai (dishant.ghai@xxxxxxxxx) wrote:

Hi All,

I need to store all published messages in a MongoDB Database. Is there any way to do this cleanly on message arrival at broker without getting into the C Code.

I got a tutorial which does it using node.js and doing a client subscribe to '#'  and storing
the messages to MongoDB on message arrival at broker.

 but I i'm not sure if it is a scalable method.

Kindly share your views.

Regards
Dishant Ghai



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev



_______________________________________________
paho-dev mailing list
paho-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/paho-dev

-- 
Ian Craggs                          
icraggs@xxxxxxxxxx                 IBM United Kingdom
Paho Project Lead; Committer on Mosquitto


Back to the top