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

Add throttling parameter #7

@fmbenhassine

Description

@fmbenhassine

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.

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