Skip to Content
Knative Cookbook
book

Knative Cookbook

by Burr Sutter, Kamesh Sampath
April 2020
Intermediate to advanced
158 pages
3h 6m
English
O'Reilly Media, Inc.
Content preview from Knative Cookbook

Chapter 4. Knative Eventing

In this chapter, we present recipes that will help you get started with Knative Eventing. We will start with a high-level overview of the usage patterns and then drill down into specific steps to connect the various components together into end-to-end working examples.

As previously described in Chapter 1, Knative has two major subprojects: Serving and Eventing. With Serving you have dynamic autoscaling, including scaling down to zero pods, based on the absence of HTTP traffic load. With Eventing, you now have that same autoscaling capability but bridged into other protocols or from other sources beyond HTTP. For example, a barrage of messages flowing through an Apache Kafka topic can cause autoscaling of your Kubernetes-based service to handle those messages. Or perhaps a scheduled event via cron can cause your service to awake from its slumber and perform its duties.

Usage Patterns

There are three primary usage patterns with Knative Eventing:

Source to Sink

Source to Sink provides the simplest getting started experience with Knative Eventing. It provides single Sink—that is, event receiving service—with no queuing, backpressure, and filtering. Source to Sink does not support replies, which means ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Quarkus Cookbook

Quarkus Cookbook

Alex Soto Bueno, Jason Porter
GitOps Cookbook

GitOps Cookbook

Natale Vinto, Alex Soto Bueno
Kubernetes Cookbook

Kubernetes Cookbook

Sébastien Goasguen, Michael Hausenblas
Kubernetes Cookbook - Second Edition

Kubernetes Cookbook - Second Edition

Hideto Saito, Hui-Chuan Chloe Lee, Ke-Jou Carol Hsu

Publisher Resources

ISBN: 9781492061182Errata Page