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 -

How to get the ip address of VM and use it to configure SSH connection dynamically in Ansible -

javascript - Get parameter of GET request -