Uvicorn
Uvicorn is an asynchronous Python web-server implementation that runs applications conforming to the Asynchronous Server Gateway Interface.
Software Engineering for Data Scientists
Uvicorn is an asynchronous Python web server implementation for running ASGI applications.
- How it is used
- Runs FastAPI applications so clients can send requests to Python API endpoints.
- How deep it goes
- Explains the server role and demonstrates installation, launch, request testing, and network availability.
- Examples
- Uses a testing endpoint and a customer-churn prediction API queried with JSON inputs.
- What you can do after
- Operate/configure FastAPI locally with Uvicorn and test a model-serving endpoint through HTTP requests.
Read how Software Engineering for Data Scientists explains Uvicorn →
Designing AI Systems
Uvicorn is an ASGI server that listens for network connections and dispatches incoming requests to an ASGI application.
- How it is used
- Serves FastAPI workflow endpoints at the external HTTP boundary while those endpoints call internal platform services through gRPC.
- How deep it goes
- Explains event-loop multiplexing, thread dispatch, response modes, and worker processes, but does not detail Uvicorn internals.
- Examples
- Uses a workflow runtime server and a four-worker entry point listening on port 8000.
- What you can do after
- Operate/configure Uvicorn to serve an ASGI workflow application with selected response handling and multiple workers.
Also covered in
- Road to Kubernetes
- Secure APIs
- Build Financial Software with Generative AI (From Scratch)
- Python Concurrency with asyncio
- Machine Learning Platform Engineering
What to know first
- ASGIASGI, the Asynchronous Server Gateway Interface, is a Python standard interface for communication between asynchronous-capable web servers and applications or frameworks.
- containerA software container is an isolated execution environment that packages an application and its dependencies, typically sharing the host operating-system kernel.
- PythonPython is a high-level, general-purpose, dynamically typed programming language with readable syntax and support for multiple programming paradigms.
- contractA contract is an agreed specification of the conditions, expectations, rights, or obligations that govern behavior or interactions between parties or software components.
Related concepts
- FastAPIuses · FastAPI is a Python web framework for building APIs, using type annotations for request handling and validation and generating OpenAPI documentation.
- ASGIimplements · ASGI, the Asynchronous Server Gateway Interface, is a Python standard interface for communication between asynchronous-capable web servers and applications or frameworks.
- event loopuses · An event loop is a runtime mechanism that repeatedly selects and dispatches ready events, tasks, or callbacks for execution.
- workflow runtime serverused by · A workflow runtime server is SDK-provided library code that receives HTTP requests, invokes a deployed workflow function, and returns responses as a production service.
Questions about Uvicorn
What is Uvicorn?
Uvicorn is an asynchronous Python web-server implementation that runs applications conforming to the Asynchronous Server Gateway Interface.
Which Manning books explain Uvicorn?
Software Engineering for Data Scientists and Designing AI Systems.
What should I know before learning Uvicorn?
Manning books that teach Uvicorn usually introduce ASGI, container, Python and contract first.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

