I talked about CloudEvents in the context of event-driven architectures before. In this post, let’s explore CloudEvents in more depth.
CloudEvents: Why? What?
CloudEvents is a popular specification for describing event data in a common way with the goal of increasing interoperability between different event systems.
Google Cloud’s Eventarc, open-source Knative, Azure’s Event Grid, and many more projects rely on CloudEvent specification to define their event formats.
CloudEvents, at its core, defines a set of metadata, called “context
attributes”. This metadata is the minimal set of information needed to route an
event to the proper component. Data that is not intended for routing is placed
within the data (or base64 encoded data_base64) field of CloudEvent.
