Skip to content

Eclipse Vert.x Rate Limiter(Throttling), configurable in-memory rate limiter

Notifications You must be signed in to change notification settings

badrazizi/vertx-rate-limiter

Repository files navigation

Eclipse Vert.x Rate Limiter

configurable in-memory rate limiter

val clients: Storage = Storage.newInstance()
val throttling: ThrottleImpl = Throttl
        .getThrottling(vertx, null, clients)
        .includeHeaders(true) // will add rate limit headers to the response.
        .throttlingRequest(30) // requests limit.
        .throttlingTime(60) // time limit.
        .throttlingTimeUnit(TimeUnit.SECONDS) // time unit.
        
val router = throttling.getRouter()

About

Eclipse Vert.x Rate Limiter(Throttling), configurable in-memory rate limiter

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages