🔄
Spring Cloud Gateway Workshop
  • README
  • Introduction
    • Prerequisites
    • Requirements and Setup
    • Introduction to Spring Cloud Gateway
    • Sample Application Architecture
    • Provided Backend Microservices
  • Intro Lab
    • Reactive Streams with Spring Reactor in Action
  • Hands-On Labs
    • Lab 1: Routing - Configure & Monitor Gateway Routes
    • Lab 2: Resilience - Retry, Circuit Breaking and Rate Limiting
    • Lab 3: Security Part 1 - Authentication with JWT
    • Lab 4: Security Part 2 - Secure Communication with TLS
  • Next Steps
    • Further Gateway Features
Powered by GitBook
On this page
  • Customer Service
  • Product Service
  • Running these Services
  1. Introduction

Provided Backend Microservices

PreviousSample Application ArchitectureNextReactive Streams with Spring Reactor in Action

Last updated 1 year ago

We need some proxied backend services to play around with the Spring Cloud Gateway.

That is why the following spring boot API services are provided as part of the workshop in the /microservices directory:

  • customer-service

  • product-service

Service URLs:

Service
URL
Secure URL (TLS Lab)

Customer Service (Customer API)

http://localhost:9091

--

Product Service (Products API)

http://localhost:9092

https://localhost:8444

Customer Service

The customer service provides a Swagger UI documentation for all provided APIs at .

Product Service

You find the corresponding requests in the provided Postman collection (see directory _/setup/postman) as well.

Running these Services

To run spring boot services you can use the provided starting capabilities of your Java IDE or use the spring boot maven plugin:

mvn spring-boot:run

Both applications support an insecure (unauthenticated) or secure (authentication using JWTs) mode. By default, the insecure mode is used.

To activate the secure mode please start the corresponding application with the secure profile. Either specify the profile in your IDE or use the spring boot maven plugin for this.

mvn spring-boot:run -Dspring-boot.run.profiles=secure

The product service provides a Swagger UI documentation for all provided APIs at .

For more information on running spring boot applications please check the .

Just look into the on how to set the active profile.

http://localhost:9092/swagger-ui.html
Spring Boot reference docs section
Spring Boot reference section
http://localhost:9091/swagger-ui.html
Customer Service API
Product Service API