| myst |
|
|---|
A FastAPI-based ASGI service from the UW–Madison Data Science Institute, used here as a case study for OpenLambda — an existing, real-world application that was never designed for serverless, ported to the platform to find out what OpenLambda needs.
This page focuses on what the port taught us about OpenLambda. For the application itself,
see its [source repository](https://github.com/UW-Madison-DSI/ag_forecasting_api).
It's a good stress test for OpenLambda because it is non-trivial and ordinary: a FastAPI (ASGI) backend with real package dependencies, weather-data caching, and parallel compute — the kind of app teams actually run, not a serverless demo.
Porting it surfaced five concrete challenges that drove four new OpenLambda features:
- Per-function environment variables — to redirect writes away from read-only directories.
pip-compileas a lambda — to pin dependencies inside the OpenLambda environment.- Direct GitHub deployment —
ol admin installstraight from a repo URL. - Built-in ASGI support — OpenLambda acts as the ASGI server for FastAPI/Starlette/etc.
It also pointed to a future feature: /dev/shm support so process pools work under OpenLambda.
The full porting write-up is in the blog case study.