Skip to content
Tagged articles

Spring Events

4 articles · Page 1 of 1
Java Architect Essentials
Java Architect Essentials
Nov 1, 2026 · Backend Development

Spring's Hidden Async Alternative to MQ: Built-in Events for In-Process Decoupling

This article explains how Spring's built-in event mechanism provides a lightweight alternative to message queues for in-process asynchronous decoupling, covering synchronous vs asynchronous handling, transactional event listeners, thread pool configuration, lifecycle events, and when persistent solutions are needed.

Application Lifecycle EventsAsynchronous ProgrammingIn-Process Decoupling
0 likes · 7 min read
Spring's Hidden Async Alternative to MQ: Built-in Events for In-Process Decoupling
Dabaoshi
Dabaoshi
Aug 9, 2026 · Fundamentals

Observer Pattern: Decoupling Order Payment Success Actions via Publish‑Subscribe

The article explains the Observer pattern by first showing the problems of hard‑coding post‑payment actions, then detailing how defining a subject, observer interface, and concrete observers decouples the system, discusses push vs pull notification models, and illustrates real‑world uses in Spring events, GUI listeners, and message queues.

DecouplingJavaObserver Pattern
0 likes · 14 min read
Observer Pattern: Decoupling Order Payment Success Actions via Publish‑Subscribe
JD Cloud Developers
JD Cloud Developers
Nov 29, 2022 · Backend Development

Mastering Spring’s Observer Pattern: From Basics to Asynchronous Event Handling

This article explains the Observer pattern, its core roles and typical use cases, then dives into Spring's event mechanism—including ApplicationEvent, ApplicationListener, and ApplicationEventPublisher—showing how to configure synchronous and asynchronous event processing with code examples.

ApplicationContextAsynchronous ProcessingEvent Publishing
0 likes · 13 min read
Mastering Spring’s Observer Pattern: From Basics to Asynchronous Event Handling