Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: John Carnell, Illary Huaylupo Sánchez

Rating 4.0 AI initial rating

Spring Microservices in Action, Second Edition teaches you to build microservice-based applications using Java and Spring. Summary By dividing large applications into separate self-contained units, Microservices are a great step toward reducing complexity and increasing flexibility. Spring Microservices in Action, Second Edition teaches you how to build microservice-based applications using Java and the Spring platform. This second edition is fully updated for the latest version of Spring, with expanded coverage of API routing with Spring Cloud Gateway, logging with the ELK stack, metrics with Prometheus and Grafana, security with the Hashicorp Vault, and modern deployment practices with Kubernetes and Istio. about the technology Building and deploying microservices can be easy in Spring! Libraries like Spring Boot, Spring Cloud, and Spring Cloud Gateway reduce the boilerplate code in REST-based services. They provide an effective toolbox to get your microservices up and running on both public and private clouds. About the book Spring Microservices in Action, Second Edition teaches you to build microservice-based applications using Java and Spring. You’ll start by creating basic services, then move to efficient logging and monitoring. Learn to refactor Java applications with Spring’s intuitive tooling, and master API management with Spring Cloud Gateway. You’ll even deploy Spring Cloud applications with AWS and Kubernetes. What's inside • Microservice design principles and best practices • Configuration with Spring Cloud Config and Hashicorp Vault • Client-side resiliency with Resilience4j, and Spring Cloud Load Balancer • Metrics monitoring with Prometheus and Grafana • Distributed tracing with Spring Cloud Sleuth, Zipkin, and ELK Stack About the reader For experienced Java and Spring developers. About the author John Carnell is a senior cloud engineer with 20 years of Java experience. Illary Huaylupo Sánchez is a software engineer with over 13 years of experience.

AI Reading Assistant

Whole-book reading guide from stratified index samples; jump to passages in the text

AI guide
【One-Line Pitch】 A hands-on field guide for experienced Java and Spring developers who want to build, secure, observe, and deploy a real microservice system end to end. It is less a theory book than a guided build of one running application, so read it if you learn by wiring components together. 【Book Arc】 - **Opening (~0%–22%)**: Frames the move from monoliths and N-tier systems to microservices, explains why distributed systems fail in surprising ways, and introduces the Spring Cloud toolbox and cloud-native principles. - **Early (~22%–44%)**: Moves from architecture to code: decomposing a business problem, deciding service granularity and interfaces, knowing when *not* to use microservices, then building a Spring Boot service and containerizing it with Docker. - **Middle (~44%–67%)**: Covers the operational backbone — centralized configuration with Spring Cloud Config and Vault, service discovery with Eureka, client-side resiliency with Resilience4j, and routing through Spring Cloud Gateway. - **Late (~67%–89%)**: Adds cross-cutting concerns: OAuth2/Keycloak security, event-driven messaging with Spring Cloud Stream, and distributed tracing with Sleuth, Zipkin, and the ELK stack. - **Ending (~89%–100%)**: Turns to delivery: a build/deployment pipeline, cloud infrastructure on AWS (RDS, Redis, EC2, EKS), Jenkins pipeline scripts, and appendices on best practices, OAuth2 grant types, and monitoring. 【Key Takeaways】 - **Microservices are an architecture decision, not a default** (Early): the book weighs complexity, container sprawl, data consistency, and application type before recommending decomposition, which keeps the enthusiasm honest. - **Configuration must be externalized and protected** (Middle): Spring Cloud Config centralizes settings, Git backing enables versioning, and Vault plus encryption handles secrets — a practical answer to the "where do credentials live?" problem. - **Service discovery is the connective tissue** (Middle): Eureka registration and lookup, combined with load-balancer-aware clients and Feign, show how services find each other without hardcoded addresses. - **Resiliency is client-side and pattern-based** (Middle): circuit breakers, fallbacks, bulkheads, retries, and rate limiters with Resilience4j are presented as complementary defenses, not one silver bullet. - **A gateway centralizes routing and cross-cutting logic** (Late): Spring Cloud Gateway's predicate and filter factories, plus correlation-ID propagation, demonstrate how to keep tracing and policy out of every service. - **Security belongs at the edge and in the token** (Late): Keycloak-backed OAuth2, JWT parsing, token propagation, and advice on HTTPS, zoning, and limiting attack surface make security a system concern. - **Asynchronous messaging changes the coupling model** (Late): Spring Cloud Stream with Kafka and Redis illustrates state-change events and distributed caching, while acknowledging messaging's downsides. - **Observability requires traces, logs, and metrics together** (Late): Sleuth trace IDs, ELK aggregation, and Zipkin visualization are shown as one workflow for diagnosing distributed transactions. 【Reading Tips】 - Deep-read the early architecture chapters even if you already know Spring Boot; the granularity and "when not to use microservices" discussion is the book's most transferable content. - Treat the middle chapters as a build-along lab: stand up Config Server, Eureka, and Gateway in order, because later chapters assume they exist. - Skim the AWS/Kubernetes deployment chapter for pipeline structure and infrastructure choices; adapt the specifics to your own cloud rather than copying them. - Use the appendices as reference — best practices, OAuth2 grant types, and monitoring — rather than reading them linearly. - Watch for version drift: the second edition targets a specific Spring generation, so verify library versions against current releases before applying code directly. 【Coverage Limits】 This guide is based on the book's front matter, table of contents, and preface excerpts; it does not cover the detailed code walkthroughs, configuration snippets, or appendix contents, so chapter-level claims are inferred from structure rather than full text.
Excerpt 1
书名: Spring Microservices in Action (John Carnell, Illary Huaylupo Sánchez) (z-library.sk, 1lib.sk, z-lib.sk) 作者: John Carnell, Illary Huaylupo Sánchez Spring...
View in text
Page 6
designations have been printed in initial caps or all caps. Recognizing the importance of preserving what has been written, it is Manning’s policy to have th...
View in text
Page 12
pplication type 63 ■ Data transactions and consistency 63 3.3 The developer’s tale: Building a microservice with Spring Boot and Java 63 Building the doorway...
View in text
Page 13
t with the Spring Cloud Config service 141 ■ Vault UI 141 5.4 Protecting sensitive configuration information 144 Setting up a symmetric encryption key 144 ■...
View in text
Page 16
rchitecture 281 10.2 Introducing Spring Cloud Stream 282 10.3 Writing a simple message producer and consumer 284 Configuring Apache Kafka and Redis in Docker...
View in text
Page 19
o get involved in the world of microservices some years ago. Since then, it is the architecture I have used the most because of the advan- tages it provides...
View in text
Tags
AI categories
JavaCloud NativeMicroservices
ISBN: 1617296953
Publish Year: 2021
Language: English
Pages: 448
File Format: PDF
File Size: 29.1 MB
Text Preview (First 20 pages)
Registered users can read the full content for free

Register as a Gaohf Library member to read the complete e-book online for free and enjoy a better reading experience.

Generating text preview…