Forum Moderators: coopster
I wrote a web counter that tracks online visitors. Visits are recorded in a MySQL table. But I am considering switching to a text file.
The reason is that I am getting hundreds of simultaneous connections (I operate more than one counter on more than one site) and my server is under too much stress to keep up.
Would a cookie + text file based solution be better in my case?
Thank you for your expert advise.
Roberto
The best option would probably be something in-memory so the disk filesystem wouldn't need to be touched. A bit outside my experience but...
Are you running this on your own linux server? You could try making a ramdisk and putting the counter files on it.