更新时间:2021-06-24 12:56:52
coverpage
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
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
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
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
Changes in data output format
MicroProfile OpenTracing