← Back to team overview

mosquitto-users team mailing list archive

Re: Python mosquitto client vs paho client

 

Hi Roy,

Good to hear from you.

The Paho client came directly from mosquitto.py, so there are really
minimal differences. I have been doing development on the mosquitto
side and then porting to Paho, but now that mosquitto is in the
process of moving to eclipse, Paho will ultimately become the
supported option. I'm going to do everything I can to try and make
sure that it's a straightforward change for people.

I'd be very interested to hear if you don't see the broken pipe
problem in the Paho client because it would mean that some buggy
changes have been introduced to mosquitto.py. I'm assuming that you
were using an up to date version of course.

Cheers,

Roger

On Fri, Dec 6, 2013 at 10:32 PM, Roy Barkas <roy@xxxxxxxx> wrote:
> I've been using the Python client provided by the Mosquitto project in
> production.
> My environment is Linux and I'm processing ~ 12,000,000 messages per day.
>
> I've been chasing some intermittent broken pipe (32)  exceptions using the
> Mosquitto client without much luck, so I recently decided to swap in the
> Paho Python client and see if the same errors occur.  So far the broken pipe
> error has not recurred but it's early days - sometimes the error only occurs
> once in a few hours, sometimes more frequently.
>
> The Paho code seems to work well.
>
> Before I get too invested in changing to the Paho client...
>
> Are there any advantages / disadvantages for either of the clients?
>
> Are there any significant implementation differences?
>
> Are there any notable performance differences?  So far I haven't seen any
> significant differences in CPU utilisation.
>
> Thanks;
>
> Roy Barkas
> Australia
>
> --
> Mailing list: https://launchpad.net/~mosquitto-users
> Post to     : mosquitto-users@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~mosquitto-users
> More help   : https://help.launchpad.net/ListHelp
>


References