Book description
Get the deep insights you need to master efficient architectural design considerations and solve common design problems in your enterprise applications.
Key Features
- The benefits and applicability of using different design patterns in JAVA EE
- Learn best practices to solve common design and architectural challenges
- Choose the right patterns to improve the efficiency of your programs
Book Description
Patterns are essential design tools for Java developers. Java EE Design Patterns and Best Practices helps developers attain better code quality and progress to higher levels of architectural creativity by examining the purpose of each available pattern and demonstrating its implementation with various code examples. This book will take you through a number of patterns and their Java EE-specific implementations.
In the beginning, you will learn the foundation for, and importance of, design patterns in Java EE, and then will move on to implement various patterns on the presentation tier, business tier, and integration tier. Further, you will explore the patterns involved in Aspect-Oriented Programming (AOP) and take a closer look at reactive patterns. Moving on, you will be introduced to modern architectural patterns involved in composing microservices and cloud-native applications. You will get acquainted with security patterns and operational patterns involved in scaling and monitoring, along with some patterns involved in deployment.
By the end of the book, you will be able to efficiently address common problems faced when developing applications and will be comfortable working on scalable and maintainable projects of any size.
What you will learn
- Implement presentation layers, such as the front controller pattern
- Understand the business tier and implement the business delegate pattern
- Master the implementation of AOP
- Get involved with asynchronous EJB methods and REST services
- Involve key patterns in the adoption of microservices architecture
- Manage performance and scalability for enterprise-level applications
Who this book is for
Java developers who are comfortable with programming in Java and now want to learn how to implement design patterns to create robust, reusable and easily maintainable apps.
Table of contents
- Title Page
- Copyright and Credits
- Dedication
- Packt Upsell
- Contributors
- Preface
- Introduction to Design Patterns
- Presentation Patterns
- Business Patterns
-
Integration Patterns
- Explaining the concept of the integration tier
- Explaining the concept of the data-access object pattern
- Implementing the data-access object pattern
- Explaining the concept of the domain-store pattern
- Implementing the domain-store pattern
- Explaining the concept of the service-activator pattern
- Implementing the service-activator pattern
- Summary
- Aspect-Oriented Programming and Design Patterns
-
Reactive Patterns
- Explaining the concept of an event in CDI
- Implementing an event in CDI
- Explaining the concept of an asynchronous EJB method
- Implementing an asynchronous EJB method
- Implementing EJBs
- Explaining the concept of an asynchronous REST service
- Implementing an asynchronous REST service
- Summary
-
Microservice Patterns
- Explaining microservices patterns
- Explaining how microservices architecture works
- Explaining when to use microservices architecture
- Advantages and drawbacks of a microservices-based application
- Microservices architecture patterns
- Implementing microservices
- Summary
-
Cloud-Native Application Patterns
- Explaining the concept of cloud-native applications
- Explaining the goals of the cloud-native application
- Explaining the cloud design patterns
- Summary
-
Security Patterns
- Explaining the concept of security patterns
- Explaining the concept of the single-sign-on pattern
- Implementing the single-sign-on pattern
- Explaining the authentication mechanism
- Implementing the authentication mechanism
- Explaining the authentication interceptor
- Implementing the authentication interceptor
- Summary
- Deployment Patterns
-
Operational Patterns
- Explaining the concept of operational patterns
- Explaining the concept of performance and scalability patterns
- Explaining the concept of management and monitoring patterns
- Summary
-
MicroProfile
-
Explaining the Eclipse MicroProfile project approach
- Eclipse MicroProfile Config 1.3
- Eclipse MicroProfile Fault Tolerance 1.1
- Eclipse MicroProfile Health Check 1.0
- Eclipse MicroProfile JWT authentication 1.1
- Eclipse MicroProfile Metrics 1.1
- Eclipse MicroProfile OpenAPI 1.0
- Eclipse MicroProfile OpenTracing 1.1
- Eclipse MicroProfile REST Client 1.1
- CDI 2.0
- Common annotations 1.3
- JAX-RS 2.1
- JSON-B 1.0
- JSON-P 1.1
- Why should we use the MicroProfile project?
- Community
- Future work
- Summary
-
Explaining the Eclipse MicroProfile project approach
- Other Books You May Enjoy
Product information
- Title: Java EE 8 Design Patterns and Best Practices
- Author(s):
- Release date: August 2018
- Publisher(s): Packt Publishing
- ISBN: 9781788830621
You might also like
book
Professional Java EE Design Patterns
Master Java EE design pattern implementation to improve your design skills and your application's architecture Professional …
book
Java EE 8 Development with Eclipse
Develop and deploy fully functional applications and microservices utilising Tomcat, Glassfish servers, Cloud and docker in …
book
Java EE 8 High Performance
Get more control of your applications performances in development and production and know how to meet …
book
Java 17 Recipes: A Problem-Solution Approach
Quickly find solutions to dozens of common programming problems encountered while building Java applications, with recipes …