google app engine - How to handle undelivered messages on GAE Channel API? -


the following google reference page says "no error returned if message cannot delivered": https://developers.google.com/appengine/docs/python/channel/functions

in contrast, socket.io has ack callbacks on messages can handler success/error: http://socket.io/#how-to-use

does suggest solution achieve same goal using channel api? otherwise, channel api useful volatile messaging. , rather not reinvent wheel try achieve effect writing transactional system messaging.

the bad news channel api unidirectional , non blocking, there no way wait response or specify callback. however...

the elements of channel api section of channel python api overview says role of server includes "receiving update messages clients via http requests". therefore sending unique message identifier in each channel message, clients acknowledge them asynchronously via http. server re-send unacknowledged messages after each 1 times out.

maybe it's still bad news, because suggestion looks "writing transactional system messaging" although asynchronous part better synchronous socket.io.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -