Ankur, I use that same basic approach to serve thousands of blobs per day in my app, and the average response time in the app engine logs is 15ms. The blobs I'm serving are text data and they vary in size from a few hundred bytes to 1MB and larger. The average size is probably around 200KB.
I wonder if anyone can comment on the possibility that the blobstore service takes longer to serve video content than it does text content. I doubt it, but I suppose it is possible. Are you sure that the latency you're seeing is actually in app engine and not perhaps in network transit or even in your browser while it loads a viewer for that mp4 content? Jim On Thursday, July 2, 2015 at 11:25:23 AM UTC-5, Ankur Jatt wrote: > > Currently I'm using below class to serve videos: > > class VelfieVideoHandler(blobstore_handlers.BlobstoreDownloadHandler): > > def get(self, blobKey): > blobKey = BlobKey(blobKey) > blobinfo = blobstore.blobstore.BlobInfo(blobKey) > self.send_blob(blobKey,content_type="""video/mp4""") > > But the problem is: its taking atleast 2 seconds to response even though > the video size is 100KB. > I test this code on 4Mbps speed and from Mumbai. > > How can I optimize it? > > -- 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 google-appengine+unsubscr...@googlegroups.com. To post to this group, send email to google-appengine@googlegroups.com. Visit this group at http://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/b81e373b-bcb0-4b34-8823-d45356f00e01%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.