NOTES :: / 831101321021090
#microservicesarchitecture
#javabysvk
#itsp
#springbootbysvk
#microservices
#javabyvivek
1) Service Registry
2) Admin Server
3) Zipkin Server
4) Backend Services (REST APIs)
5) API Gateway
6) Feign Client
7) Config Server
8) Apache Kafka
9) Redis Cache
10) Docker
Working with Spring Cloud API Gateway
1) Create Spring boot application with below dependencies
eureka-client
cloud-gateway
devtools
2) Configure @EnableDiscoveryClient annotation at boot start class
3) Configure API Gateway Routings in application.yml file like below
application.yml for api gatway
spring:
application:
name: 5-Api-GatWay
cloud:
gateway:
routes:
id: hello-web
uri: lb://HELLO-API
predicates:
Path=/v1/**
id: greet-api
uri: lb://GREETINGAPI
predicates:
Path=/v2/*
server:
port: 909