Tagged articles
ApplicationEvent
10 articles · Page 1 of 1
This article explores Spring Boot's ApplicationEvent mechanism for decoupling business side effects, detailing synchronous default behavior, transaction-boundary listeners, async patterns with dedicated thread pools, exception handling strategies, event chaining, and practical refactoring of an order service, while contrasting in-process events with message queues.
ApplicationEventDecoupling PatternsMessage Queue Integration
0 likes · 24 min read

This article provides a comprehensive interview self‑test on Spring's event‑driven mechanism, covering the three core components, synchronous vs asynchronous handling, the role and default implementation of ApplicationEventMulticaster, adapter flow, async configuration options, @TransactionalEventListener phases, exception propagation, @Order ordering, SpEL condition filtering, a comparison with MQ, POJO events, and the listenerCache optimization.
ApplicationEventBackendSpEL
0 likes · 21 min read

The article explains how Spring’s built‑in ApplicationEvent and @EventListener mechanism provides a lightweight, zero‑dependency alternative to external message queues for decoupling logic within the same JVM, covering core components, implementation styles, async execution, transactional listeners, pitfalls, performance comparison, and production best practices.
ApplicationEventBest PracticesSpring
0 likes · 23 min read

This article explains how Spring ApplicationEvent listeners can replace heavyweight message queues for high‑traffic scenarios, showing event class design, publishing and handling code, real‑world performance data, common pitfalls, and best‑practice guidelines for reliable asynchronous processing.
ApplicationEventBest Practiceseventlistener
0 likes · 9 min read

This article walks through building a Spring @EventListener demo, explains how to decouple registration logic, shows step‑by‑step debugging of the event‑listener infrastructure, and explores the internal mechanisms that register and invoke listeners during application startup and runtime.
ApplicationEventBackendDebugging
0 likes · 14 min read

This article explains how Spring 5.3.23 uses ApplicationEvent and ApplicationListener for event handling, details the standard lifecycle events, shows how to create and publish custom events, and demonstrates annotation‑based, asynchronous, and ordered listeners for robust backend development.
ApplicationEventBackendJava
0 likes · 9 min read

This article demonstrates how to leverage Spring's ApplicationEvent mechanism to decouple business logic, showing both synchronous and asynchronous event publishing, custom event definitions, listener implementations, unit testing, and enabling async processing with @EnableAsync and @Async annotations.
ApplicationEventJavaSpring
0 likes · 9 min read

This article explains how to use Spring ApplicationEvent to decouple business logic, showing step‑by‑step code for defining custom events, creating listeners with both ApplicationListener and @EventListener, publishing events synchronously and asynchronously, enabling async processing, and verifying behavior with unit tests.
ApplicationEventBackendJava
0 likes · 10 min read

This article demonstrates how to leverage Spring Application Events to decouple business logic, showing step‑by‑step examples of defining custom events, listeners, publishing events synchronously, and enabling asynchronous handling with @EnableAsync and @Async annotations, complete with code snippets and test results.
ApplicationEventSpringasynchronous
0 likes · 9 min read

This article explains four distinct approaches to register Spring Boot event listeners, shows how to create custom events and listeners, provides complete code examples for each method, and demonstrates their execution order through a test run.
ApplicationEventJavaSpring Boot
0 likes · 5 min read
