empicano / aiomqtt

The idiomatic asyncio MQTT client, wrapped around paho-mqtt
https://aiomqtt.felixboehm.dev/
BSD 3-Clause "New" or "Revised" License
408 stars 73 forks source link

Is it necessary to support mqtt connection pool? #303

Closed Renz2018 closed 3 months ago

Renz2018 commented 3 months ago

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

empicano commented 3 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 🙂