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

Feature: Static Instance to serve Read-Only API Data #66

Open
eduncan911 opened this issue May 6, 2024 · 3 comments
Open

Feature: Static Instance to serve Read-Only API Data #66

eduncan911 opened this issue May 6, 2024 · 3 comments

Comments

@eduncan911
Copy link

eduncan911 commented May 6, 2024

I'm reading through the code and documentation, and most of the dynamic nature seems to be around the authentication - not the actual serving of user data (besides the internal retrievals and real-time parsing, that is all negated when statically hosted as we process ahead of time).

I am proposing a READ ONLY structure to the PDS API. One that we could flush out with 100s of directories and index.html files in an S3 bucket or Github pages, that the network can just pull data from.

It's public data. There's no reason we should limiting access to it behind all of these PDS authentication protocols, as well as requiring unnecessary server-side processing in real-time.

Want an ECO angle? This is extremely wasteful for the planet, to process the same Public data over and over again, on each request. Processing authentication protocols for, again, public data. Static hosting has proven to reduce massive CPU processing in data centers (massive power usage drop, less switching processing of traffic) simply by parsing once ahead of time, and storing the Public json/html/js result to serve statically at a CDN. As the world explodes with PDS, this may be the time to cut the carbon footprint.

The goal? The ability for an end-user to setup a PDS to serve static content on the network. Like my BlueSky posts, and posting to my static blog.

I believe we should not have to setup a dedicated VM, just to serve static public content on these networks. A dynamic AppView? Absolutely for security and moderation. However, not the PDS static public data.

If I am missing a security angle, please elaborate and we can close the issue.

@bnewbold
Copy link
Contributor

bnewbold commented May 7, 2024

Yup! You can find some earlier discussion of these ideas here:

@eduncan911
Copy link
Author

Should I leave this open for discussion or tracking, or close?

@bnewbold
Copy link
Contributor

It is good signal/feedback that you asked for this, and wrote out a bunch of helpful details, don't want to lose that. Maybe best if you copy your text, with a note, to one of the existing threads, and then close this issue?

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