An AI-first, code-centric tutorial on OpenFaaS — the Kubernetes-native serverless framework. Each chapter explores the internal mechanics of the OpenFaaS Gateway, showing not just what components do, but how and why they work at the source-code level.
Each chapter is a standalone learning module. Start from Chapter 1 or jump to any topic.
What is the Gateway? Why is it the control plane? Where is the entry point in code?
Control Plane → Chapter 02How is the Gateway configured? What knobs control behaviour? Where are defaults set?
Settings & Knobs → Chapter 03Where is the REST API defined? How does the Gateway route requests to handlers?
REST API & Routing → Chapter 04How does the Gateway transform and authenticate incoming requests in the middleware chain?
Transformation & Auth → Chapter 05How are functions invoked (sync/async)? Where does queueing happen? What drives concurrency?
Sync/Async & Queueing → Chapter 06How does OpenFaaS auto-scale functions from 0 to N replicas? What triggers a scaling decision?
Auto-scaling 0 to N → Chapter 07How does the Gateway interact with the Kubernetes provider? Where is the provider API called?
Kubernetes Integration → Chapter 08How are Prometheus metrics exposed? What do they represent? How does observability enable scaling?
Prometheus & Observability →Every concept is anchored to actual Go source code in the OpenFaaS Gateway repository. You learn not just what, but how and where in the codebase.
Chapters follow the request lifecycle — from Gateway startup through configuration, API routing, middleware, handler invocation, and scaling decisions.
Learn serverless computing in the context of modern Kubernetes environments, CRDs, and cloud-native observability tooling.
Get all chapters and source references: