Summary
Enterprise Java Microservices is an example-rich tutorial
that shows how to design and manage large-scale Java applications
as a collection of microservices.
About the Technology
Large applications are easier to develop and maintain when you
build them from small, simple components. Java developers now enjoy
a wide range of tools that support microservices application
development, including right-sized app servers, open source
frameworks, and well-defined patterns. Best of all, you can build
microservices applications using your existing Java skills.
About the Book
Enterprise Java Microservices teaches you to design and
build JVM-based microservices applications. YouпїЅll start by
learning how microservices designs compare to traditional Java EE
applications. Always practical, author Ken Finnigan introduces
big-picture concepts along with the tools and techniques youпїЅll
need to implement them. YouпїЅll discover ecosystem components like
Netflix Hystrix for fault tolerance and master the Just enough
Application Server (JeAS) approach. To ensure smooth operations,
youпїЅll also examine monitoring, security, testing, and deploying to
the cloud.
WhatпїЅs Inside
The microservices mental model
Cloud-native development
Strategies for fault tolerance and monitoring
Securing your finished applications
About the Reader
This book is for Java developers familiar with Java EE.
About the Author
Ken Finnigan leads the Thorntail project at Red Hat, which seeks
to make developing microservices for the cloud with Java and Java
EE as easy as possible.
AI Reading Assistant
Whole-book reading guide from stratified index samples; jump to passages in the text
Tip the Site
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat Pay
Alipay
Open WeChat or Alipay and scan. No login required.
AI guide
【One-Line Pitch】
A practical bridge for experienced Java EE developers who want to move from monolithic application servers to cloud-ready microservices without abandoning the skills and frameworks they already know. Read it if you want a guided, example-driven path through the JVM microservices ecosystem rather than a theory-only overview.
【Book Arc】
- **Opening (~0%–15%)**: Frames the shift from traditional Enterprise Java monoliths to distributed architectures, covering the history of Java EE, the problems of monoliths, migration patterns (Domain-Driven Design, Big Bang, Strangler, Hybrid), and why Enterprise Java suits microservices.
- **Early (~15%–30%)**: Moves into hands-on basics — building a RESTful microservice with JAX-RS, introducing the Cayambe monolith that runs through the book, and explaining the "Just enough Application Server" (JeAS) idea plus Eclipse MicroProfile and runtime choices like Dropwizard and Payara Micro.
- **Early–Middle (~30%–45%)**: Covers testing (unit vs. integration, consumer-driven contract testing) and cloud-native development, then shifts to consuming microservices through libraries at varying abstraction levels and to service discovery via a registry.
- **Middle (~45%–60%)**: Tackles the operational core of distributed systems — client-side load balancing, service registries, and fault tolerance with Netflix Hystrix, including integration with RESTEasy and Ribbon clients.
- **Late (~60%–85%)**: Addresses security with Keycloak (securing resources, authenticating users, testing secured services) and architecting a hybrid where the Cayambe monolith coexists with new microservices, deployed to a hybrid cloud.
- **Ending (~85%–100%)**: Extends into data streaming with Apache Kafka on OpenShift (producers, consumers, simplifying monolith architecture), plus a Spring Boot appendix for readers working outside the Thorntail/Java EE stack.
【Key Takeaways】
- **Microservices are a mindset shift, not just a tooling change** (Opening): The book's stated goal is to move traditional Enterprise Java developers onto a different mental model, so expect architectural reasoning before code.
- **Migration should be incremental** (Opening): Patterns like Strangler and Hybrid are presented as safer routes off a monolith than a Big Bang rewrite, with guidance on when each applies.
- **Right-size your runtime** (Early): The JeAS concept argues against full application servers for every service; the book compares opinionated runtimes (Dropwizard, Payara Micro, Thorntail) so you can match runtime weight to service needs.
- **Testing changes shape in a distributed world** (Early–Middle): Consumer-driven contract testing is singled out as critical when many services collaborate, since integration testing alone no longer guarantees compatibility.
- **Discovery and load balancing belong in infrastructure, not your code** (Middle): Services register with a registry and clients look up instances; the book advises against hand-rolling load-balancing algorithms and warns against caching instance URLs too long.
- **Fault tolerance must be designed in** (Middle): Hystrix is used to show how to absorb failures from downstream services so one failing dependency doesn't cascade through the system.
- **Security is a first-class concern** (Late): Keycloak is the vehicle for authentication and authorization, demonstrated end-to-end from securing a resource to authenticating a UI.
- **Streaming can simplify, not just extend, architecture** (Ending): Kafka is framed as a way to reduce monolith complexity through data streaming, with deployment on OpenShift shown concretely.
【Reading Tips】
- **Deep-read Chapters 1–3** if you're new to microservices; they establish the mental model and runtime choices that everything later assumes.
- **Skim the Cayambe narrative** if you only want techniques — the running example ties chapters together but can be revisited when you need context.
- **Treat Chapters 7–9 as the operational core**: discovery, fault tolerance, and security are where most production pain lives; work the Hystrix and Keycloak examples hands-on.
- **Use the Spring Boot appendix selectively** — it's a parallel track for readers outside the Thorntail ecosystem, not required for the main arc.
- **Expect dated tooling**: Hystrix and specific runtime versions reflect the book's era; take away the patterns and verify current library status before adopting.
【Coverage Limits】
This guide is based on stratified excerpts (front matter, table of contents, and selected chapters); detailed code walkthroughs and later-chapter specifics are only partially represented, so treat chapter-level claims as directional rather than exhaustive.
Excerpt 1
s is captioned “Girl from Lumbarda, island Korčula, Croatia.” The illustration is taken from the reproduction, published in 2006, of a 19th-century collectio...
Kafka consumer 11.4. Additional exercises Summary Appendix. Spring Boot microservices Anatomy of a Spring Boot project Examining a newly initialized Spring...
y for our microservices and how to achieve it with Keycloak. From what is required to secure microservices, to retrieving tokens within a microservice for ca...
hold onto any physical URLs for more than 10 to 15 seconds. That may not seem like much, but a microservice instance can quickly go from functioning to faili...
er weights, which determines the server based on the ranges. A server with a higher weighting, or shorter response time, has a greater chance of being select...
a role binding to match the service account with that role. Listing 7.3. service-rb.yml metadata: name: view-service 1 subjects: - kind: ServiceAccount name:...
e ability of a business to deliver value in a timely manner. It wasn’t long after Java was first released more than 20 years ago that various frameworks bega...
pplications are all gloom and doom, is that really the case? In many situations, it makes sense for an enterprise to continue with, or develop, a monolith. H...
Support this siteYour recognition and a small knowledge-service contribution help keep this technical work open source.
Scan the WeChat Pay or Alipay code below. Logged-in and guest visitors can both tip.
WeChat PayAlipay
Open WeChat or Alipay and scan. No login required.
Loading comments...
Reply to Comment
Edit Comment