Hands-On Enterprise Java Microservices with Eclipse MicroProfile
Cesar Saavedra Heiko W. Rupp Jeff Mesnil Pavol Loffay Antoine Sabot Durand Scott Stark更新时间:2021-06-24 12:56:52
最新章节:Leave a review - let other readers know what you thinkcoverpage
Title Page
Copyright and Credits
Hands-On Enterprise Java Microservices with Eclipse MicroProfile
About Packt
Why subscribe?
Contributors
About the authors
About the reviewers
Packt is searching for authors like you
Preface
Who this book is for
What this book covers
To get the most out of this book
Download the example code files
Download the color images
Conventions used
Get in touch
Reviews
Section 1: MicroProfile in the Digital Economy
Introduction to Eclipse MicroProfile
Enterprise Java microservices
Forces that fuel the digital economy
Multi-speed IT
Introducing Eclipse MicroProfile
MicroProfile value proposition
Summary
Questions
Governance and Contributions
Current Eclipse MicroProfile governance
Sandbox approach to open contribution
Umbrella releases versus projects outside the umbrella
MicroProfile Starter
A quick tour of MicroProfile Starter
Summary
Questions
Section 2: MicroProfile's Current Capabilities
MicroProfile Config and Fault Tolerance
Understanding Eclipse MicroProfile Config
Reading configuration from the MicroProfile Config API
The Config object
The @ConfigProperty annotation
Providing sources of configuration
Default ConfigSources
Custom ConfigSources implementations
Using converters for high-level configuration
Built-in converters
Automatic converters
Custom converters
Understanding Eclipse MicroProfile Fault Tolerance
MicroProfile Fault Tolerance in action
The @Asynchronous policy
The @Retry policy
The @Fallback policy
The @Timeout policy
The @CircuitBreaker policy
The @Bulkhead policy
Tolerance with MicroProfile config
Summary
Questions
Further reading
MicroProfile Health Check and JWT Propagation
Technical requirements
Understanding health checks and how MicroProfile handles them
The Health Check protocol and wire format
The Health Check Java API
Integration with the cloud platform
Human operators
Changes in Health Check response messages
Using JSON Web Token Propagation in MicroProfile
Recommendations for interoperability
Required MP-JWT claims
The high-level description of the MP-JWT API
Sample code that uses MP-JWT
Injection of JsonWebToken information
Injection of JWT claim values
Configuring authentication of JWTs
Running the samples
Summary
Questions
MicroProfile Metrics and OpenTracing
MicroProfile Metrics
Metadata
Retrieving metrics from the server
Accessing specific scopes
Supplying application-specific metrics
More types of metric
Gauges
Meter
Histograms
Timers
Tagging
Server-wide tags
Per-metrics tags
Using Prometheus to retrieve metrics
New in MP-Metrics 2.0
Change for counters – introducing ConcurrentGauge
Tagging
Changes in data output format
MicroProfile OpenTracing
OpenTracing project
Configuration properties
Automatic instrumentation
JAX-RS
MicroProfile Rest Client
Explicit instrumentation
@Traced annotation
Tracer injection
Tracing with Jaeger
Summary
Questions
MicroProfile OpenAPI and Type-Safe REST Client
Introduction to MicroProfile OpenAPI and its capabilities
Configuration
Generating the OpenAPI document
MicroProfile OpenAPI annotations
Usage examples
Static OpenAPI files
Programming model
Using a filter for updates
Introduction to the MicroProfile REST Client and its capabilities
Defining the endpoint Interface
MicroProfile REST Client programmatic API usage
MicroProfile REST Client CDI usage
MicroProfile Config integration
Simplifying configuration keys
Dealing with client headers
Provider registration for advanced usage
Provider priority
Feature registration
Default providers
Exception mapping
Default exception mapping
Async support
Summary
Questions
Section 3: MicroProfile Implementations and Roadmap
MicroProfile Implementations Quarkus and Interoperability via the Conference Application
Current MicroProfile implementations
Thorntail
Open Liberty
Apache TomEE
Payara Micro
Hammock
KumuluzEE
Launcher
Helidon
Generating sample code for the current implementations
Other projects that implement MicroProfile
Quarkus
How to quark a generated MicroProfile project
MicroProfile interoperability – the conference application
Summary
Questions
Section 4: A Working MicroProfile Example
A Working Eclipse MicroProfile Code Sample
Technical requirements
Sample architecture of a multiservice MicroProfile application
Running the sample application
The Docker shell commands
The Svcs1 shell command
The Svcs2 shell command
The web shell command
Details of the sample application
The Config tab
The Health tab
The Metrics tab
The OpenTracing tab
The OpenAPI tab
The KeyCloak tab
The JWT tab
The RestClient tab
Summary
Questions
Further reading
Section 5: A Peek into the Future
Reactive Programming and Future Developments
Reactive programming work in Eclipse MicroProfile
An overview of Reactive Messaging
MicroProfile reactive messaging architecture
Message shapes
MicroProfile Reactive Streams operators
MicroProfile Context Propagation
MicroProfile reactive messaging examples
MicroProfile future developments
Projects outside the umbrella
Long Running Actions
Context Propagation
GraphQL
Differences between GraphQL and REST
GraphQL and databases
Projects in the sandbox
MicroProfile Boost
Eclipse MicroProfile and Jakarta EE
Summary
Questions
Further reading
Using MicroProfile in Multi-Cloud Environments
Using Eclipse MicroProfile for cloud-native application development
Microservices versus cloud native versus container native
What about 12-factor applications?
What about serverless and FaaS?
Cloud-native application development
Developing and running MicroProfile applications across clouds
Bare-metal machines versus VMs versus containers
Considerations when using MicroProfile in a hybrid cloud deployment
Challenges when using MicroProfile OpenTracing in a multi-cloud deployment
Considerations when using Eclipse MicroProfile in a service mesh
Retry
Fallback
Fault injection in the service mesh
Conclusion
Summary
Questions
Assessments
Chapter 1
Chapter 2
Chapter 3
Chapter 4
Chapter 5
Chapter 6
Chapter 7
Chapter 8
Chapter 9
Chapter 10
Other Books You May Enjoy
Leave a review - let other readers know what you think
更新时间:2021-06-24 12:56:52