liveBook · Manning

CloudEvents

As explained in Platform Engineering on Kubernetes

CloudEvents is a specification for describing event data in a common, interoperable format independent of the transport used to carry it.

CloudEvents standardizes event data in a common, interoperable format independent of the transport carrying it. It provides a thin envelope with required metadata and a payload containing the event data. section 9.1.1 section 9.2

Developers can emit and consume events by using the specification to identify what an event concerns, while choosing transports such as HTTP, AMQP, Kafka, NATS, MQTT, JSON, XML, websockets, or webhooks. section 9.2

CloudEvents fits an event-driven platform workflow by:

  • Wrapping information from different tools and systems in a shared format for downstream consumption and metric calculation. section 9.1.1
  • Supporting integrations with Tekton, Dapr PubSub, Argo Events, Knative Eventing, and cloud services such as Google Cloud Eventarc and Alibaba Cloud EventBridge. section 9.2
  • Using the CloudEvents SDK with Dapr PubSub to verify an event type and retrieve its payload. section 9.2
Figure 9.5 CloudEvents, a simple envelope to wrap our events data

Inspect the envelope structure showing how required metadata surrounds the event payload. section 9.2

How Platform Engineering on Kubernetes covers it

How deep it goes
Defines a thin envelope, required metadata, payload, and transport bindings without detailing every receiving or emitting implementation.
Examples
Uses Dapr PubSub and the CloudEvents SDK to verify event types and retrieve payloads.
What it assumes
Assumes event-producing and event-consuming systems, while defining metadata, payload, and transport bindings from the integration problem.
What you can do after
Apply it via the CloudEvents SDK to emit or consume transport-independent events and access their payloads.
How it connects
Connects event producers and consumers with CDEvents, Tekton, Dapr PubSub, Argo Events, Knative Eventing, and transport protocols.

Also explained in

Compare how 3 books explain CloudEvents →

Related concepts

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