CloudEvents
CloudEvents is a specification for describing event data in common formats to provide interoperability across services, platforms and systems. As Oracle GoldenGate Data Streams currently only supports JSON data encoding, the support for CloudEvents format is limited to the JSON event format. The complete specification for JSON Event Format for CloudEvents can be found at:
https://github.com/cloudevents/spec/blob/main/cloudevents/spec.md
https://github.com/cloudevents/spec/blob/main/cloudevents/formats/json-format.md
https://github.com/cloudevents/spec/blob/main/cloudevents/formats/cloudevents.json
CloudEvents format defines the list of attributes to describe the event,
essentially an envelope with a set of mandatory and optional attributes.
When CloudEvents format is enabled in Oracle GoldenGate Data Streams, the
final JSON records will look similar to the following, where
data
field contains the original
data records, which is Oracle GoldenGate DML/DDL/metadata/schema
records.{
"specversion" : "1.0",
"type" : "com.example.someevent",
"source" : "/mycontext",
"id" : "A234-1234-1234",
"datacontenttype" : "application/json",
"data: {…}
}