empicano / aiomqtt

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

Application-controlled acknowledgements #345

Open ale-rinaldi opened 1 day ago

ale-rinaldi commented 1 day ago

Hello,

I see that https://github.com/eclipse-paho/paho.mqtt.python/pull/753 added application-controlled acknowledgements to paho-mqtt.

From the documentation:

manual_ack (bool) – normally, when a message is received, the library automatically acknowledges after on_message callback returns. manual_ack=True allows the application to acknowledge receipt after it has completed processing of a message using a the ack() method. This addresses vulnerability to message loss if applications fails while processing a message, or while it pending locally.

Do you think it can be fit into aiomqtt as well?