• Stars
    star
    383
  • Rank 111,995 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created over 4 years ago
  • Updated 6 months ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

πŸƒ Code samples and projects from the book "Cloud Native Spring in Action - With Spring Boot and Kubernetes" (Manning)

πŸƒ Cloud Native Spring in Action

The book cover of 'Cloud Native Spring in Action' by Thomas Vitale

This repository contains the source code accompanying the book Cloud Native Spring in Action - With Spring Boot and Kubernetes written by Thomas Vitale and published by Manning Publications.

There is a folder for each chapter, for which both an initial and final versions are available. For example, for chapter 4, you can use Chapter04/04-begin as a starting point to follow along with the examples in the chapter and Chapter04/04-end to check the code as it looks like at the end.

The book uses Spring Boot 2.7.3. You can find the same examples upgraded to the latest 2.7.x and 3.x versions of Spring Boot in dedicated branches. Feel free to use Spring Boot 3 while reading the book. Only a few minor changes are necessary to the code samples and they are documented here.

Prerequisites

Chapter after chapter, you'll build, containerize, and deploy cloud native applications. Along the journey, you will need the following software installed.

Gradle and Maven

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

Guides, Tools and Tips

Source Code by Chapter

Chapter Starting point Intermediate version Final 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
4. Externalized configuration management 04-begin - 04-end
5. Persisting and managing data in the cloud 05-begin 05-intermediate 05-end
6. Containerizing Spring Boot 06-begin - 06-end
7. Kubernetes fundamentals for Spring Boot 07-begin - 07-end
8. Reactive Spring: Resilience and scalability 08-begin - 08-end
9. API gateway and circuit breakers 09-begin - 09-end
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

Polar Bookshop

The final project developed throughout the book is available here.

You can find the source code for the Angular frontend here.

Book Forum

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/.

Contact the Author

You are very welcome to contact me for questions, feedback, or suggestions. Feel free to reach out to me on Twitter, LinkedIn, Mastodon, or here on GitHub.

More Repositories

1

awesome-spring

A curated list of awesome books, tutorials, courses, and resources for the Spring framework ecosystem.
1,095
star
2

llm-apps-java-spring-ai

Samples showing how to build Java applications powered by Generative AI and LLMs using Spring AI and Spring Boot.
Java
207
star
3

spring-boot-multitenancy

Samples showing how to build multitenant applications with Java and Spring Boot
Java
103
star
4

spring-cloud-gateway-resilience-security-observability

Example with Spring Boot 3 focused on resilience, security and observability. It uses Spring Cloud Gateway, Spring Security and Spring Cloud Circuit Breaker.
Java
72
star
5

spring-keycloak-tutorials

The repo for my post series about Keycloak and how to use it to secure Spring Boot applications and services
HTML
71
star
6

developer-experience-java-kubernetes

Samples showing how to use different tools and patterns to improve the developer experience and optimise the inner development loop.
Java
59
star
7

spring-io-2022-spring-cloud-gateway

Java
47
star
8

spring-tutorials

The repo for my articles, tutorials and guides about the Spring Framework, Spring Boot, Spring Security.
Java
36
star
9

spring-security-examples

Examples with Spring Security (OAuth2 and OpenID Connect, Authentication and Authorization)
Java
27
star
10

spring-security-jwt-rest-demo

A demo to test Spring Security and JWT for a RESTful application
Java
22
star
11

spring-boot-next-gen-apps

Samples showcasing new features and capabilities in Spring Boot 3 and Spring Framework 6
Java
21
star
12

microservices-with-spring-masterclass

Java
16
star
13

spring-cloud-gateway-goto-cph-2021

Java
14
star
14

llm-apps-java-langchain4j

Samples showing how to build Java applications powered by Generative AI and LLMs using LangChain4j and Spring Boot.
Java
14
star
15

langchain4j-spring-boot

LangChain4j support in Spring Boot to build AI and LLM-powered applications.
Java
13
star
16

spring-cloud-gateway-webinar-feb-2021

TypeScript
11
star
17

securing-apps-oauth2-oidc-spring-security-devoxx-ua-2021

TypeScript
10
star
18

supply-chain-security-java

Samples showing how to secure the supply chain for Java applications.
Java
9
star
19

serverless-java-masterclass

Labs exercises for the masterclass "Serverless Java with Spring Boot"
Java
7
star
20

spring-cloud-function-stream-webinar-apr-2021

Java
7
star
21

spring-cloud-gateway-resilience-security-goto-2021

Java
7
star
22

efficient-spring-boot-workshop

Java
7
star
23

llm-images

Catalog of OCI images for popular open-source or open Large Language Models.
Dockerfile
7
star
24

springone-2021-spring-boot-production-boost

Java
6
star
25

securing-java-apps-oauth2-oidc-spring-security

Java
6
star
26

spring-boot-opentelemetry

Java
6
star
27

multitenant-spring-boot-demo

Java
6
star
28

band-service

Java
6
star
29

supply-chain-security-java-training

