This a simple async webserver to demonstrate a pitfall of the python async framework: non-preemptive scheduling.
The blog post explaining this is here. (still to do).
This has been run on ubuntu 20.04.
You will need python >= 3.8, poetry and curl
cd example_webserver
poetry install
cd example_webserver
poetry run uvicorn example:app
./liveness_probe.sh
curl localhost:8000/processing
For example send 10 requests to the processing
endpoint
./send_requests.sh 10 processing
or send 25 requests to the processing_fixed
endpoint
./send_requests.sh 25 processing_fixed