Process Flow - Retained messages
Client publishes message with retain flag
Broker stores message as retained
New client subscribes to topic
Broker sends retained message immediately
Client receives last retained message
Client processes message
When a client sends a message with the retain flag, the broker saves it. New subscribers get this saved message right away.