Fading Coder

An Old Coder’s Final Dance

Spring Transaction Synchronization and Event-Driven Post-Commit Actions

1. Thread-bound transaction context Spring coordinates transactional work by binding state to the current thread. The central utility is TransactionSynchronizationManager, which maintains per-thread structures such as: Resources: key/value map for things like DataSource → ConnectionHolder Registered...

Event-Driven Programming in Spring Boot with @EventListener

Event-driven design lets components react to facts instead of polling or tightly coupling modules. After some action completes, you publish an event; interested listeners consume it and run their own logic. In classic patterns, this aligns with publish–subscribe and the observer pattern. Core pieces...