2
votes

I am building an Api gateway in springboot with microservices and would like to implement all features/principles of API Gateway

  1. Authentication/Authorization
  2. Routing (Able to route using spirng cloud gateway)
  3. Load balancing (Netflix Ribbon)
  4. Cache Management
  5. Rate Limit
  6. API Performance monitioring

I have explored to implement authentication/autherization using OAuth2 but couldn't find suiltable solution.

Looking for suggestions or examples to implement the features.

Gone thru https://github.com/TechPrimers/spring-security-oauth-example, its nice

1

1 Answers

3
votes

You can refer this repo for most of your requirement. I have added security using Spring security. Zuul is used for gateway service. Project also include Eureka for service discovery. Implementing Caching should be fairly simple with this repo. You can also find other repositories in my GitHub profile which will help you implement remaining features using spring.