To collect statistics using a proxy layer or awstst
Good day to you, community
Maybe someone faced with the task of collecting statistics about a user in a proxy layer or awsts
So what we have:
Klientka library (openLayers for mapping, but it doesn't matter), which sends requests of type
GET tiles/1/2/3/4.png to your GeoServer.
The task is to count how many people and what characteristics of the browser + where they came from(etc.)
While mind 2 ways to implement:
1. To hang between them a thread the stripped-down proxy(GET reads, analyzes, and forwards to another URL, getting the response gives the user), which would be gathered from the HTTP Headerов all the necessary data. Plus you can handle, hang and read realtime COOKIES at the header level. Negative — while very confusing for the stability of such solutions. As such, he will handle 10.000 simultaneous requests, given that he Perlе
2. To collect statistics from logs with awstst or webalizer. From obvious minuses — you can't give COOKIES to track movements on the site. A kind of READ-ONLY statistics.