Tutorial Extras
You can customize the rate limiter further by modifying the application.yml
:
rale4j:
strategies:
bucket4j:
enabled: true
limits:
default:
limit: 200
duration: 120
Monitoring and Metrics
Enable Prometheus metrics for observability:
management:
endpoints:
web:
exposure:
include: prometheus
metrics:
export:
prometheus:
enabled: true
Security Configuration
Configure security settings:
rale4j:
security:
jwt:
enabled: true
oauth2:
enabled: true
apiKey:
enabled: true
rbac:
enabled: true
For more information
Refer to the JavaDocs for more configuration ,list of classes and their usages.