Understanding Firebase Storage and SPEED.

690 views
Skip to first unread message

SHAI L

unread,
Apr 21, 2020, 3:58:25 PM4/21/20
to Firebase Google Group
There are two ways to download from the Storage-  public link (HTTP://) or google cloud (gs://)
If we use the "gs" links to download 10 photos from Firebase storage it'll take forever (0.6 seconds to download one small pic 40kb)
because firebase checks the authentication rules for a gs link which is good but very slow. 
If we use the public HTTP links this is much faster, which is how it should be, but then if someone gets that HTTP link to the picture is not private.

How do people use firebase storage to download multiple private pictures in realtime?
It doesn't make sense to wait such a long time to check authentication or whatever processing for every single pic when using gs links
I want to show a photos gallery on my app, can you imagine waiting 6 seconds just to show 10 small pics?
Is there a way to check it one time for a folder?

*I can store the links (HTTP or gs) on the user real-time DB with rules, but then I expose the HTTP link after authentication

Reply all
Reply to author
Forward
0 new messages