How shaileshajabe/spring-microservices-demo works
This repository is a Spring microservices demo. The apparent user workflow enters through an API gateway and reaches order, product, or user capabilities; the tree also shows service discovery, S3/SQS integrations, and an order Lambda demo. Source excerpts cover only application startup and CORS, while the README gives no routing or service-call details, so inter-service and integration links are marked unverified rather than asserted.
Main entry points: GatewayServiceApplication.java API gateway · orderservice Order service · productservice Product service · EurekaServerApplication.java Eureka server
Components 10
Entry and discovery
- API gateway
api-gateway/src/main/java/com.example.gatewayservice/GatewayServiceApplication.java - CORS filter
api-gateway/src/main/java/com.example.gatewayservice/CorsGlobalConfiguration.java - Eureka server
Eureka-Server/src/main/java/com.example.eurekaserver/EurekaServerApplication.java
Commerce services
- Order service
order-service/src/main/java/com/example/orderservice - Product service
product-service/src/main/java/com/example/productservice - User service
user-service/src/main/java/com/example/userservice
Cloud integrations
- Order Lambda
java-lambda-demo/src/main/java/com/example/lambdademo/OrderLambdaHandler.java - SQS
- S3
Other components
- API client
Connections 11
- API client → API gateway: sends requests
- API gateway → Order service: routes to
- API gateway → Product service: routes to
- API gateway → User service: routes to
- API gateway → CORS filter: applies filter
- Order service → Eureka server: registers with
- Product service → Eureka server: registers with
- User service → Eureka server: registers with
- Order service → SQS: uses queue
- Order Lambda → SQS: handles messages
- Product service → S3: uses storage