google-app-engine


App Engine Channel API vs polling: which is better suiting in a mobile web chat scenario?


I'm trying to build a chat/messaging application, which may be consumed on the desktop, but also likely consumed on the mobile web (iOS Safari etc.). I started using the App Engine Channel API, but see that its making a very frequent request to the server (~1/sec). I'm worried this would have an adverse impact on battery life and data consumption.
The application is a chat/inbox type application, so it's OK to be 2-5 secs late IMHO. In this situation, is it just better to stick with traditional polling and ping the server every 3 secs to see if any new messages have arrived? And what would I be gaining by using the Channel API?
The actual experience (and so the tradeoffs) depend on my application, but I'm trying to understand if my worry about battery drain is warranted or unfounded?
All you are seeing is the emulation of the channel by the dev_appserver. Once you deploy it'll work properly, as you expect.
Users will send messages to your server via the usual HTTP methods, and the server will only send messages down the channel when you actually send one.
It's worth mentioning that the channel API removes the need for polling. That's it's purpose.

Related Links

Set Java bytecode version in Android Studio for AppEngine
How do I use environment variables in app.yaml file?
How to set version when deploying gae java?
google cloud app engine deploy failed
issue with local package imports: golang, appengine, testing
Google cloud is throwing the error saying updating service failed when I try to run mvn appengine:deploy
Google App Engine - what is the meaning of each x-appengine header?
app.yaml to send params to Dockerfile
Ioncube Loader with Google App Engine
Why is the user_id returned from Google Account API different from the user_id on Google plus and how do I access the former with oauth 2
Endpoints work on localhost but not on app engine (omitted https://)
Firebase and App Engine Backend - architecture
See the files that will be deploy to Google AppEngine
How can I get a list of all of the room resources in Google Calendar via Google Script
Service Worker mishandling user login on App Engine
Cloud sql support Non English Letter ?

Categories

HOME
scikit-learn
c99
nvd3.js
rdbms
static
oracle-apex-5
seo
soa
scripting
gembox-spreadsheet
character
modal-dialog
barcode
mel
mautic
atlassian
heat
chargify
fileserver
template-engine
asp.net-mvc-viewmodel
smartclient
soci
shortest-path
selinux
windows-xp
pagespeed
corpus
openmdao
custom-controls
autodesk-designautomation
scatter3d
android-maps-extensions
installscript
html-encode
sql-delete
fiware-cygnus
video-capture
salesforce-communities
tex
filesystemwatcher
hackintosh
comparison-operators
parser-generator
linqpad
sharp-snmp
jquery-ui-draggable
hammer.js
spring-integration-sftp
reportservice2010
vugen
x-ray
payara-micro
subnet
java-6
ampps
cvxpy
change-tracking
stripe-connect
redistributable
myspace
eigenvector
observablecollection
mediametadataretriever
data-protection
dbamp
ascii-art
include-guards
android-launcher
finalbuilder
aspectj-maven-plugin
rrule
dot.js
showdialog
teaspoon
human-computer-interface
nsmenu
trdion2011
scrypt
dtmf
facebook-timeline
video-codecs
sqlclr
frameworkelementfactory
urlrewriter
pinch
promotion-code
mysql-error-1205
strsep
twitterizer
mtu
qtabbar
django-piston
skype4java
lalr
dsl-tools
cuda.net
business-model
mathematical-typesetting

Resources

Encrypt Message