Sending Channel messages is asynchronous in that the function's return is not gated on the client receiving the message. Internally, though, the call waits for a response to an RPC so the time to call sendMessage can take on the order of 10s of milliseconds; if you're sending tons of messages it might be worth doing on a task queue.
On Jun 25, 7:14 am, Amorgos <[email protected]> wrote: > Hey, > > I'm experimenting at the moment with the Channel API and I'm wondering > if the ChannelService.sendMessage() call is asynchronous. This is > because I am calling it within a servlet so if I need to call > ChannelService.sendMessage() on potentially 100 or so channels will > this be done asynchronously so the request doesn't take so long? > > If not, I guess I would have to use a task queue to field off the work > there. Is it possible to send from the task queue? > > Thanks! -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
