Learn various design patterns and best practices in Spring 5 and use them to solve common design problems
- Explore best practices for designing an application
- Manage your code easily with Spring’s Dependency Injection pattern
- Understand the benefits that the right design patterns can offer your toolkit
Design patterns help speed up the development process by offering well tested and proven solutions to common problems. These patterns coupled with the Spring framework offer tremendous improvements in the development process.
The book begins with an overview of Spring Framework 5.0 and design patterns. You will understand the Dependency Injection pattern, which is the main principle behind the decoupling process that Spring performs, thus making it easier to manage your code. You will learn how GoF patterns can be used in Application Design. You will then learn to use Proxy patterns in Aspect Oriented Programming and remoting. Moving on, you will understand the JDBC template patterns and their use in abstracting database access. Then, you will be introduced to MVC patterns to build Reactive web applications. Finally, you will move on to more advanced topics such as Reactive streams and Concurrency.
At the end of this book, you will be well equipped to develop efficient enterprise applications using Spring 5 with common design patterns
What you will learn
- Develop applications using dependency injection patterns
- Learn best practices to design enterprise applications
- Explore Aspect-Oriented Programming relating to transactions, security, and caching.
- Build web applications using traditional Spring MVC patterns
- Learn to configure Spring using XML, annotations, and Java.
- Implement caching to improve application performance.
- Understand concurrency and handle multiple connections inside a web server.
- Utilizing Reactive Programming Pattern to build Reactive web applications.
Table of Contents
- Overview of Spring Framework 5.0 and Used Design Patterns
- Best Practices with Consideration of Patterns for Spring Application
- Consideration of Structural and Behavioural Patterns into Spring
- Wiring beans using Dependency Injection Pattern
- Understanding Bean Life cycle and Used Patterns
- Spring Aspect Oriented Programming with Proxy Pattern
- Accessing Database with spring and JDBC template patterns
- Accessing Database with spring and ORM template patterns
- Improving performance of Application using Caching patterns
- Implementing MVC pattern in a Web Application with Spring
- Using Reactive Pattern in Programming
- Implementing Concurrency Patterns