Thank you Adam.
It was my first option and I'm doing some experiments.
Are you aware of any tutorial or sample code that could simplify my work?
Thank you,
Max

Il giorno sabato 11 aprile 2015 00:56:51 UTC+2, Adam ha scritto:
>
> In this case you would generally want to use a task queue [1]. Sending a 
> message to many clients with retry would be considered background work and 
> not something to fit into a request window which needs to complete quickly. 
> Your endpoints methods can kick off tasks asynchronously and then return a 
> response before the deadline.
>
> Its good to remember that the "request" timer is due to need for a 
> relative fast response to an HTTP request, but this does not mean all of 
> your app logic needs to fit inside these request / response windows. This 
> is where async processing like task queues comes in to help your apps scale.
>
> [1] https://cloud.google.com/appengine/docs/java/taskqueue/
>
> On Friday, April 3, 2015 at 10:05:44 AM UTC-4, Massimo Di Cosimo wrote:
>>
>> Hello there,
>> I found the tutorial about App Engine Backend with Google Cloud Messaging 
>> <https://github.com/GoogleCloudPlatform/gradle-appengine-templates/tree/master/GcmEndpoints>
>>  
>> and I successfully tested it.
>> Now I would like to extend it to something closer to a real application.
>> For example I would like to send a notification or a message to thousands 
>> of clients (my Android app is installed on thousands of tablet/phones).
>> If I understand correctly, Endpoints undergoes time limits of App Engine (
>> https://cloud.google.com/appengine/docs/java/requests#Java_The_request_timer
>> ). <https://cloud.google.com/appengine/docs/java/requests>
>> So, what is the most proper way to do this?
>>
>> For examples, sometimes sending through GCM requires retries with 
>> exponential backoff and this could occasionally lead to exceed the maximum 
>> time allowed for handing a request in GAE.
>> I have some solutions in mind, but before reinventing the wheel, I would 
>> like to know if there is some tutorial or code already existing that could 
>> lead me to the correct approach.
>>
>> Thank you,
>> Max
>>
>

-- 
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/89b52fcf-2302-49ff-872b-09504dc3ba5d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to