Would a Socket Connection Outperform an Intarvaled Database Sweep and Requests?
Posted
by Jascha
on Server Fault
See other posts from Server Fault
or by Jascha
Published on 2010-05-26T13:54:27Z
Indexed on
2010/05/26
14:03 UTC
Read the original article
Hit count: 369
I'm building a small chat application to add to an existing framework. There will only be 20-50 users MAX at any one time. I was wondering if I could get away with updating a cache file containing (semi) live chat data for whichever users happen to be chatting just by performing timed queries and regular AJAX refreshes for new data as opposed to learning how to open and maintain a socket connection.
I'm sure there are existing chat plug-ins out there. But I just had a hell of a time installing one and I could see building the whole damn thing taking just as much time as plugging one in.
Am I off to a bad start?
Thanks in advance -J
(p.s. this is a semi closed network behind a php login so security isn't a great concern)
© Server Fault or respective owner