Skip to content

performance: find a way to stream the body into the parser #88

@syphar

Description

@syphar

with ~150 lines of logs we "only" get around 2k RPS, with an empty body we get 50k RPS for the web-server component.

I'm not sure if this is possible with axum, but it would be good if we wouldn't need to convert the body to a byte buffer in the web handler.

So either pass the body to the background task and buffer it there, or even convert the parser into a streaming parser.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions