Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [mosquitto-dev] Storing Broker Messages in MongoDB Database

Bart's solution is simplest if all you need is a one-way pipe :)

The other is fun though, and leads in the direction of externalizing many functions as parallel microservices, e.g. CONNECT/auth, SUBSCRIBE/retain, etc. 

For the async services you need to inject responses from a reverse pipe into the loop, which is a little more tricky.

ml

On Fri, Apr 24, 2015 at 10:01 AM, Bart van Strien <bart.bes@xxxxxxxxx> wrote:
Hello Dishant,

Can't you just have a utility that subscribes to # (everything)?

Regards,
Bart van Strien


On 24/04/15 11:05, dishant ghai wrote:
Hi All,

I need to store all published messages in a MongoDB Database. Is there any way to do this cleanly or with a C code extension to the existing Mosquitto Library.

Or If i Can get a way to implement a C function which gets called every time a message arrives at the broker , I think that would be very useful.

I'm using Mosquito 1.4.2

Regards
Dishant Ghai


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


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


Back to the top