sivaprasadreddy/spring-boot-microservices-course
Über uns
YouTube Spring Boot Microservices Course Application
Lernen und BildungGemessener Sternzuwachs
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +1
- in 1 month
- Verlauf wird gesammelt
Nettoänderungen in überlappenden Zeiträumen, keine Tagessummen. Fehlende Messwerte bleiben leer. Sterne zeigen Interesse, nicht Qualität.
README.md
OriginalSpring Boot Microservices Course
This repository contains the source code for the Spring Boot Microservices Course.
![]()
[!IMPORTANT]
Current source code is updated to the latest version of Spring Boot. Check 'youtube' branch for the source code demonstrated in the original video series.
We will build a BookStore application using Spring Boot, Spring Cloud, and Docker.

Modules
catalog-service: This service provides REST API for managing catalog of products(books).
TechStack: Spring Boot, Spring Data JPA, PostgreSQL
order-service: This service provides the REST API for managing orders and publishes order events to the message broker.
TechStack: Spring Boot, Spring Security OAuth2, Keycloak, Spring Data JPA, PostgreSQL, RabbitMQ
notification-service: This service listens to the order events and sends notifications to the users.
TechStack: Spring Boot, RabbitMQ
api-gateway: This service is an API Gateway to the internal backend services (catalog-service, order-service).
TechStack: Spring Boot, Spring Cloud Gateway
bookstore-webapp: This is the customer-facing web application where customers can browse the catalog, place orders, and view their order details.
TechStack: Spring Boot, Spring Security OAuth2, Keycloak, Thymeleaf, Alpine.js, Bootstrap
Learning Objectives
- Building Spring Boot REST APIs
- Database Persistence using Spring Data JPA, Postgres, Flyway
- Event Driven Async Communication using RabbitMQ
- Implementing OAuth2-based Security using Spring Security and Keycloak
- Implementing API Gateway using Spring Cloud Gateway
- Implementing Resiliency using Resilience4j
- Job Scheduling with ShedLock-based distributed Locking
- Using RestClient, Declarative HTTP Interfaces to invoke other APIs
- Creating Aggregated Swagger Documentation at API Gateway
- Local Development Setup using Docker, Docker Compose and Testcontainers
- Testing using JUnit 5, RestAssured, Testcontainers, Awaitility, WireMock
- Building a Web Application using Thymeleaf, Alpine.js, Bootstrap
- Monitoring & Observability using Grafana, Prometheus, Loki, Tempo
Local Development Setup
- Install Java 25. Recommend using SDKMAN for managing Java versions.
- Install Docker Desktop
- Install IntelliJ IDEA or any of your favorite IDE
- Install Taskfile utility
- Install Postman or any REST Client
$ curl -s "https://get.sdkman.io" | bash
$ source "$HOME/.sdkman/bin/sdkman-init.sh"
$ sdk install java 25-tem
$ sdk install maven
$ brew install go-task
(or)
$ go install github.com/go-task/task/v3/cmd/task@latest
Verify the prerequisites
$ java -version
$ docker info
$ docker compose version
$ task --version
How to run the application locally?
# Clone the repository:
$ git clone https://github.com/sivaprasadreddy/spring-boot-microservices-course.git
$ cd spring-boot-microservices-course
Option 1: Start the infra components using Docker Compose and run microservices from IDE
Start all the required services such as PostgreSQL, RabbitMQ, Keycloak, etc.:
$ task start_infraStart individual microservices: You can start individual microservices by running their respective main entrypoint classes from IDE:
ApiGatewayApplication,CatalogServiceApplication,OrderServiceApplication,NotificationServiceApplication,BookstoreWebappApplicationAccess the application at http://localhost:8080
- Catalog Service PostgreSQL DB:
jdbc:postgresql://localhost:15432/postgreswith credentialspostgres/postgres - Order Service PostgreSQL DB:
jdbc:postgresql://localhost:25433/postgreswith credentialspostgres/postgres - RabbitMQ:
http://localhost:15672with credentialsguest/guest - Keycloak:
http://localhost:9191with credentialsadmin/admin1234 - MailHog:
http://localhost:8025
Option 2: Working on individual microservices
Each microservice has Testcontainers based configuration to start the required services such as PostgreSQL, RabbitMQ, Keycloak, etc automatically.
You can start individual microservices by running their respective Test main entrypoint classes from IDE: TestCatalogServiceApplication, TestOrderServiceApplication, TestNotificationServiceApplication, ApiGatewayApplication, BookstoreWebappApplication.
Option 3: Run all the infra components and applications using Docker Compose
Start all:
$ task startAccess the application at http://localhost:8080
Run the application with Observability Stack
- Start Grafana, Tempo, Loki, Prometheus using
$ task start_monitoring - Set
MANAGEMENT_TRACING_EXPORT_ENABLED=trueindeployment/docker-compose/.envfile - Restart the application using
$ task restart
Now you can access the observability stack using the following URLs:
- Access Grafana at http://localhost:3000
- Access Prometheus at http://localhost:9090
Other Learning Resources
Ähnliche Projekte entdecken
Wird geladen…