Flow chart/state machine for the message flow in the broker.