Get to know the Fastly Compute environment with a basic starter that demonstrates routing, simple synthetic responses and code comments that cover common patterns.
For more details about this and other starter kits for Compute, see the Fastly Documentation Hub.
- Shows use of WSGI to handle requests
- Shows dependency management with
uvviapyproject.toml - Uses Flask from PyPI for basic request routing and handling
- Build synthetic responses at the edge
This starter kit is intentionally fairly minimal; while Flask is included as a dependency alongside the [Fastly Compute SDK for Python][compute-sdk-python], this is meant primarily as a demonstration of use of a lightweight framework that implements the WSGI interface. Bottle is another popular microframework which may be used. Python services may also be written without any additional framework dependencies.
The starter doesn't require the use of any backends. Once deployed, you will have a Fastly service running on Compute that can generate synthetic responses at the edge.
Please see SECURITY.md for guidance on reporting security-related issues.