I have a problem to solve in my current deployment. The current one looks like this.
Varnish on port 80 in front of Nginx on port 8000 backed by uWSGI
The problem here is, The client want to implement some in house analytics which are required for business logic, implemented in Python served with uWSGI. Most of the varnish hits are gone uncounted (Hits are Anonymous). Two solutions came up are.
- Hit a non cached server from clients (Here clients are Android devices. Two Requests per request are very costly in terms of battery usage
- Proxy or clone the requests at varnish to another server where the analytics server can ingest the request. May be with UDP.
Is the 2nd solution relevant? Is it possible to do this? If yes, how can someone do this?