Skip to content

In http-server, give priority to read requests #2

@ghost

Description

In mostly-read servers, in order to allow the server to keep answer to its clients, it would be helpful to give the read requests (e.g. GET or HEAD) some priority over the update requests (e.g. PUT, POST, DELETE).

Suggestion for implementation: in the availability filter, add threshold for the update requests, so if the number of available thread exceeds this threshold, the server will reject the update requests with SERVER IS BUSY HTTP status (503), as currently done when there are no available thread at all. For read requests, the server will keep the current behavior.

Other solution may be to somehow split the update requests and the read requests to two different thread pool.

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