Workshop about securing the supply chain for Java applications.
Java
6
star
30

spring-boot-ecosystem-overview

A collection of examples to showcase several features and modules in the Spring Boot evosystem.
Java
6
star
31

spring-boot-kubernetes-goto-cph-2021

Java
5
star
32

kubernetes-native-java-with-spring-boot

Java
5
star
33

spring-boot-kubernetes-j4k-2021

Java
5
star
34

symphony-for-dev-and-platform

Source code for the presentation "Building AI-Ready Platforms - Symphony for Developer and Platform Engineer"
Java
5
star
35

serverless-java-with-spring-boot

Samples about serverless application with Java and Spring boot
Java
5
star
36

eventing-game

Deployment repo for installing the serverless game.
4
star
37

awesome-cloud-native-platforms

A curated list of awesome books, tutorials, courses, and resources to learn how to design, build and operate cloud native platforms.
4
star
38

cartographer-cli

The Cartographer CLI offers a convenient way to manage a Cartographer installation and related workflows.
Go
4
star
39

microservices-spring-k8s-workshop

Java
3
star
40

spring-boot-kubernetes-goto-2021

Java
3
star
41

devoxx-uk-2022-spring-cloud-gateway

Java
2
star
42

devtalks-2022-serverless-java

Java
2
star
43

cloud-events-demo

TypeScript
2
star
44

spring-boot-kubernetes-session-jan-2021

Java
2
star
45

spring-data-jpa-tutorials

The repo for my articles about Spring Data JPA.
Java
2
star
46

spring-boot-kubernetes-devoxx-uk-2021

Source code and examples from my presentation "Cloud Native with Spring Boot and Kubernetes" at Devoxx UK 2021
Java
2
star
47

spring-web-socket-demo

A demo to test Spring Security, Web Socket (using STOMP) and JWT Authentication
Java
2
star
48

carvel-demo

Makefile
2
star
49

springio-2022-knative-spring-func

Java
2
star
50

devoxx-ua-2020

Samples for my presentation "Cloud Native Spring: Migrating Traditional Apps" at Devoxx Ukraine 2020
Java
2
star
51

cloud-native-spring-webinar-feb-2021

Java
2
star
52

serverless-spring-native-cloud-jbcn-2021

Code samples from my presentation at JBCN Conference 2021.
Java
2
star
53

spring-boot-kubernetes-devtalks-2021

Java
2
star
54

computer-architectures

Programming exercises using Assembly x86 proposed at Computer Architectures course (Polytechnic University of Turin)
Assembly
2
star
55

developer-experience-go-kubernetes

Samples showing how to use different tools and patterns to improve the developer experience and optimise the inner development loop.
2
star
56

cloud-native-aarhus-april-2024

Java
2
star
57

concerto-for-java-and-ai

Java
2
star
58

tanzu-java-web-app

Java
1
star
59

kustomize-demo

Sample showcasing the main features of Kustomize.
1
star
60

spring-security-data-reactive-example

Java
1
star
61

intelligent-apps-java-langchain4j-ai

Samples showing how to build intelligent apps powered by Generative AI and LLMs using Java and LangChain4J.
1
star
62

serverless-spring-native-cloud-jlove-2021

Source code and examples from the talk at jLove Conference 2021.
Java
1
star
63

devoxxuk-question-1

Go
1
star
64

jakarta-ee-tutorials

Source code for my tutorials on Jakarta EE.
Java
1
star
65

spring-boot-workshop

Java
1
star
66

configuration-service

A configuration service based on Spring Cloud Server
Java
1
star
67

devoxxuk-question-5

Java
1
star
68

config-repo

Properties used by configuration server in Spring tutorials
1
star
69

devoxxuk-2022-knative-spring-func

Java
1
star
70

devoxxuk-question-3

Java
1
star
71

devoxxuk-question-2

Java
1
star
72

spring-boot-kubernetes-incontro-devops-2021

Java
1
star
73

devoxxuk-question-4

Java
1
star
74

cloudevents-spring-boot

Java
1
star
75

spring-boot-buildpacks-test

Java
1
star
76

spring-boot-conventions

A Convention Server that defines conventions for Spring Boot workloads based on the Cartographer Conventions framework.
Go
1
star
77

langchain4j-spring-boot-catalog

Catalog of project templates usable from the Spring CLI to bootstrap LLM applications using Java, Spring Boot, and LangChain4j.
Java
1
star
78

spring-ai-open-ai-image-okhttp

1
star
79

spring-ai-labs

Java
1
star
80

java-advent-2020-spring-resilience4j

Examples of resilience patterns implemented using Spring Boot and Resilience4j. Presented at JavaAdvent 2020.
Java
1
star
81

distributed-programming-1

Exercises, tests and experiments for the Distributed Programming 1 course held at Polytechnic University of Turin.
C
1
star
82

quarkus-tutorials

The repo for my articles about Quarkus and how to use it to develop and deploy supersonic enterprise Java applications.
HTML
1
star