Schemas define the structure and data types of event bodies, ensuring that producers and consumers across heterogeneous systems interpret event data consistently.
A schema in EventBridge is a versioned specification that defines the fields, structure, and data types of an event body. Schemas enable reliable event data exchange between producers and consumers without ambiguity.
Schema groups
Schemas are organized into schema groups. Each schema belongs to exactly one group and must have a unique schema ID within that group.
EventBridge provides two types of schema groups:
| Schema group type | Description |
|---|---|
| Schema group for Alibaba Cloud service events | Contains schemas for events emitted by Alibaba Cloud services. Each event type has a dedicated schema. For example, the snapshot deletion event from Elastic Compute Service (ECS) has its own schema that describes its event body structure. |
| Custom schema group | A group you create to organize schemas for custom application events or existing message data. Use custom schema groups when your workloads produce events outside of Alibaba Cloud services. |
该文章对您有帮助吗?