Nice, useful, and easy-to-use feature in FastAPI. It allows responding to the client and doing whatever needs to be done after the request, the client doesn’t have to wait for the operation to complete.

For example, get an API request, respond to the client right away, do the job and send a notification once it’s done as a separate event.