Book description
Find out how to craft effective, business-oriented Java EE 8 applications that target customer’s demands in the age of Cloud platforms and container technology.
About This Book
- Understand the principles of modern Java EE and how to realize effective architectures
- Gain knowledge of how to design enterprise software in the age of automation, Continuous Delivery and Cloud platforms
- Learn about the reasoning and motivations behind state-of-the-art enterprise Java technology, that focuses on business
Who This Book Is For
This book is for experienced Java EE developers who are aspiring to become the architects of enterprise-grade applications, or software architects who would like to leverage Java EE to create effective blueprints of applications.
What You Will Learn
- What enterprise software engineers should focus on
- Implement applications, packages, and components in a modern way
- Design and structure application architectures
- Discover how to realize technical and cross-cutting aspects
- Get to grips with containers and container orchestration technology
- Realize zero-dependency, 12-factor, and Cloud-native applications
- Implement automated, fast, reliable, and maintainable software tests
- Discover distributed system architectures and their requirements
In Detail
Java EE 8 brings with it a load of features, mainly targeting newer architectures such as microservices, modernized security APIs, and cloud deployments. This book will teach you to design and develop modern, business-oriented applications using Java EE 8. It shows how to structure systems and applications, and how design patterns and Domain Driven Design aspects are realized in the age of Java EE 8. You will learn about the concepts and principles behind Java EE applications, and how to effect communication, persistence, technical and cross-cutting concerns, and asynchronous behavior.
This book covers Continuous Delivery, DevOps, infrastructure-as-code, containers, container orchestration technologies, such as Docker and Kubernetes, and why and especially how Java EE fits into this world. It also covers the requirements behind containerized, zero-dependency applications and how modern Java EE application servers support these approaches. You will also learn about automated, fast, and reliable software tests, in different test levels, scopes, and test technologies. This book covers the prerequisites and challenges of distributed systems that lead to microservice, shared-nothing architectures. The challenges and solutions of consistency versus scalability will further lead us to event sourcing, event-driven architectures, and the CQRS principle. This book also includes the nuts and bolts of application performance as well as how to realize resilience, logging, monitoring and tracing in a modern enterprise world. Last but not least the demands of securing enterprise systems are covered.
By the end, you will understand the ins and outs of Java EE so that you can make critical design decisions that not only live up to, but also surpass your clients' expectations.
Style and approach
This book focuses on solving business problems and meeting customer demands in the enterprise world. It covers how to create enterprise applications with reasonable technology choices, free of cargo-cult and over-engineering. The aspects shown in this book not only demonstrate how to realize a certain solution, but also explain its motivations and reasoning.
Publisher resources
Table of contents
- Preface
- Introduction
-
Designing and Structuring Java Enterprise Applications
- The purpose of enterprise applications
- Outer enterprise project structure
- Enterprise project code structure
- Summary
-
Implementing Modern Java Enterprise Applications
- Use case boundaries
- Core domain components of modern Java EE
- Patterns in Java EE
- External and cross-cutting concerns in enterprise applications
- Flow of execution
- Concepts and design principles of modern Java EE
- Preserving maintainable code with high quality
- Summary
- Lightweight Java EE
-
Container and Cloud Environments with Java EE
- Motivations and goals
- Containers
- Java EE in the container
- Container orchestration frameworks
- Realizing container orchestration
- Java EE in orchestrated containers
-
12-factor applications and Java EE
- Have one codebase tracked in revision control, many deploys
- Explicitly declare and isolate dependencies
- Store config in the environment
- Treat backing services as attached resources
- Strictly separate build and run stages
- Execute the app as one or more stateless processes
- Export services via port binding
- Scale out via the process model
- Maximize robustness with fast startup and graceful shutdown
- Keep development, staging, and production as similar as possible
- Treat logs as event streams
- Run admin/management tasks as one-off processes
- Cloud, Cloud native, and their benefits
- Summary
-
Application Development Workflows
- Motivation and goals of productive development workflows
- Realizing development workflows
- Workflows with Java EE
- Continuous Delivery culture and team habits
- Summary
-
Testing
- The necessity of tests
- Requirements of well-crafted tests
- What to test
- Definition of test scopes
- Implementing tests
- Running tests locally
- Maintaining test data and scenarios
- Summary
-
Microservices and System Architecture
- Motivations behind distributed systems
- Challenges of distribution
- How to design systems landscapes
- How to design system interfaces
- Event sourcing, event-driven architectures, and CQRS
- Communication
- Microservice architectures
- Implementing microservices with Java EE
- Summary
- Monitoring, Performance, and Logging
- Security
- Conclusion
- Appendix: Links and further resources
Product information
- Title: Architecting Modern Java EE Applications
- Author(s):
- Release date: October 2017
- Publisher(s): Packt Publishing
- ISBN: 9781788393850
You might also like
book
Java EE 8 Application Development
Develop Enterprise Java applications compliant with the latest version of the Java EE specification About This …
book
Java EE 8 Cookbook
A practical guide for building effective enterprise solutions with Java EE 8 About This Book Recipes …
book
Java EE 8 High Performance
Get more control of your applications performances in development and production and know how to meet …
book
The Definitive Guide to JSF in Java EE 8: Building Web Applications with JavaServer Faces
Learn and master the new features in the JSF 2.3 MVC web framework in this definitive …