liveBook · Manning

Channel

As explained in Google Anthos in Action

A Knative channel is an event-delivery buffer that can use in-memory or persistent storage while events are processed.

A Knative channel is an event-delivery buffer managed by a Broker. It receives events before they are delivered to subscribers, using either simple in-memory storage or persistent storage for greater reliability. section 9.3.3

Choose the channel implementation according to deployment requirements:

  • Use an in-memory channel for a simple messaging layer when persistence is not required. section 9.3.3
  • Use persistent storage, such as Pub/Sub or Kafka, when reliability requires events to survive processing conditions. section 9.3.3
  • Store channel configuration in ConfigMaps and select the configuration through the Broker definition. section 9.3.3

Selecting a default channel

A Broker can reference a ConfigMap that defines the default channel. The Broker then receives events and places messages into its managed channel before sending them to subscribers. section 9.3.3

Figure 9.6 Knative Eventing resources
09-06

Use the resource diagram to trace how channels fit between event producers, the Broker, and subscribers in Knative Eventing. section 9.3.3

How Google Anthos in Action covers it

How deep it goes
Defines in-memory and persistent options, names Pub/Sub and Kafka, and shows ConfigMap-based selection without detailing channel internals.
Examples
Uses a default-channel Broker manifest backed by the config-br-default-channel ConfigMap.
What it assumes
Assumes a Kubernetes deployment with Knative Eventing installed, including its default messaging layer and Broker components.
What you can do after
Operate/configure channel selection through a Broker and ConfigMap, choosing in-memory or persistent delivery storage.
How it connects
Connects Brokers, subscribers, ConfigMaps, Pub/Sub, and Kafka within Knative Eventing.

Related concepts

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