This repository is a personal learning workspace for following along with the book Cloud Native Spring in Action - With Spring Boot and Kubernetes written by Thomas Vitale and published by Manning Publications.
Note
The official source code for the book is available at ThomasVitale/cloud-native-spring-in-action.
This project is not a direct fork of the original repository.
Instead, it was created from scratch to learn and practice the concepts hands-on.
There might be some deviations from the book, such as using newer technologies like Spring Boot 4, exploring alternative approaches, or personal experimentation.
Tip
To see CI/CD pipelines running in dedicated application repositories, visit fResult-PolarBookshop.
Its projects are extracted from the chapter-based work here, which is intentionally organized for learning rather than as independently deployable applications.
The Chapter 5 Catalog Service uses the Book persistence record directly as the request and response body, without separate DTOs or DTO/entity mapping.
Its primitive int version field must be supplied in POST/PUT requests with the current JSON configuration; omitting it results in HTTP 400 during deserialization.
HTTPie examples therefore include version:=0 (a JSON number).
For POST, zero represents a new entity.
For an existing book, the current PUT implementation uses the version loaded from the database instead of the submitted value, so this request field does not provide client-side stale-update detection.
See Chapter 5's request-body notes for details.
This applies to the current Chapter 5 implementation.
Chapters 3 and 4 do not have a version field on Book.
Chapter after chapter, you'll build, containerize, and deploy cloud native applications.
Along the journey, you will need the following software installed.
- Java 26+
- OpenJDK: Eclipse Temurin
- GraalVM: GraalVM
- JDK Management: SDKMAN
- Docker 29+
- Kubernetes 1.30+ — required by the Kubernetes chapters
- HTTPie — optional command-line HTTP client (you can use Postman instead if you want to)
- Tilt — an optional tool that automates local image builds, Kubernetes deployments, logs, and port forwarding
- Headlamp — optional Kubernetes GUI (instead of Octant)
- Kubeconform — optional Kubernetes manifest validation
The code samples in the book use Gradle as the build tool.
Should you prefer Maven, here's a table mapping Gradle commands to Maven so that you can easily follow along.
| Gradle | Maven |
|---|---|
./gradlew clean |
./mvnw clean |
./gradlew build |
./mvnw install |
./gradlew test |
./mvnw test |
./gradlew bootJar |
./mvnw spring-boot:repackage |
./gradlew bootRun |
./mvnw spring-boot:run |
./gradlew bootBuildImage |
./mvnw spring-boot:build-image -DskipTests |
- Configuring IntelliJ IDEA
- Configuring Visual Studio Code
- Knative Platform Cloud Installation
- Minikube configuration behind a proxy
- Observability setup on Kubernetes
- Replacing Kubeval with Kubeconform
- Replacing Octant
- Setting up a Kubernetes cluster for Polar Bookshop on Azure
- Setting up a Kubernetes cluster for Polar Bookshop on DigitalOcean
- Testing RabbitMQ with Testcontainers
- Working with macOS on Apple Silicon
- Working with macOS on Intel
- Working with Windows
| Chapter | Starting point | Intermediate version | Final version | My version |
|---|---|---|---|---|
| 1. Introduction to cloud native | - | - | - | - |
| 2. Cloud native patterns and technologies | 02-begin | - | 02-end | - |
| 3. Getting started with cloud native development | 03-begin | - | 03-end | Chapter 3 |
| 4. Externalized configuration management | 04-begin | - | 04-end | Chapter 4 |
| 5. Persisting and managing data in the cloud | 05-begin | 05-intermediate | 05-end | Chapter 5 |
| 6. Containerizing Spring Boot | 06-begin | - | 06-end | Chatper 6 |
| 7. Kubernetes fundamentals for Spring Boot | 07-begin | - | 07-end | Chapter 7 |
| 8. Reactive Spring: Resilience and scalability | 08-begin | - | 08-end | Chapter 8 |
| 9. API gateway and circuit breakers | 09-begin | - | 09-end | Chapter 9 |
| 10. Event-driven applications and functions | 10-begin | 10-intermediate | 10-end | |
| 11. Security: Authentication and SPA | 11-begin | - | 11-end | |
| 12. Security: Authorization and auditing | 12-begin | - | 12-end | |
| 13. Observability and monitoring | 13-begin | - | 13-end | |
| 14. Configuration and secrets management | 14-begin | - | 14-end | |
| 15. Continuous delivery and GitOps | 15-begin | - | 15-end | |
| 16. Serverless, GraalVM and Knative | 16-begin | - | 10-end |
The final project developed throughout the book is available here.
You can find the source code for the Angular frontend here.
To see the chapter projects that run CI/CD pipelines in dedicated repositories, visit fResult-PolarBookshop.
Feel free to submit questions, feedback, or errata to the forum dedicated to "Cloud Native Spring in Action": https://livebook.manning.com/book/cloud-native-spring-in-action.
You are very welcome to contact me for questions, feedback, or suggestions.
Feel free to reach out to me on Twitter, LinkedIn, Mastodon, BlueSky or here on GitHub.
.
.
.
.
.
.
.
.
.
.
.
.
.
.
[This Space Intentionally Left Blank]
The bottom of every page is padded so readers can maintain a consistent eyeline.
