On Fri, Sep 19, 2014 at 8:33 AM, vinvar k <[email protected]> wrote:

> We have developed an social application yet to run on Google App
> engine.Occasionally we need to push promo notifications to all users of our
> app.
>
> I read from documentation that a single web request can handle only 50
> threads.Some do i need to adjust my work of pushing notifications to a
> million users in that 50 threads or is there anyother strategy to follow.
>



Yes, you are limited to 50 threads - but there are a number of ways to fan
out notifications. For instance: a better way might be to use push task
queues
<https://developers.google.com/appengine/docs/java/taskqueue/overview-push> to
launch many different web requests against your app, and have each web
request spawn the threads or even more tasks. This way you can process even
more notifications simultaneously.

Depending on where you're pushing notifications to, you'll also have other
options. For instance, if you use Google Cloud Messaging for sending
messages to Android devices, you can use multicast to send the same message
to multiple users with a single request:
http://developer.android.com/training/cloudsync/gcm.html#multicast



-----------------
-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.

Reply via email to