Today, we'll talk about the FastAPI events: "startup" and "shutdown".
The events are part of the [ASGI specification][asgi-specification], and they are called "lifespan" events.
The "startup" event is triggered when the application starts.
Here's an example of a simple "startup" event:
```py from fastapi import FastAPI
app = FastAPI()
Support Kludex with a subscription & receive unique benefits in return
github.com
fastapiexpert.com
twitter.com
Support Kludex with a subscription & receive unique benefits in return
github.com
fastapiexpert.com
twitter.com