In my existing Spring boot application I am trying to implement rate limit concept. I want to store the data in key value pair in cache like: key will be my user id and value will be no.
For spring boot rate limit I have tried below approach and its not working so I am trying using cache option. Below options I have tried
- Using Bucket concept its working but for all application wise but not for any specific user. Specific like: I want to search the product 5 times in 1 min, If its exceed to 6 th times then it will throw an error. Its working but not for user specific.
- I have tried with IP-address but its not working because for my client side all user having the same IP-address