4 ms·
That's my goto solution for a simple server if I'm testing something locally but it has issues dealing with concurrent requests in its simple form. For example
by nickjj 5y ago
That's my goto solution for a simple server if I'm testing something locally but it has issues dealing with concurrent requests in its simple form.
For example I ran a simple hello world test service on Kubernetes once using Python's http.server.
Just having 3 Kubernetes health checks happen on regular intervals would routinely cause the server to respond with errors. I think what ends up happening is if you have 2 requests coming in within a short enough period of time one of them will fail. You have to use a more complicated threaded http server if you want a zero dependency solution.