Skip to content

Synchronize the rate limiter code #1

Description

@oscar-besga-panel

In the file
src/main/java/com/springboot/ratelimiter/user/service/impl/RateLimiterServiceImpl.java
Make the part of the code that reads and updates the value on Redis synchronized.
If not, many threads could access at the same time and read the same value, or update an old value that doesn't reflect the current situation.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions