Transaction Processing in Spring
The Spring Framework offers many options for handling database transactions. However, how do you know which options to choose from? Should you use the Spring Framework DataSourceTransactionManager, JtaTransactionManager, or the JpaTransactionManager? When should you use global (XA) transactions? Should you use declarative transactions with annotations or use programmatic transactions? How can you improve the performance and scalability of your application through the use of transactions? As you can guess, there is a right way and a wrong way of using transactions with Spring. In this session I will discuss transaction processing within the Spring Framework and through live coding show you how to effectively use transactions within Spring.
Agenda
- Spring Transaction Managers
- Declarative Transactions
- JTA Transactions
- Read-only Transactions
- Programmatic Transactions
- Transaction Optimization Techniques
About Mark Richards
Mark Richards is an experienced, hands-on software architect involved in the architecture, design, and implementation of microservices architectures, service-oriented architectures, and distributed systems. He has been in the software industry since 1983 and has significant experience and expertise in application, integration, and enterprise architecture. Mark is the founder of DeveloperToArchitect.com, a website devoted to helping developers in the journey to software architect. He is the author of numerous technical books and videos, including the recently published Fundamentals of Software Architecture, Microservices AntiPatterns and Pitfalls, Microservices vs. SOA, the Software Architecture Fundamentals video series, The Enterprise Messaging video series, Java Message Service, 2nd Edition, and contributing author to 97 Things Every Software Architect Should Know. Mark has a master’s degree in computer science and is a regular conference speaker at the No Fluff Just Stuff (NFJS) Symposium Series. He has spoken at hundreds of conferences and user groups around the world on a variety of enterprise-related technical topics.
More About Mark »