Skip to content

[Phase2] Issue #1: RateLimiterService 인터페이스 생성 #1

Description

@724thomas

Phase 목표: 핵심 인터페이스 및 설정 구현

목표: 모든 Rate Limiter 알고리즘의 공통 인터페이스 정의

작업 내용

  • RateLimiterService 인터페이스 생성
  • boolean allowRequest(String userId) 메소드 정의
  • void reset(String userId) 메소드 정의 (테스트용)
  • Map<String, Object> getStats(String userId) 메소드 정의 (모니터링용)

완료 기준

  • 인터페이스가 올바르게 정의됨
  • 각 메소드의 Javadoc 작성
  • 다른 Service들이 구현할 수 있는 명확한 계약 정의

참고 사항

  • allowRequest(): Rate Limit 체크 후 허용/거부 반환
  • reset(): 테스트 시 사용자 상태 초기화용
  • getStats(): 모니터링/디버깅용 상태 정보 반환

파일 위치

src/main/java/com/example/demo/ratelimiter/service/RateLimiterService.java

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions