modern-java-ee-design-patterns.pdf

(8672 KB) Pobierz
Modern Java EE
Design Patterns
Building Scalable Architecture for
Sustainable Enterprise Development
Markus Eisele
Modern Java EE Design
Patterns
Building Scalable Architecture
for Sustainable Enterprise Development
Markus Eisele
Modern Java EE Design Patterns
by Markus Eisele
Copyright © 2016 O’Reilly Media. All rights reserved.
Printed in the United States of America.
Published by O’Reilly Media, Inc., 1005 Gravenstein Highway North, Sebastopol, CA
95472.
O’Reilly books may be purchased for educational, business, or sales promotional use.
Online editions are also available for most titles (http://safaribooksonline.com). For
more information, contact our corporate/institutional sales department:
800-998-9938 or
corporate@oreilly.com.
Editor:
Brian Foster
Production Editor:
Shiny Kalapurakkel
Copyeditor:
Charles Roumeliotis
Proofreader:
Jasmine Kwityn
October 2015:
First Edition
Interior Designer:
David Futato
Cover Designer:
Karen Montgomery
Illustrator:
Rebecca Demarest
Revision History for the First Edition
2015-10-05:
2016-01-15:
First Release
Second Release
While the publisher and the author have used good faith efforts to ensure that the
information and instructions contained in this work are accurate, the publisher and
the author disclaim all responsibility for errors or omissions, including without limi‐
tation responsibility for damages resulting from the use of or reliance on this work.
Use of the information and instructions contained in this work is at your own risk. If
any code samples or other technology this work contains or describes is subject to
open source licenses or the intellectual property rights of others, it is your responsi‐
bility to ensure that your use thereof complies with such licenses and/or rights.
978-1-491-93982-6
[LSI]
Table of Contents
Acknowledgments. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . v
1. Enterprise Development Today. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1
Enterprise Goals and Objectives
Resistant to Change and Economically Efficient
Developers Left Alone
Technology-Centric Versus Business-Centric
Aims and Scope
Mistakes We Made
Evolution Continues with ESBs
Challenges and Lessons Learned
2
2
3
3
3
6
7
9
2. History of Java EE. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
3. Designing Software for a Scalable Enterprise. . . . . . . . . . . . . . . . . . . 13
Greenfield Versus Brownfield
Domain-Driven Design
Service Characteristics
Microservices Best Practices
Independently Deployable and Fully Contained
Crosscutting Concerns
Matching the Real World
The Missing Pieces
Migration Approaches
15
16
17
19
26
26
32
34
35
4. Java EE and Microservices. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 31
iii
Zgłoś jeśli naruszono regulamin