Share E-Book
Scan to open this page

Scan with your phone to open this page

Author: Moises Macero (auth.)

Build a microservices architecture with Spring Boot, by evolving an application from a small monolith to an event-driven architecture composed of several services. This book follows an incremental approach to teach microservice structure, test-driven development, Eureka, Ribbon, Zuul, and end-to-end tests with Cucumber. Author Moises Macero follows a very pragmatic approach to explain the benefits of using this type of software architecture, instead of keeping you distracted with theoretical concepts. He covers some of the state-of-the-art techniques in computer programming, from a practical point of view. You’ll focus on what's important, starting with the minimum viable product but keeping the flexibility to evolve it. What You'll Learn Build microservices with Spring Boot Use event-driven architecture and messaging with RabbitMQ Create RESTful services with Spring Master service discovery with Eureka and load balancing with Ribbon Route requests with Zuul as your API gateway Write end-to-end rests for an event-driven architecture using Cucumber Carry out continuous integration and deployment Who This Book Is For Those with at least some prior experience with Java programming. Some prior exposure to Spring Boot recommended but not required.

AI Reading Assistant

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

AI guide
# Learn Microservices with Spring Boot: A Practical Approach to RESTful Services using RabbitMQ, Eureka, Ribbon, Zuul and Cucumber ## 【One-Line Pitch】 A hands-on, project-driven guide that walks Java developers through transforming a working monolith into a full event-driven microservices architecture using Spring Boot, RabbitMQ, Eureka, Ribbon, Zuul, and Cucumber. Ideal for developers who learn best by building rather than reading theory. ## 【Book Arc】 - **Opening (~0%–12%)**: Introduces the book's pragmatic philosophy—learning by evolving a real application from a minimal viable product—and outlines the roadmap from Spring Boot basics through advanced distributed-system patterns. - **Early (~16%–32%)**: Covers the foundational Spring Boot application, starting with a "skeleton" project and introducing test-driven development (TDD) as a core practice from the very beginning. - **Middle (~36%–56%)**: Builds a complete three-tier application (presentation, business logic, data layers) with a REST API and web frontend, then adds data persistence with repositories and refactoring as new requirements emerge. - **Late (~68%–84%)**: Shifts focus to microservices architecture—analyzing the monolith, discussing separation of concerns, loose coupling, independent scalability, and the rationale for splitting the application. - **Ending (~88%–100%)**: Introduces event-driven architecture and messaging with RabbitMQ and Spring AMQP, setting up the infrastructure for connecting microservices asynchronously. ## 【Key Takeaways】 - **TDD from day one** (Early): The book embeds test-driven development into the initial skeleton creation, showing how writing tests first shapes better application structure and catches issues early. - **Three-tier architecture is the monolith baseline** (Middle): Before microservices, you build a complete layered application—domain model, business logic, REST controllers, and a web client—so you understand what you're later decomposing. - **Persistence arrives through refactoring** (Middle): New requirements drive the introduction of a data layer with repositories, demonstrating how real applications evolve rather than being perfectly designed upfront. - **Microservices solve specific monolith problems** (Late): The book analyzes the monolith's pain points—tight coupling, difficult independent scaling, and slow change cycles—before proposing microservices as the remedy. - **Event-driven architecture is the connecting tissue** (Late): Rather than simple REST calls between services, the book advocates for asynchronous messaging to achieve loose coupling and resilience. - **RabbitMQ and Spring AMQP are the messaging backbone** (Ending): The final section covers practical RabbitMQ setup and Spring AMQP integration, enabling services to communicate through events rather than direct requests. - **The full Netflix OSS stack completes the picture** (Late): Eureka for service discovery, Ribbon for client-side load balancing, and Zuul as an API gateway are introduced as the supporting infrastructure for a production-ready system. ## 【Reading Tips】 - **Skim the early Spring Boot basics** if you already have experience with the framework—the real value starts with the three-tier application and the TDD workflow. - **Deep-read the monolith analysis section** (~84%–88%): This is where the author explains *why* microservices are needed, which gives you the mental model for everything that follows. - **Pay close attention to the refactoring chapters** (Middle): The book shows code evolution in response to new requirements—this is where you learn how to think about application design, not just syntax. - **The event-driven architecture chapters** (Ending) are the payoff—if you're short on time, prioritize understanding the RabbitMQ/Spring AMQP concepts and how they replace synchronous calls. - **Build along with the examples**: This is a practical book; the learning happens by coding each stage and observing how the architecture transforms incrementally. ## 【Coverage Limits】 The excerpts provide a clear map of the book's structure and progression, but detailed code examples, specific configuration steps, and the full content of the Cucumber end-to-end testing and CI/CD chapters are not covered in this guide. The later sections on Eureka, Ribbon, and Zuul are referenced but their implementation details are not visible in the source material. ##
Page 3
ISBN-13 (electronic): 978-1-4842-3165-4 https://doi.org/10.1007/978-1-4842-3165-4 Library of Congress Control Number: 2017962334 Copyright © 2017 by Moises M...
View in text
Page 4
7
View in text
Page 4
7
View in text
Page 4
7
View in text
Page 5
97 Table of ConTenTs
View in text
Page 5
97 Table of ConTenTs
View in text
Page 5
97 Table of ConTenTs
View in text
Page 6
System 120 Spring AMQP
View in text
Tags
AI categories
JavaBackendMicroservices
ISBN: 1484231651
Publisher: Apress
Publish Year: 2017
Language: English
Pages: 337
File Format: PDF
File Size: 5.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…