Understanding MQTT v5 retain options

This is probably a nicer explanation: MQTT 5.0 Features | Retain Message | by EMQ Technologies | Medium