Each time a request to the server happens we could log some information about the time of day, who did the request (ip), what resource what requested (filename/url) and in the future other things. If we store this information in some way, in memory or maybe in a database which would require some configuration from a config file to work we can then create different statistic methods that can answer questions like how many calls to the server during the last hour/24 hours/total. What resource is mostly asked for and other things.
Maybe this should be several issues where we start with creating a class that can log incomming request and then we can add different stat methods later?
Each time a request to the server happens we could log some information about the time of day, who did the request (ip), what resource what requested (filename/url) and in the future other things. If we store this information in some way, in memory or maybe in a database which would require some configuration from a config file to work we can then create different statistic methods that can answer questions like how many calls to the server during the last hour/24 hours/total. What resource is mostly asked for and other things.
Maybe this should be several issues where we start with creating a class that can log incomming request and then we can add different stat methods later?