liveBook · Manning

Knative

As explained in Quarkus in Action

Knative is a Kubernetes-based platform that provides components for serving and running serverless workloads.

Knative provides a Kubernetes-based way to run serverless workloads on demand. It suits services that do not need to remain running continuously: inactive applications can scale to zero, then start a pod when a request arrives. section 11.5.3 section 11.5.4

A Quarkus application can target Knative through the Kubernetes deployment extension. The generated resources reference a container image, configure runtime environment variables, and limit concurrent requests per pod. section 11.5.3

A practical Knative deployment follows these steps:

  • Create a Quarkus application with Funqy HTTP, a SmallRye GraphQL client, and OpenShift integration. section 11.5.3
  • Deploy with ./mvnw clean package -Dquarkus.knative.deploy=true. section 11.5.4

Car-statistics service

A Funqy function calls an Inventory service through GraphQL and returns the current number of available cars. After deployment, requesting /getCarStatistics starts the application when necessary and returns the statistics.

How Quarkus in Action covers it

How deep it goes
Explains application creation, configuration, deployment, scale-to-zero, cold starts, and concurrent scaling without detailing Knative internals.
Examples
Uses a Quarkus car-statistics function that queries Inventory with GraphQL and demonstrates routes, cold starts, and concurrent pod creation.
What it assumes
Assumes a Quarkus application and Kubernetes or OpenShift environment; explains required extensions and configuration from the application setup.
What you can do after
Build it from scratch, configure it, deploy it through Quarkus, and observe scale-to-zero and concurrent scaling.
How it connects
Connects Kubernetes, Quarkus, OpenShift, serverless computing, Funqy API, GraphQL, container images, and autoscaling.

Also explained in

Compare how 3 books explain Knative →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Quarkus in Action. The section links point to the parts of the book it draws on.