-
Notifications
You must be signed in to change notification settings - Fork 10.4k
Use the default pipe options for backpressure #21001
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
Conversation
- This controls memory so clients aren't easily overwhelmed. With the changes made to Pipe to no longer throw if the pause threshold is exceeded makes this work well. Contributes to #17797
src/SignalR/clients/csharp/Http.Connections.Client/src/Internal/ServerSentEventsTransport.cs
Show resolved
Hide resolved
- Remove PipeReaderFactory - Implement cancellation in SSE
/azp run aspnetcore-ci (Build Tests: Helix x64) |
No pipelines are associated with this pull request. |
/azp run aspnetcore-ci Helix x64) |
No pipelines are associated with this pull request. |
/azp run aspnetcore-ci Helix x64 |
No pipelines are associated with this pull request. |
/azp run aspnetcore-ci (Build Tests: Helix x64) |
No pipelines are associated with this pull request. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Are we not going to add the option in this PR? |
I chose not to but I can. That's why I wrote contributes to vs fixes. The option isn't as important anymore because it's no longer a hard limit in pipes. |
Does this affect throughput significantly? |
In this test it improves throughput since the GC is basically bringing the application to its knees. I haven't run any benchmarks though. |
BeforeCounters:
Benchmark:
AfterCounters:
Benchmark:
Slightly slower on our broadcast benchmark same on echo. |
/azp run |
Azure Pipelines successfully started running 2 pipeline(s). |
Contributes to #17797
Here's the sample from #20654
Before:
After: