How to simulate a slow HTTP server with a Dockerized lighttpd
Posted on Tue 30 August 2016 in Hacks
Today I had to work on an issue related to troubled HTTP connections. So in order to reproduce such issue I had to find a way to easily reduce the bandwidth of the HTTP transfer.
After a quick Google search I landed on this Stackoverflow answer which suggested me the idea to create a simple Docker container for that.
The container image is automatically build on Dockerhub from the Dockerfile.
The container can be easily used to serve a local folder or as a proxy in front of another HTTP server.