I'm using a chat in a system that got approximately 100 active users. The chat is built with javascript that runs an ajax question every fourth second to a php script that fetches data from the database. The server gets extremely slow when there are about 100 users online on the server.
Are there a better way to create a chat than using javascript intervals containing ajax questions?
Kind regards / H