-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve request throughput #895
base: main
Are you sure you want to change the base?
Conversation
Testing this showed that the H2 client for |
71e845f
to
806810a
Compare
Tested again on staging and it seems to work, but holding off until undici release the fix for #2704 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me – but since it relies very heavily on the internals on bot-sdk, I'd consider locking matrix-bot-sdk
to the exact version this was developed/tested against, so that a patch release that assumes to do refactoring with no outside changes does not break it.
Larger deployments seem to struggle with many requests against the same host (i.e. the homeserver), so this change replaces the existing request function with a
fetch
-powered function. This also enables support for HTTP/2 / pipelining so in theory we should go a bit faster than at present.