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
azure-data-factory
google-play
react-virtualized
include
stock
octobercms
alfresco
packages
win32gui
opengl-es-2.0
facebook-messenger-bot
elasticsearch-hadoop
spring-kafka
dax
imacros
resize
msp430
carthage
samoa
dbext
grails3
chromium-embedded
pass-by-reference
pepper
su
neo4j-spatial
ping
quote
r-raster
bosh
semantic-versioning
scorm2004
hexo
wixsharp
az-application-insights
opshub
squib
gulp-sourcemaps
nand2tetris
turbogears
mime
auto-update
long-polling
python-c-api
clean-architecture
typescript1.8
lowpass-filter
forever
csound
knockout-components
np-complete
ifs
mako
django-scheduler
mediaelement
gnome-shell-extensions
nxt
url-masking
fody
storekit
superstack
pickadate
fadeout
rhino-servicebus
security-testing
sorl-thumbnail
gwidgets
pick
gadt
knuth
terminfo
dml
htmlcleaner
kgdb
picturefill
typo3-neos
mbr
stxxl
back-stack
smtp-auth
android-hardware
libstdc++
funscript
frameset
hirefire
gcj
tomcat-valve
gamequery
photoshop-cs4
privilege
uiq3
misv

Resources

Encrypt Message



code
soft
python
ios
c
html
jquery
cloud
mobile