php - the better method to store page hits in crowded siteGet the solution ↓↓↓
To avoid further load on the server, use external services like Google Analytics and Statcounter.
If you don't want use external services, best option is NoSQL database.
Alternative PHP Cache (APC) would be an option.
I would not use a file.
If the server is already under high load it would get even worse if you add that additonal concurrent file (read/write) access
I'm confirm with @Antonys answer. It will delegate the work for stats to the clients and not to the server.
This is also another option for you https://www.kissmetrics.com/
Share solution ↓
Link To Answer People are also looking for solutions of the problem: npm err! code 1
Didn't find the answer?
Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.
Find the answer in similar questions on our website.
Write quick answer
Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.