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

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -