📄️ Async and await
FastAPI is built on the foundations of Python's async and await features. These keywords allow developers to write asynchronous code in a more readable, straightforward style that resembles synchronous code. This article will explain how async and await work, their benefits and how you can use them in your FastAPI applications.
📄️ Websockets
FastAPI is a powerful, high-performance web framework that has gained popularity for its simplicity and robustness. It's built on Starlette for the web parts and Pydantic for the data parts. One of the advanced features that FastAPI provides is support for Websockets, which allows real-time communication between the client and the server.
📄️ Background tasks
FastAPI provides an efficient and simple way to perform background tasks. These are tasks that you schedule to run after the request-response cycle completes. It's useful for tasks like sending emails, push notifications, or handling heavy computations that you don't want to process during the request-response cycle.