{"action":"created","issue":{"url":"https://api.github.com/repos/resilience4j/resilience4j/issues/174","repository_url":"https://api.github.com/repos/resilience4j/resilience4j","labels_url":"https://api.github.com/repos/resilience4j/resilience4j/issues/174/labels{/name}","comments_url":"https://api.github.com/repos/resilience4j/resilience4j/issues/174/comments","events_url":"https://api.github.com/repos/resilience4j/resilience4j/issues/174/events","html_url":"https://github.com/resilience4j/resilience4j/issues/174","id":274964778,"number":174,"title":"Possible to create a dynamic rate limiter?","user":{"login":"efenderbosch","id":1494437,"avatar_url":"https://avatars1.githubusercontent.com/u/1494437?v=4","gravatar_id":"","url":"https://api.github.com/users/efenderbosch","html_url":"https://github.com/efenderbosch","followers_url":"https://api.github.com/users/efenderbosch/followers","following_url":"https://api.github.com/users/efenderbosch/following{/other_user}","gists_url":"https://api.github.com/users/efenderbosch/gists{/gist_id}","starred_url":"https://api.github.com/users/efenderbosch/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/efenderbosch/subscriptions","organizations_url":"https://api.github.com/users/efenderbosch/orgs","repos_url":"https://api.github.com/users/efenderbosch/repos","events_url":"https://api.github.com/users/efenderbosch/events{/privacy}","received_events_url":"https://api.github.com/users/efenderbosch/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-11-17T19:04:16Z","updated_at":"2017-11-26T16:01:42Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"Some APIs have strict limits. However, we need to put a rate limit on API calls to servers of unknown CPU/RAM. We can probably write a plugin to get stats reported back to us, and scale the rate limit up/down, but then we need to modify the existing ``RateLimiter``. ``RateLimiterConfig`` doesn't have any mutator methods.\r\n\r\nCould setters be added for ``timeoutDuration``,  ``limitRefreshPeriod`` and ``limitForPeriod``?\r\n\r\nAlternatively, maybe something like a ``RateLimiterScalingStrategy`` and the default would be ``NoScalingStrategy`` that duplicates the current behavior. Then we could write a custom implementation?"},"comment":{"url":"https://api.github.com/repos/resilience4j/resilience4j/issues/comments/347018746","html_url":"https://github.com/resilience4j/resilience4j/issues/174#issuecomment-347018746","issue_url":"https://api.github.com/repos/resilience4j/resilience4j/issues/174","id":347018746,"user":{"login":"storozhukBM","id":3532750,"avatar_url":"https://avatars3.githubusercontent.com/u/3532750?v=4","gravatar_id":"","url":"https://api.github.com/users/storozhukBM","html_url":"https://github.com/storozhukBM","followers_url":"https://api.github.com/users/storozhukBM/followers","following_url":"https://api.github.com/users/storozhukBM/following{/other_user}","gists_url":"https://api.github.com/users/storozhukBM/gists{/gist_id}","starred_url":"https://api.github.com/users/storozhukBM/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/storozhukBM/subscriptions","organizations_url":"https://api.github.com/users/storozhukBM/orgs","repos_url":"https://api.github.com/users/storozhukBM/repos","events_url":"https://api.github.com/users/storozhukBM/events{/privacy}","received_events_url":"https://api.github.com/users/storozhukBM/received_events","type":"User","site_admin":false},"created_at":"2017-11-26T16:01:42Z","updated_at":"2017-11-26T16:01:42Z","author_association":"OWNER","body":"Hi @efenderbosch ,\r\nPlease checkout PR #177. I've added few methods for `RateLimiter` that should satisfy your use cases. If such API is OK for you, I'll add similar functionality to bulkhead component and it will be delivered in scope of the next release."}}
{"actor":{"display_login":"storozhukBM"}}