-
Notifications
You must be signed in to change notification settings - Fork 107
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
Create infrastructure for testing and validating retrieval reliability with Helia #275
Comments
@whizzzkid FYI that the service-worker gateway version should be secondary to the nodejs work. |
Thanks @SgtPooki, phase 1 is 95% there. Lemme send you a PR and open a chat with probelab to understand if ghcr would work. |
@SgtPooki can I get a review when you have a minute? |
@SgtPooki @BigLep I think the service worker gateway scope can be extended, a bit more planning can help us have a gateway in the browser, for:
Both companion and tiros can then directly hit Possible Workingusing helia.io to serve content to the end usersequenceDiagram
actor User
participant Helia.io
participant ServiceWorker
User->>Helia.io: Get `/ip[fn]s/*`
Helia.io->>Helia.io: Serve a static SW install page.
Helia.io->>ServiceWorker: Activate SW, Intercept All `helia.io/ip[fn]s/*` requests
ServiceWorker->>Helia.io: Activation Done
Helia.io->>Helia.io: Refresh so that SW catches the page.
Helia.io->>ServiceWorker: Fetch `helia.io/ip[fn]s/*`
ServiceWorker->>User: Content is Served!
Notes:
Using helia.io to retrieve content on any website.sequenceDiagram
actor User
participant Domain.com
participant Helia.io
participant ServiceWorker
User->>Domain.com: Call
Domain.com->>Helia.io: /init.js
Helia.io->>Domain.com: Validate if SW exists otherwise, Load /install.html in <iframe>
Domain.com->>Helia.io: Load /install.html
Helia.io->>ServiceWorker: Activate SW, Intercept All `helia.io/ip[fn]s/*` requests
ServiceWorker->>Helia.io: Activation Done
Helia.io->>Domain.com: Notify Domain.com load completed.
Domain.com->>Helia.io: Fetch `helia.io/ip[fn]s/*`
ServiceWorker->>Domain.com: Serve Content
Domain.com->>User: Content is Served!
Notes:
|
Thanks for sharing @whizzzkid . I agree there is something here. I'd have to think with a clear head whether this should live under helia.io. What I do think worth doing is showing the diagram of interaction for the Tiros case. Ideally the Probelab Tiros case has no dependency on software outside of what is distributed in the docker image. It shouldn't be impacted by whether helia.io is up for fetching Once we have worked out the kinds there, we look at expanding further. |
A few comments in circling back on this:
|
deployed to probelab tiros and we're getting numbers now, but there are some remaining issues.
We can get these numbers but would need to work with probelab on deploying a second helia version. we should probably make sure we resolve any crashing issues first
This is being tracked in this issue currently but we should spin that out.
Sounds good. |
FYI that i'm moving the service worker discussions to ipfs/helia-http-gateway#56 and out of this issue so we can call this done when the dockerized node-side version of helia-http-gateway is done |
Thanks @SgtPooki. To be precise and make sure we're on the same page, the remaining tasks for this issue to me are:
Agreed? |
@BigLep I'll have to chat with @dennis-tra about #4, but it's possible to execute those different scenarios now. Displaying those on the website may be a different story (the graph could get too crowded, but maybe I can help with the display website? Also, there's a question of cost for running 3 helia scenarios instead of just 1. |
@BigLep FYI that all three separate instances are running in tiros now. Some updates:
|
discussed in https://pl-strflt.notion.site/Reliable-retrieval-monitoring-project-plan-formation-ce2190c2ad054a44b8d0fca7d2cf6006?pvs=4
Tasks
The text was updated successfully, but these errors were encountered: