Skip to main content
Source: demo/endpoint/app.py in the repository. A function you call over HTTP. The request body becomes keyword arguments; the return value is the response.
Notes
  • keep_warm_seconds keeps a container alive after the last request so the next one is fast; set it to 0 to scale to zero immediately.
  • workers runs several request handlers per container; autoscaler adds containers under load.
  • Every deploy makes a new version: /endpoint/greet/v1, /v2, … and /latest.
  • The dashboard’s Endpoints page shows deployed endpoints with a ready-made request snippet.