I set up a microservice architecture based on jhipster, composed of a gateway service (spring cloud gatway) 8080 an 8081 microservice i need to use bucket4j library to limit api calls but based on subscription plan and not the user login
1
-
As you have noted,the JHipster gateway is built on top of Spring Cloud Gateway since JHipster 7.0.0. So you could find many resources about how to implement your own rules to limit rate. Your main point is how to pass the subscription plan to the rule, one possible way could be to extend the User class.– Gaël MarziouMay 23 at 21:53
Add a comment
|