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

Implement API to allow sharing between instances #273

Open
mayeaux opened this issue Apr 30, 2020 · 3 comments
Open

Implement API to allow sharing between instances #273

mayeaux opened this issue Apr 30, 2020 · 3 comments

Comments

@mayeaux
Copy link
Owner

mayeaux commented Apr 30, 2020

You should be able to have other instances 'trusted' whereby if your bandwidth is being tapped out you can add the same upload to another instance's server and use it as the CDN.

Only tough part is implementing the API for calculating max bandwidth use and current bandwidth use and from there you can build an algorithm for 'offsetting' those uploads.

@RossComputerGuy
Copy link
Contributor

Here's how I think getting the bandwidth should be done. Hook into the server's connection event and store the most recent packets in a set amount of time (use the client connection's data event). With that, find the total amount of data within the current second.

@RossComputerGuy
Copy link
Contributor

Also, store the highest amount of usages to find what might be the max bandwidth.

@deleteBigTech
Copy link

deleteBigTech commented May 1, 2020

I thought about this 2 h ago in the shower ahahahah ... and now I just noticed this when i was about to open an issue (a less technical one :)). Awesome idea champs - it will make nodetube more decentralized, especially for non-web developers like me :)

@mayeaux mayeaux changed the title Implement API for allow sharing between instances Implement API to allow sharing between instances May 1, 2020
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

3 participants