[Important proposal] Decentralized or Federated snap store operation structure similar ubuntu mirrors

Bug #1916392 reported by නොදන්නා
48
This bug affects 10 people
Affects Status Importance Assigned to Milestone
Snap Store Server
New
Wishlist
Unassigned
snapd
Triaged
Wishlist
Unassigned

Bug Description

Updated according to comments:

**Where it applies?**
Snap CLI

**Where it does not apply**
- Snapcraft Website / Developer account
- Snap Desktop Client / Gnome software
(Desktop client is a GUI for display software lists, select to download / uninstall them and this is not important for most linux users or all power users but downloads should work using configured mirror)

------------

About Snap CLI
CLI is our traditional method for install softwares.

e.g. sudo apt install gimp
snap then, sudo snap install gimp

You can add support for global mirrors and suggest for interested parties to register

https://launchpad.net/ubuntu/+archivemirrors
For example: India mirror
- APT mirror - mirror.hosted-domain.in
- Snap mirror - snap-mirror.hosted-domain.in

Benefits:
* Reduce server maintain costs (+snapstore day by day become popular)
* Most fastest downloads when connect to regional servers
* Users don't need connect to overseas servers or centralized environment and privacy friendly
* About organizations, enterprises use-cases - I believe this will be good solution for them to keep head out from overseas networks and let everyone to get apps from snap.
(and for companies that don't connect their systems to public internet)

Private stores/ Brand store - You can get benefit from this feature request to fulfill many expected desires

(Related request about mirror option: https://bugs.launchpad.net/snapstore-server/+bug/1767118, not only for that country; other countries also experience same issue. basically mirror apt downloads more faster than to snap store)

-----------
---------------------

[Un-related] **What happen to metrics?**
You can get them as how it works currently. It's not related to this.
(Or if you like you can find someway to implement it to work with mirrors custom sub-domain to sync under specific interval to main server.

[Un-related] **Can we implement this to desktop client?**
I don't know. again, it's upto you. You'll have to improve to load images etc using mirror servers domains.

images and static contents - snapcdn-mirror.region.org

[Un-related] (Additional desktop client facilities)
Sign-in - As i know it use for get access to private and unlisted apps., it need connect to canonical servers directly for provide access to account and then able to match(retrieve) ID of particular app then client know where has it on mirror server to download
 or if you decide, private/unlisted apps are confidential then avoid sync those apps to mirror servers and let to download from main servers as now.
(Basically sign-in option in client only use by small amount of users for certain purposes when compare with total snap store users)

description: updated
description: updated
description: updated
Revision history for this message
Lukas Novotny (lukanty) wrote :

This is an essential (must-have) facility; please try to go ahead to implement that soon.

I work at a popular company (prefer not say name due below details) and they removed ubuntu store (Aka snap store) since it started to come with ubuntu image. we only able to install softwares from mirrors or get from local distribution server.

Personally i know many individuals also don't like to snap store and some're keeping radar turned on for better alternatives

Hatsune (hatsune)
tags: added: design feature performance updown
summary: - [Important proposal] Decentralize snap store operation structure as
- ubuntu mirrors
+ [Important proposal] Decentralized* or Federated snap store operation
+ structure as ubuntu *mirrors
Revision history for this message
Martin S (martin-sa) wrote : Re: [Important proposal] Decentralized* or Federated snap store operation structure as ubuntu *mirrors

@aurora i think it's good to revert title to the original; it seems good. actually we want to achieve this either by decentralized or federated way without letting our end devices connect to centralized or single organization manage environment. Otherhand, that helps to have better bandwidth when download, update snaps

Unfortunately, canonical quickly jumped into centralized structure (as google store, windows store as everyone do) when design snap store although they could follow the traditional mirrors methodology for snaps (while simply opt out metrics for mirrors unless end devices administrators decide for connect to main servers) however your suggestions are really great that express effort to keep snap platform existing features.

Revision history for this message
Hatsune (hatsune) wrote :

There's something to say about snapd and snap store client (GUI). that huge feature request doesn't bring any sooner hope.

We install apps using CLI (apt) and there's Snap CLI

- bring mirrors facility for snapcraft (whether use CLI or desktop client, it'll connect to selected servers)
(that is the goal of this feature request)

**Snap CLI**
https://launchpad.net/snapd

sudo snap install nextcloud
(it connect to mirrors and download the snap and manual updates as well)

In this case, no gui contents as client-app (no images, videos etc) and you can provide option to opt in-out metrics through other settings modification

**Snap Store**
(https://launchpad.net/snap-store-desktop)

It will connect to mirror servers for downloads/updates but gui contents (images, videos,...), metrics, and other data fetch using existing method (centralized servers). just snap store/ gnome software is a different thing

summary: - [Important proposal] Decentralized* or Federated snap store operation
- structure as ubuntu *mirrors
+ [Important proposal] Decentralized or Federated snap store operation
+ structure similar ubuntu mirrors
description: updated
description: updated
description: updated
Daniel Manrique (roadmr)
Changed in snapstore-server:
importance: Undecided → Wishlist
description: updated
description: updated
description: updated
Revision history for this message
Ihor Hordiichuk (hordiichuk) wrote :

I also count on this. This facility will be awesome

Revision history for this message
Ihor Hordiichuk (hordiichuk) wrote :

@Aurora You haven't realized well about #3 comment, this method usable with snap-store gui client as well because it can download snaps from mirror servers. You must re-correct FR description -> "excluding snap-desktop-client"

Revision history for this message
නොදන්නා (aunknown) wrote :

@hordiichuk Thanks for the details. Done.

description: updated
Changed in snapd:
importance: Undecided → Wishlist
description: updated
Changed in snapd:
status: New → Triaged
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.