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

Research factors that influence Gateway TTFB #1

Open
iand opened this issue Apr 8, 2022 · 3 comments
Open

Research factors that influence Gateway TTFB #1

iand opened this issue Apr 8, 2022 · 3 comments
Assignees

Comments

@iand
Copy link
Collaborator

iand commented Apr 8, 2022

Research factors that that can be used to form testable hypotheses. These can then become candidate projects to improve performance.

@iand iand self-assigned this Apr 8, 2022
@JesseXie
Copy link

JesseXie commented Apr 8, 2022

what is the findings?

@iand
Copy link
Collaborator Author

iand commented Apr 11, 2022

They are included in the work plan. Draft is internal to PL at the moment but will be made public when approved (see here)

@iand
Copy link
Collaborator Author

iand commented Apr 26, 2022

Based on this analysis of the GET request flow in go-ipfs the primary factors influencing gateway TTFB are:

  • the number of intermediate nodes that must be read to locate the cid of the requested path
  • whether any required block is present in the local blockstore
  • the response time of the local blockstore to locate and read blocks
  • the time spent locating the provider of a block using the dht
  • the time spent connecting to and reading from a block provider
  • the time spent enumerating the contents of a directory if a directory listing needs to be served
  • the time taken to validate the existence of the requested block (cache validation/etag check)

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

2 participants