A walkthrough tutorial on combining Spring Modulith with Apache Kafka to externalize application events. Starting from scratch using Spring Initializr, it covers setting up a modular monolith with internal event publishing via ApplicationEventPublisher, listening to events internally with @ApplicationModuleListener, and externalizing events to a Kafka topic using the @Externalized annotation. The demo includes Docker Compose setup for Postgres and Kafka, configuring Kafka consumer properties (including value deserializer), and troubleshooting common issues like topic name mismatches and byte array deserialization.
•28m watch time
Sort: