Skip to content

[Phase2] Issue #3: 설정 관리 시스템 구현 #3

Description

@724thomas

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

목표: YAML 기반 설정 관리 및 Spring Boot 연동

작업 내용

  • application.yaml 구조 설계
  • RateLimiterProperties 클래스 구현 (@ConfigurationProperties)
  • Lombok @Data 어노테이션 활용
  • 알고리즘별 개별 설정 지원

완료 기준

  • YAML 설정이 자동으로 Java 객체에 매핑
  • 각 알고리즘별 설정 분리
  • Spring Boot 자동 설정 연동

YAML 구조 예시

rate-limiter:
  enabled: true
  default-algorithm: token-bucket
  algorithms:
    token-bucket:
      capacity: 100
      refill-rate: 10
    fixed-window:
      limit: 1000
      window-size: 3600

파일 위치

  • src/main/resources/application.yaml
  • src/main/java/com/example/demo/ratelimiter/config/RateLimiterProperties.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