Piped icon indicating copy to clipboard operation
Piped copied to clipboard

Fallback instances list

Open Dunexus opened this issue 1 year ago • 4 comments

Describe the feature

Allow selecting an ordered list of instances. If one throws an error, try the next automatically in the background.

Why would this be useful to add?

By selecting multiple instances, it adds redundancy and user face error less often.

Concept(s)

No response

Additional context

No response

Acknowledgements

  • [X] I have searched the existing issues and this is NOT a duplicate or related to another open issue.
  • [X] I have written a short but informative title.
  • [X] I filled out all of the requested information in this form.

Dunexus avatar Nov 14 '23 09:11 Dunexus

The extension Libredirect does exactly that.

SebiTalent04 avatar Nov 18 '23 14:11 SebiTalent04

The extension Libredirect does exactly that. @SebiTalent04

If you're talking about this libredirect, I'm not sure how you mean.

If I understand the problem correctly, that instances fall over, it would be nice to have a fallback list so you dont have to go to preferences

For me, all but the "official" instance have horrible uptime, with the official one having bad latency, if this were to be implemented it would also be nice to, if it's taking +5s to load a video, to attempt a different instance at the same time.

SollyBunny avatar Nov 20 '23 16:11 SollyBunny

Yes, I have also implemented this in my player for error casss. However for the 'loading too long' part was very difficult for me to implement I tried many tricks but eventually had to remove auto switching for slow loading. The main reason because there is no stable way to tell if it's the instance that is slow or the user's network being slow or just the server warming up.

n-ce avatar Nov 25 '23 06:11 n-ce

The extension Libredirect does exactly that.

I'm pretty sure he means something among the terms of "built-in" and "automatic".

And yes, I too use the extension.

I'd personally love to have a built-in meta-solution that switches known instances every 10 seconds in case of errors.

Probably ping-dependent.

Yes, I have also implemented this in my player for error casss. However for the 'loading too long' part was very difficult for me to implement I tried many tricks but eventually had to remove auto switching for slow loading. The main reason because there is no stable way to tell if it's the instance that is slow or the user's network being slow or just the server warming up.

Isn't it easier just to have a preconfigured option in the settings that the max wait time is 10/15 seconds?

SecularSteve avatar Jan 29 '24 20:01 SecularSteve

That's out of scope for the project, Piped is meant to be used per instance due to the fact that user data like subscriptions and playlists are stored on those.

For other use cases external addons like LibRedirect should be the ones cycling between different instances.

Bnyro avatar May 04 '24 14:05 Bnyro

Piped is meant to be used per instance

Piped frontend and other frontends such as LibreTube allow to choose a different instance for authentication. Some instance even have registration disabled and are only meant to provide video playback.

Of course, instances for authentication are not interchangeable as there is no federation of accounts but instances for retrieving videos and medata are. Being able to cycle between different instances based on the liveness of the current instance could help reducing errors to the end user.

Dunexus avatar May 09 '24 13:05 Dunexus