Skip to content
This repository has been archived by the owner on Nov 20, 2020. It is now read-only.

Add throttling parameter #7

Open
fmbenhassine opened this issue Jun 27, 2017 · 0 comments
Open

Add throttling parameter #7

fmbenhassine opened this issue Jun 27, 2017 · 0 comments

Comments

@fmbenhassine
Copy link
Member

Let's consider the following server configuration:

  • worker pool size: 10
  • polling interval: 1h
  • number of requests received since last polling run: 1000

As of version 0.1, the server will query for pending requests. It will get all the 1000 requests and submit them to the executor service. With only 10 worker threads, this may exhaust resources on the server.

It should be possible to limit the number of pending requests to take in each polling run.
This should provide throttling/back pressure on the server side.

@fmbenhassine fmbenhassine added this to the 0.3 milestone Jun 27, 2017
@fmbenhassine fmbenhassine removed this from the 0.3 milestone Nov 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant