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

I’m not sure this would be scalable either but you might want to look at this:

 

http://nodered.org/

 

There are MQTT and MongoDB nodes available that you could make use of.

 

Dwayne

 

 

 

From: paho-dev-bounces@xxxxxxxxxxx [mailto:paho-dev-bounces@xxxxxxxxxxx] On Behalf Of dishant ghai
Sent: Monday, April 20, 2015 12:12 PM
To: Dominik Obermaier
Cc: General development discussions for paho project
Subject: Re: [paho-dev] Storing All MQTT publishes in a MongoDB Database

 



*** Exercise caution. This is an EXTERNAL email. DO NOT open attachments or click links from unknown senders or unexpected email. ***

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

 


Back to the top