Spring Modulith provides a built-in durable event publication registry that persists events to a database table, allowing failed or unprocessed events to survive server crashes and be replayed on restart. A step-by-step walkthrough demonstrates building a modular monolith with two modules (events and notifications) that communicate via Spring's ApplicationEventPublisher. The tutorial shows how to configure the event publication registry with Spring Data JDBC, simulate a listener failure, and verify that setting `republish-outstanding-events-on-restart=true` causes the failed event to be retried successfully on the next startup — all without needing an external message broker.
•31m watch time
Sort: