On Mon, Aug 4, 2014 at 5:21 PM, Kaan Soral <[email protected]> wrote:
> I'm currently using this handler to serve GCS files: > > class BlobKeyServeHandler(blobstore_handlers.BlobstoreDownloadHandler): > def get(self, resource): > resource = str(urllib.unquote(resource)) > self.send_blob(resource) > > However there is a very high delay, like 20 seconds, until a file starts > to serve, probably caused by instance delays > > I'm trying to serve videos, the delay really ruins the experience, it's > high enough to make a user think the video won't load > > Does modifying the ACL of the GCS file manually and serving the video file > directly sound logical? > > I'm not sure how public GCS files perform, however, it's obvious that > AppEngine performs very poorly (lately, in general too) > When you say instance delays, is an instance starting up to handle this request or is it using a warm instance? It looks like a Google employee commented on a very similar question to yours: http://stackoverflow.com/questions/21266198/streaming-videos-from-google-cloud where the user is delivering video straight from Cloud Storage. Personally, my only suggestion would be to randomize your bucket name and file names; that way it'll be difficult to scrapers to guess at file names and might save you some bandwidth costs. ----------------- -Vinny P Technology & Media Consultant Chicago, IL App Engine Code Samples: http://www.learntogoogleit.com -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/google-appengine. For more options, visit https://groups.google.com/d/optout.
