2 ms·
doing a geo based redirection was my first golang project that got deployed to prod. Nginx + GeoIP2 module sets a HTTP request header and proxies the request t
by ing33k 6y ago
doing a geo based redirection was my first golang project that got deployed to prod.
Nginx + GeoIP2 module sets a HTTP request header and proxies the request to the golang app.
The go app does a lookup from redis, based a combination of country header and some url params and responds back with a redirect header.
Hosted it on a t2 medium in EC2 and I have seen it easily handle ~1500 requests / second without any issue.