empicano / aiomqtt

The idiomatic asyncio MQTT client
https://aiomqtt.bo3hm.com
BSD 3-Clause "New" or "Revised" License
431 stars 77 forks source link

Is it necessary to support mqtt connection pool? #303

Closed Renz2018 closed 5 months ago

Renz2018 commented 5 months ago

If necessary, should it be supported by aiomqtt or paho?

empicano commented 5 months ago

I usually use a single MQTT client for everything. If I want to e.g. publish in different places in the code, I reuse this single connection again and again. One might achieve better performance by using multiple connections, I honestly have never tried it, so I don't have any advice on this.

Hope that helps 🙂