Pushing data across App Engine instances -
let's have several clients connected app engine using channel api. each client sends messages, should propagated other conntected clients according rules. tricky part clients may not same app engine instance.
is there way push info 1 instance others?
(yes, know memcache, require kind of polling.)
you're asking 2 questions here.
a. can force info 1 instance without utilize of polling. reply no.
b. can 1 client send messages server can propagated other clients? yes, , not require propagating messages other server-side instances.
consider channel api service. clients connected channel api service; not connected particular instance. hence instance can send messages client.
you'll need store channel tokens of clients in datastore, in way that's queryable match rules. your client makes http request send message server. the handler on server queries channel tokens needs propagate message (either memcache or datastore). the handler on server sends messages clients.if list of destination clients extremely large, might want steps 3/4 in task queue operation can run longer.
google-app-engine
No comments:
Post a Comment