httpbin icon indicating copy to clipboard operation
httpbin copied to clipboard

Add factorial endpoint for CPU stresstest

Open cristiklein opened this issue 5 years ago • 3 comments

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?

cristiklein avatar Nov 25 '20 09:11 cristiklein

This will be a DDoS vector for the public-facing service.

gaul avatar Feb 03 '21 05:02 gaul

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)?

cristiklein avatar Feb 03 '21 08:02 cristiklein

httpbin.org hosts this software:

$ curl -I http://httpbin.org/status/418
HTTP/1.1 418 I'M A TEAPOT

gaul avatar Feb 03 '21 12:02 gaul