Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BE] feat: 중복 요청 방지 기능 구현 #781

Merged
merged 29 commits into from
Oct 15, 2024

Commits on Oct 15, 2024

  1. build: 의존성 추가

    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    aadfab0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    0c91821 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    cc5253a View commit details
    Browse the repository at this point in the history
  4. feat: 중복 요청 처리 인터셉터 생성

    - URI, IP, UserAgent 를 기준으로 1초에 3개보다 많은 요청이 오는 경우, 429를 응답한다. 즉, 4번째 요청부터 거부된다.
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    20e266a View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    d06ff0f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    d9eb2d3 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    b5fc73d View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    5008973 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    8544e68 View commit details
    Browse the repository at this point in the history
  10. style: 파일 끝 개행

    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    5386fc6 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    c6e0288 View commit details
    Browse the repository at this point in the history
  12. refactor: 변수명 변경

    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    ad41a00 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    1b0800c View commit details
    Browse the repository at this point in the history
  14. refactor: RedisTemplate 타입과 중복 요청 감지 로직 변경

    - RedisTemplate<String, Object> -> RedisTemplate<String, Long>
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    650d745 View commit details
    Browse the repository at this point in the history
  15. Configuration menu
    Copy the full SHA
    953979d View commit details
    Browse the repository at this point in the history
  16. Configuration menu
    Copy the full SHA
    fb1acdd View commit details
    Browse the repository at this point in the history
  17. refactor: 로그 레벨 수정

    - info -> warn
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    a57be0f View commit details
    Browse the repository at this point in the history
  18. refactor: 중복 요청 검증 로직 개션

    - if null 분기 제거
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    ca3df64 View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    1212bbc View commit details
    Browse the repository at this point in the history
  20. test: 의미 없어진 테스트 삭제

    - 명시적으로 null 인 경우 1로 초기화했던 이전 코드와 달리, setIfAbsent를 통해서 값이 초기화하는 지금은 '1로 초기화되었는지' 검증하기가 어렵다.
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    82cf806 View commit details
    Browse the repository at this point in the history
  21. refactor: 불필요한 지역변수 할당 삭제

    - increment 가 증가한 결과를 바로 반환한다. 이를 사용하도록 수정했다.
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    08ae904 View commit details
    Browse the repository at this point in the history
  22. test: redisTemplate 등록으로 깨지는 테스트 봉합

    - RedisTemplate과 ValueOperations를 모킹한다.
    - 구체적인 인자를 지정하지 않은 stub 문을 수정한다.
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    10eb99b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    3d1e623 View commit details
    Browse the repository at this point in the history
  24. Configuration menu
    Copy the full SHA
    87a4294 View commit details
    Browse the repository at this point in the history
  25. refactor: 예외 메세지 수정

    - 테드 의견 반영
    nayonsoso committed Oct 15, 2024
    Configuration menu
    Copy the full SHA
    2c434ea View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    5c28d2e View commit details
    Browse the repository at this point in the history
  27. Configuration menu
    Copy the full SHA
    ddd7c72 View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    cf7e628 View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    f1a9d38 View commit details
    Browse the repository at this point in the history