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

NP batching/streaming service #44393

Closed
4 tasks done
lukasolson opened this issue Aug 29, 2019 · 2 comments
Closed
4 tasks done

NP batching/streaming service #44393

lukasolson opened this issue Aug 29, 2019 · 2 comments
Assignees
Labels
Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) Feature:New Platform

Comments

@lukasolson
Copy link
Member

lukasolson commented Aug 29, 2019

Browsers limit the number of HTTP connections with the same domain name. Most modern browsers limit this to six connections. In practice, this means that only six parallel requests can occur simultaneously, with subsequent requests being queued up until one of the previous requests has responded.

This causes issues in Kibana where having more than six parallel requests is quite common (e.g. having a Dashboard with more than six panels that each make a request to Kibana).

This problem could be solved by introducing a batching service/endpoint, which would accept multiple "requests", then use chunked transfer encoding to stream the responses as they become available.

This is already something that is being done in Canvas (#32027). It would be nice if this were a service provided by core so that any application could take advantage of this and avoid hitting the connection limit.

Todo

Possible follow-up:

  • Use bfetch for esaggs Expressions function
  • Use bfetch in Search services.

Related


Parent issue: #46909

@lukasolson lukasolson added discuss Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc Feature:New Platform labels Aug 29, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-platform

@lukasolson lukasolson mentioned this issue Nov 21, 2019
2 tasks
@streamich streamich mentioned this issue Nov 21, 2019
20 tasks
This was referenced Dec 11, 2019
@streamich streamich self-assigned this Dec 12, 2019
@streamich streamich changed the title [Discuss] Add NP core HTTP batching/streaming service Add NP HTTP batching/streaming service Dec 12, 2019
@streamich streamich changed the title Add NP HTTP batching/streaming service NP HTTP batching/streaming service Dec 12, 2019
@streamich streamich added Team:AppArch and removed Team:Core Core services & architecture: plugins, logging, config, saved objects, http, ES client, i18n, etc discuss labels Dec 12, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-app-arch (Team:AppArch)

@streamich streamich added the Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) label Dec 12, 2019
@streamich streamich mentioned this issue Jan 7, 2020
3 tasks
@streamich streamich changed the title NP HTTP batching/streaming service NP batching/streaming service Jan 7, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:ExpressionLanguage Interpreter expression language (aka canvas pipeline) Feature:New Platform
Projects
None yet
Development

No branches or pull requests

3 participants