• Stars
    star
    324
  • Rank 125,043 (Top 3 %)
  • Language
    Java
  • License
    Apache License 2.0
  • Created almost 4 years ago
  • Updated 5 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.
994
star
2

spring-boot-multitenancy

Samples showing how to build multitenant applications with Java and Spring Boot
Java
78
star
3

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
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
69
star
5

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
48
star
6

spring-io-2022-spring-cloud-gateway

Java
45
star
7

spring-tutorials

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

llm-apps-java-spring-ai

Samples showing how to build Java applications powered by Generative AI and LLMs using Spring AI.
Java
28
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
19
star
12

spring-cloud-gateway-goto-cph-2021

Java
14
star
13

microservices-with-spring-masterclass

Java
14
star
14

spring-cloud-gateway-webinar-feb-2021

TypeScript
11
star
15

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

TypeScript
10
star
16

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

Java
8
star
17

llm-apps-java-langchain4j

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

serverless-java-masterclass

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

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

Java
7
star
20

efficient-spring-boot-workshop

Java
7
star
21

springone-2021-spring-boot-production-boost

Java
6
star
22

spring-boot-ecosystem-overview

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

multitenant-spring-boot-demo

Java
6
star
24

spring-boot-kubernetes-j4k-2021

Java
6
star
25

symphony-for-dev-and-platform

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

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

Java
5
star
27

spring-boot-kubernetes-goto-cph-2021

Java
5
star
28

band-service

Java
5
star
29

kubernetes-native-java-with-spring-boot

Java
5
star
30

serverless-java-with-spring-boot

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

supply-chain-security-java

Samples showing how to secure the supply chain for Java applications.
Java
4
star
32

eventing-game

Deployment repo for installing the serverless game.
4
star
33

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
34

cartographer-cli

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

spring-boot-kubernetes-session-jan-2021

Java
3
star
36

microservices-spring-k8s-workshop

Java
3
star
37

spring-boot-kubernetes-goto-2021

Java
3
star
38

devoxx-uk-2022-spring-cloud-gateway

Java
2
star
39

devtalks-2022-serverless-java

Java
2
star
40

carvel-demo

Makefile
2
star
41

serverless-spring-native-cloud-jbcn-2021

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

spring-web-socket-demo

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

spring-data-jpa-tutorials

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

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
45

springio-2022-knative-spring-func

Java
2
star
46

spring-boot-opentelemetry

Java
2
star
47

devoxx-ua-2020

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

cloud-native-spring-webinar-feb-2021

Java
2
star
49

spring-boot-kubernetes-devtalks-2021

Java
2
star
50

computer-architectures

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

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
52

tanzu-java-web-app

Java
1
star
53

cloud-events-demo

TypeScript
1
star
54

devoxxuk-question-2

Java
1
star
55

kustomize-demo

Sample showcasing the main features of Kustomize.
1
star
56

spring-security-data-reactive-example

Java
1
star
57

intelligent-apps-java-langchain4j-ai

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

serverless-spring-native-cloud-jlove-2021

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

devoxxuk-question-1

Go
1
star
60

spring-boot-workshop

Java
1
star
61

configuration-service

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

devoxxuk-question-5

Java
1
star
63

devoxxuk-question-4

Java
1
star
64

config-repo

Properties used by configuration server in Spring tutorials
1
star
65

devoxxuk-2022-knative-spring-func

Java
1
star
66

devoxxuk-question-3

Java
1
star
67

jakarta-ee-tutorials

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

spring-boot-kubernetes-incontro-devops-2021

Java
1
star
69

cloudevents-spring-boot

Java
1
star
70

java-advent-2020-spring-resilience4j

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

distributed-programming-1

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

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