long-polling


Long polling blocking multiple windows?


Long polling has solved 99% of my problems. There is now just one other problem. Imagine a penny auction site, where people bid. On the frontpage, there are several Auctions.
If the user opens three of these auctions, and because javascript is not multithreaded, how would you get the other pages to ever load? Won't they always get bogged down and not load because they are waiting for long polling to end? In practice, I've experienced this and I can't think of a way around it. Any ideas?
There are two ways that javascript gets around some of this.
While javascript is single threaded conceptually, it does its io in separate threads using completion handlers. This means other pieces of javascript can be running while you are waiting for your network request to complete.
Javascript for each page (or even each frame in each page) is isolated from Javascript on the other pages/frames. This means that each copy of javascript can be running in its own thread.
A bigger issue for you is likely to be that browsers often limit the number of concurrent connections to a given site, and it sounds like you want to make many concurrent connections to the same site. In this case you will get a lock up.
If you control both the sever and client, you will need to combined the multiple long-poll request from the client into a single long-poll request to the server.

Related Links

Koa 2 router how to make a long poll request
Confluent long polling properties in kafka-rest
How to combine async and blocking requests in VuGen?
Long polling confusion
WAS Liberty & Atmosphere long-polling 1 min delay
Long Polling interval in atmosphere
MQTT long polling over GPRS/HSDPA
JS and CSS file fails to load when the page is refreshed in grails application which uses Atmosphere Meteor plugin
Security concerns in long polling
Kafka long polling
How to build the request for a long poll url for box.com
how to access enterprise events using Java code
Handle client timeouts when serving long polling with gevent
Long polling blocking multiple windows?
Long polling on a penny auction site?
Cannot implement long polling

Categories

HOME
maven
wso2-am
variables
pypi
gremlin
react-virtualized
syntax
objectgears
youtube-dl
xmpp
adb
primary-key
wheelnav.js
google-cloud-spanner
gz
circuit
invantive-sql
paging
xlsxwriter
functional-testing
autosys
vlsi
javacv
spark-jobserver
bootstrap-duallistbox
assistant
newline
copying
column-family
catch-all
pim
webtest
mapbox-gl
normal-distribution
revolution-slider
main
android-browser
hilbert-curve
temporary-files
sas-visual-analytics
gulp-sourcemaps
unixodbc
menuitem
fault
powercli
tropo
mplayer
boost-preprocessor
redundancy
smart-table
etsy
merge-conflict-resolution
master-slave
python-stackless
whois
apachebench
revolution-r
pyke
cloudbees
unity-networking
kendonumerictextbox
rtbkit
citrus-pay
kcachegrind
appfabric-cache
iiviewdeckcontroller
angular-local-storage
sorl-thumbnail
gwidgets
codeigniter-url
rdtsc
websocket4net
doskey
mysql-error-1062
picturefill
odata4j
flash-builder4.5
seed
http-unit
gdata-api
pendrive
locationlistener
krl
winbugs14
propagation
iweb
adrotator
procedural-music
private-members
geneva-server

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App