Skip to content
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

refactor(client): remove MaxSlots limit #1377

Merged
merged 2 commits into from
May 24, 2024
Merged

Conversation

niklasad1
Copy link
Member

Close #1374

The rationale behind this is that the "ws-client/async-client" already has a bounded channel which provides backpressure and it doesn't make sense to use slot limit to throw an error if it's exceeded.

For the http client it's another story where it's handled by the hyper threadpool and we have no channel that provides backpressure.

However, it's better that users themselves decide how many concurrent calls that they want...

@niklasad1 niklasad1 requested a review from a team as a code owner May 23, 2024 20:51
Copy link

@nazar-pc nazar-pc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was quick, thanks!
Changes make sense to me, channel backpressure is exactly what I relied on and was surprised to get max slots error.

@niklasad1 niklasad1 added the breaking change Breaking change in the public APIs label May 24, 2024
Copy link
Collaborator

@jsdw jsdw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@niklasad1 niklasad1 merged commit e2a0c9f into master May 24, 2024
11 checks passed
@niklasad1 niklasad1 deleted the na-remove-slot-limit branch May 24, 2024 11:23
@nazar-pc
Copy link

When is new release planned? I'd love to upgrade to use this

@niklasad1
Copy link
Member Author

Hey, we are planning a new breaking release 0.23/1.0 soon hopefully next week but it has some big changes such as moving to hyper v1.0 and I need to do some manually testing on it....

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breaking change Breaking change in the public APIs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use async backpressure instead of MaxSlotsExceeded error
4 participants