There's a neat little feature in the MQTT 5.0 spec called Message Expiry (or Message Expiry Interval).
It has been explained many times on the internet already. It allows publishers to add an expiry interval to any message they send. Sometimes, we ...