Reputation: 557
This question is specifically targeted for tracking number of hits of a web page when an application is deployed in distributed environment. I am aware that we can track number of hits either by using filter or interceptor (considering app has been built using spring framework) but I'm not able to figure out how can we track request if webApp is deployed in more than one application server.
Upvotes: 0
Views: 217
Reputation: 500
You can store hit counts in database. Database should be shared among the distributed web servers or you can use shared redis caches.
Upvotes: 1