FastAPI runs API calls in serial instead of parallel fashion
I have the following FastAPI application: from fastapi import FastAPI, Request import time app = FastAPI() @app.get("/ping") async def ping(request: Request): print("Hello") time.sleep(5) print("bye") return {"ping": "pong!"} Calling the above endpoint on localhost —e.g., http://localhost:8501/ping —from different tabs of the same browser window, it returns