Cloud Native 16 min read

Understanding Knative: A Cloud-Native Serverless Framework

Knative is a CNCF‑incubated, cloud‑native serverless framework on Kubernetes that combines Build, Eventing, and Serving components—featuring a Knative Pod Autoscaler that can scale pods to zero—offering improved resource utilization, rapid traffic response, and developer productivity despite modest performance overhead.

Tencent Cloud Developer
Tencent Cloud Developer
Tencent Cloud Developer
Understanding Knative: A Cloud-Native Serverless Framework

This article provides a comprehensive introduction to Knative, a cloud-native serverless framework built on Kubernetes. The content covers fundamental concepts including cloud-native architecture, container technology (using Linux Namespace for isolation, Cgroups for resource limits, and rootfs for filesystem), and Kubernetes basics.

Knative, open-sourced by Google in 2018 and now a CNCF incubating project, consists of three main components: Build (source-to-container building), Eventing (event-driven architecture), and Serving (traffic management and auto-scaling). The Serving component uses a sophisticated auto-scaling mechanism called KPA (Knative Pod Autoscaler) that can scale pods to zero and rapidly scale based on concurrent requests, with each pod handling up to 100 requests by default.

The article details the performance characteristics of Knative, showing benchmarks where pure pod deployment achieves 100% performance, single pod with queue-proxy achieves 85%, and multi-pod deployment achieves 40% compared to traditional HPA-based deployments. The performance overhead comes from Route, Activator, queue-proxy, and Autoscaler components.

Despite performance trade-offs, Knative offers significant advantages: improved resource utilization (25% savings in typical scenarios), rapid response to traffic spikes, simplified project maintenance through function decoupling, and enhanced developer productivity by abstracting away infrastructure concerns.

cloud nativeKubernetescontainerauto scalingCNCFKnativeFunction ComputingServerless
Tencent Cloud Developer
Written by

Tencent Cloud Developer

Official Tencent Cloud community account that brings together developers, shares practical tech insights, and fosters an influential tech exchange community.

0 followers
Reader feedback

How this landed with the community

login Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.