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 -

How to merge four videos on one screen with ffmpeg -

c - getting error: cannot take the address of an rvalue of type 'int' -