php - Using setTimeOut for ajax call -


i want write chat application using ajax. need check users messages table in database every 100 millisecond(0.1 second). problem if use settimeout call ajax every 100 millisecond? performance issue? pitfall or anything?

this bad idea. while might work on local machine , few users, can't scale more users easily. suggest @ websockets , long polling.


Comments

Popular posts from this blog

authentication - Mongodb revoke acccess to connect test database -

ios - Realm over CoreData should I use NSFetchedResultController or a Dictionary? -

r - Update two sets of radiobuttons reactively - shiny -