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
Post a Comment