httpbin
httpbin copied to clipboard
Add factorial endpoint for CPU stresstest
Hi,
We are using httpbin as a backend to stress-test reverse proxies, service meshes, circuit breakers, etc. It would be very useful for us if httpbin could be instructed to produce some "real" load. Would you be open to adding a factorial endpoint?
This will be a DDoS vector for the public-facing service.
I wasn't aware that this project is supposed to be public-facing. My PR is definitely not something you want public-facing.
Would you accept a PR in which the factorial endpoint is enabled by an environment variable (default disabled)?
httpbin.org hosts this software:
$ curl -I http://httpbin.org/status/418
HTTP/1.1 418 I'M A TEAPOT