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

Browser limits on concurrent HTTP requests vs. parallel signaling #129

Open
noahlevenson opened this issue Mar 21, 2023 · 0 comments
Open

Comments

@noahlevenson
Copy link
Contributor

Browsers limit the number of simultaneous HTTP requests you can make to a given domain. In Chrome, we observe that the limit is 6. This means that your widget can only open 6 concurrent HTTP requests to Freddie.

So when we set widget concurrency N > 6, the widget cannot advertise all N connections in parallel -- instead, it will advertise and signal its first 6 connections, then it will advertise and signal the next 6, and repeat as necessary.

The browser limit is applied at the level of the browser (not the tab), so users who have opened multiple widgets will see this serialized behavior roll over across all widgets in each tab: the first widget will advertise and signal until it no longer needs to create HTTP requests, then the second widget, then the third...

The behavior is self-correcting, but it is suboptimal. Is there a workaround?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant