Update: I've tried again by serving GCS files using the Blobstore API and, 
after fixing some problems, it's been working well all day. The problems 
were:
1. lack of BlobInfo (as documented)
2. file names containing some characters such as blank spaces

Because I used Blobinfo in order to get the file size and to see if the 
file was there, I now use GcsService.list().
A method that checks for an individual file would be better than querying 
for the whole list.
Also, some headers I've set don't appear in the Http Response, so I've had 
to provide that information another way.
Regardless, blobstoreService.serve() now works for me off GCS and I 
recommend it to fellow GAE users.
It's definitely simpler than creating "signed URLs" on demand.
But I'll keep this information for future use, thank you for the tip, Alex

Emanuele


On Thursday, 21 May 2015 11:09:36 UTC+12, Alex Martelli wrote:
>
>
>
> On Wed, May 20, 2015 at 2:36 PM, Emanuele Ziglioli <
> [email protected] <javascript:>> wrote:
>
>>
>>> Non proprio!-)  "Signed URLs" are the Cloud Storage way to "serve large 
>>> files without using CPU instance time" AND without making them public -- 
>>> see https://cloud.google.com/storage/docs/access-control#Signed-URLs .
>>>
>>>
>>>
>> Ciao Alex, 
>>
>> I've been looking for something like that, I just didn't know it was 
>> called "signed URLs"!
>> Although I suspect that once my app creates a file and generates a signed 
>> URL, that URL should still be exposed to the user, there's no way to 
>> "internally forward" a GET request to that external address, is there?
>>
>
> Right -- redirects or the like are done client-side, that's how HTTP 
> works.  But you set the timeout as tight or lax as you want, so that for 
> example it can be acted upon "right then and there or not at all" -- or 
> endure for the duration of e.g a subscription to your service the user's 
> paid up for -- or whatever else you want, it's really a very flexible 
> arrangement (esp. once you consider how many other things you can, if you 
> so choose, bind into a signed URL).
>  
>
>>  
>>
>>> With 16 SDK releases (1.9.5 to 1.9.20 included) in exactly one year (May 
>>> 20 to May 20) this "looks like" seems peculiar.  How many releases per 
>>> month would suffice to convince you otherwise, if 1.33 are not enough?-)
>>>
>>>
>> Point taken, also I've been following the correspondence between various 
>> Googlers and developers on this forum.
>> There's been an increased pace in addressing long standing bugs, that 
>> should be a good sign.
>>
>
> Definitely not the dynamics you'd typically observe about a product that's 
> orphaned.
>  
>
>> I hope to see some features added to GAE in the future too, easier 
>> integration between Datastore and BigQuery/Dataflow for example.
>>
>
> Sorry, no comments about the roadmap.  But, e.g, is 
> https://cloud.google.com/dataflow/java-sdk/JavaDoc/com/google/cloud/dataflow/sdk/io/DatastoreIO.Source
>  
> (a Dataflow Source that reads the result rows of a Datastore query as 
> Entity objects) the kind of things you're asking for?  Anyway, feature 
> requests are always welcome, e.g at 
> https://github.com/GoogleCloudPlatform/DataflowJavaSDK/issues for the 
> Dataflow Java SDK!
>  
>
>>
>> Grazie mille,
>> Emanuele
>>
>
> Ma prego, dovere!
>
> Alex
>  
>
>>
>>  
>>
>> -- 
>> 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] <javascript:>.
>> To post to this group, send email to [email protected] 
>> <javascript:>.
>> 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/23a57b26-8ecf-4462-b953-558982ae7c46%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/google-appengine/23a57b26-8ecf-4462-b953-558982ae7c46%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>>
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/689faeec-dbe6-4889-8be3-b612b1916c7c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to