Function Pod

Place to load and execute the user function

Function Pod serves HTTP requests received from the clients. It consists of two containers:

  • Fetcher
  • Environment Container

Fetcher

Fetcher is responsible to pull deployment archive from the StorageSvc and verify the checksum of file to ensure the integrity of file.

Environment Container

Environment Container runs user-defined functions and is language-specific. Each environment container must contain an HTTP server and a loader for functions.

Fig.1 Function Pod

Fig.1 Function Pod

  1. Fetcher gets the function information from the CRD.
  2. Pull the deployment archive from the StorageSvc.
  3. Save the archive to the shared volume.
  4. Call the specialized endpoint on the environment container to start function specialization.
  5. Environment Container loads the user function from the volume.
  6. Start serving the requests from Router.
Last modified December 16, 2021: Fixed Link/Document changes (#121) (8795548)