bodograumann / fastapi-parallel-testbed

Test running requests in parallel against a inboard/FastAPI app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Controlling parallel requests in inboard/FastAPI

The server will sleep for a certain amount of time and then return.

Start with

docker build -t fastapi-parallel .
docker run -p 80:80 --rm --name fastapi-parallel fastapi-parallel

Run a request with (or many in parallel)

curl http://localhost/sleep

To enable concurrency use

curl http://localhost/asyncsleep

instead.

About

Test running requests in parallel against a inboard/FastAPI app


Languages

Language:Python 83.4%Language:Dockerfile 16.6%