Observer: from a listener list to Spring events and an outbox
Refactor a network manager that calls its subscriber directly into Observer, reproduce four ways a publisher breaks (self-unsubscribing listeners, exceptions, leaks, threads), write a sturdier publisher, then move to Spring: @EventListener, @TransactionalEventListener, and when you need a message broker with an outbox.