YoVDO

Creating Spring Boot Microservices

Offered By: LinkedIn Learning

Tags

Docker Courses Spring Framework Courses Microservices Courses MongoDB Courses Spring Data JPA Courses Spring Cloud Courses

Course Description

Overview

Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Get an intermediate-level overview on how to start creating microservices using the power of the Spring Boot 3 platform.

Syllabus

Introduction
  • Build a RESTful Spring Boot microservice
  • What you should know
  • How to use the exercise files
1. Spring Framework Introduction
  • Inversion of control pattern
  • Spring ApplicationContext and Spring Beans
  • Spring autowiring annotations
  • Challenge
  • Solution
2. Create a Spring Boot Microservice
  • Introduction to Spring Initializr
  • Project setup
  • Build, deploy, and launch the microservice
  • Challenge: Add the Actuator dependency
  • Solution: Add the Actuator dependency
3. Leverage Spring-Data-JPA Repository Interfaces
  • The domain model
  • The persistence entities
  • Declare JPA repositories
  • Spring Data JPA repository dependency injection
  • Invoking the repositories
  • Introduction to Spring Data query methods
  • Challenge: Create a JPQL query method
  • Solution: Create a JPQL query method
4. Expose RESTful API's with Spring Data REST
  • Create APIs with Spring Data REST
  • Mapping API endpoints to repositories
  • Override default behavior
  • Swagger UI
  • Challenge: Modify the URL repository keyword
  • Solution: Modify the URL repository keyword
5. Expose RESTful API's with Spring MVC
  • Choosing the right framework
  • Declaring a new RestController
  • Create the RestController HTTP POST endpoint
  • Create the RestController HTTP GET endpoint
  • Create the RestController HTTP PUT, PATCH, and DELETE endpoints
  • Challenge: Add a PATCH endpoint
  • Solution: Add a PATCH endpoint
6. Best Practices
  • Global exception handling
  • Transaction rollback
  • Add a runtime logger
  • JUnit, Mockito, and SpringBootTest
  • API documentation
7. Dockerized Microservices and Databases
  • Why Docker?
  • Dockerizing a microservice
  • Spring Boot Docker Compose
  • Database versioning with Flyway migrate
8. Create a RESTful MongoDB Microservice
  • Use cases for an image microservice
  • Challenge: Create the Spring Boot MongoDB project
  • Solution: Create the Spring Boot MongoDB project
  • Image file upload microservice
  • Spring Data MongoDB documents and repositories
9. Create an API Gateway with Spring Cloud
  • Use cases for an API gateway microservice
  • Routing to the JPA microservice
  • Routing to the MongoDB microservice
  • Add Spring Security to the gateway
  • Orchestrate with Docker Compose
  • Cleaning up the workspace
Conclusion
  • Next steps

Taught by

Mary Ellen Bowman

Related Courses

Introduction to Cloud Infrastructure Technologies
Linux Foundation via edX
Scalable Microservices with Kubernetes
Google via Udacity
Introduction to Kubernetes
Linux Foundation via edX
Architecting Distributed Cloud Applications
Microsoft via edX
IBM Cloud: Deploying Microservices with Kubernetes
IBM via Coursera