On this page
What breaks a consumer of an event
An HTTP client finds out about a breaking change on its next call. An event consumer finds out when a message it cannot read arrives, which can be hours after the producer shipped. What happens next depends on how the consumer was written: it may fail on that message and retry it, skip it, or set it aside. None of that reaches the team that changed the schema, because a producer usually does not know who reads its topic or queue.
- A field disappears. A consumer that reads
discountgets nothing, or fails to deserialize the message. - A field changes type.
totalsent as a string instead of a number fails a typed consumer at once. - The message moves. A new channel address or a new message name looks like a removal to everyone still reading the old one.
- The format changes. A different
contentType, or a payload that switches from JSON Schema to Avro, needs a different deserializer. - A new enum value appears. It is not breaking by the schema, but a consumer that switches on the value may need a new case.
Publish and receive follow opposite rules
AsyncAPI describes each message from the service’s own side. In AsyncAPI 3 the operation says action: send or action: receive. In AsyncAPI 2.6 the words are reversed: subscribe means the service sends the message and publish means it receives it. Graphwake treats each channel, message name and direction as one contract, so a service that both sends and receives the same message has two.
The direction decides what counts as breaking. For a message the service publishes, the readers are protected: a change is breaking when a new message could be one an existing consumer cannot read. For a message the service receives, the senders are protected: a change is breaking when a message an existing sender already sends would no longer be accepted. It is the same split as a response body and a request body in OpenAPI.
| Change | A message the service publishes | A message the service receives |
|---|---|---|
| A field is removed | Breaking | Not breaking, unless the schema forbids extra properties |
| An optional field is added | Not breaking | Not breaking |
| A required field is added | Not breaking | Breaking |
| A required field becomes optional | Breaking | Not breaking |
| An optional field becomes required | Not breaking | Breaking |
| A field's type changes | Breaking | Breaking |
| An enum value is added | Not breaking, flagged for consumers that switch on it | Not breaking |
| An enum value is removed | Not breaking | Breaking |
A limit is tightened (maxLength lower, a new pattern, minimum higher) | Not breaking | Breaking |
| A limit is loosened | Breaking | Not breaking |
null becomes allowed | Breaking | Not breaking |
| The message is removed | Breaking | Breaking |
The contentType or the payload schema format changes | Breaking | Breaking |
The rules apply to JSON Schema payloads and to message headers, through nested objects, arrays and $refs. Descriptions, titles and examples never count as changes. A message whose channel address changes shows up as the old message removed and a new one added. The alert for the removal says it may have been moved and lists the messages added in the same version.
Avro and Protobuf payloads are compared as text. When one changes, Graphwake reports a single change to review instead of guessing at its fields, so it is never silent and never a false breaking alarm.
Write a document Graphwake can compare
Graphwake reads AsyncAPI 2.6 and 3.x, in YAML or JSON. A service can move from 2.6 to 3.0 between two versions and still be compared. A few habits keep the comparison exact:
- Name every message. Give each message a
name(or, in 2.6, amessageId). A message without one gets its name from elsewhere in the document, and that name can change when you upgrade from 2.6 to 3.0, which reads as one message removed and another added. - Send one file. References to other files or URLs are rejected. Bundle the document first, for example with
asyncapi bundle. - Use 2.6 or 3.x. Older 2.x documents are rejected with a message to upgrade.
asyncapi: 3.0.0
info:
title: orders-events
version: 1.2.0
channels:
ordersCreated:
address: orders.created
messages:
OrderCreated:
$ref: '#/components/messages/OrderCreated'
operations:
publishOrderCreated:
action: send
channel:
$ref: '#/channels/ordersCreated'
messages:
- $ref: '#/channels/ordersCreated/messages/OrderCreated'
components:
messages:
OrderCreated:
name: OrderCreated
contentType: application/json
payload:
type: object
required: [orderId, total]
properties:
orderId: { type: string }
total: { type: number }
discount: { type: number }orders-events publishes OrderCreated on the Kafka topic orders.created. Removing discount breaks every team that reads it.Send it from CI or a URL
In Graphwake, add a service and choose AsyncAPI as its contract, then send the document the same way as an OpenAPI spec: give Graphwake the URL where it is published and it is checked every 30 minutes, or add the CI agent to the pipeline that builds the service. The agent command does not change; only the file does.
- uses: graphwake/agent/github-action@v0.3.0
with:
spec: asyncapi.yaml
key: ${{ secrets.GRAPHWAKE_KEY }}Teams then subscribe to the messages they read, or to the ones they send to your service, the same way they subscribe to endpoints; the service’s Messages tab lists them with their owner and consumers. A pull request that removes discount stores a draft, so the subscribed teams can hear about it before the merge.
How Graphwake does it
Only the teams that use the message
Teams subscribe to the messages they depend on. A breaking change goes to those teams in Slack, Microsoft Teams or email, and to anyone who follows the message by email.
Told while it is a pull request
The CI step sends the AsyncAPI document from every pull request. On GitHub and Azure DevOps the pull request also gets a comment with the breaking changes and the teams they affect.
Both sides of a contract
When one service’s document receives a message that another service publishes on the same channel, Discovery suggests the receiving service’s owner team as a consumer. It becomes a subscription only when someone confirms it.
One map for HTTP and events
AsyncAPI services sit next to OpenAPI services on the service graph, with each message’s owner and the teams that depend on it. Every change set gets an impact score with public rules.
An Events menu in the dashboard
Message Changes lists the changes to the messages your teams use, filtered by publishes or receives, and each one can be marked handled. Channels lists every channel and message with the services that publish and receive it, the teams subscribed to it, and the ones nobody subscribes to yet.
When a schema registry alone is enough
- One team owns both ends of every topic, so nobody else needs to hear about a change.
- All you want is to stop an incompatible schema from being registered, and you do not need to know who reads it.
Next steps
- What breaks an HTTP client, change by change: OpenAPI breaking changes.
- Who should hear about a breaking change, and why: API breaking change alerts.
- What the alert looks like in each channel: API change notifications in Slack and Microsoft Teams.
Questions
Which AsyncAPI versions does Graphwake read?
AsyncAPI 2.6 and 3.x, in YAML or JSON, as one file. Older 2.x documents are rejected with a message to upgrade, and references to other files must be bundled into the document first.
Are Avro and Protobuf payloads checked?
They are compared as text. A changed Avro or Protobuf payload is reported as one change to review. The field rules in the table above apply to JSON Schema payloads and to message headers.
What counts as breaking for a message a service receives?
Anything that makes a message an existing sender already sends invalid: a new required field, an optional field made required, a removed enum value, a tighter limit, or a removed field when the schema forbids extra properties.
Which plans include event contracts?
Pro and Enterprise. Pro covers up to 500 event schemas (one for each message in your AsyncAPI documents), counted separately from endpoints. See pricing.
Pick an endpoint. See who it reaches. 7-day free trial. Cancel before day 7 and you pay nothing.
Start free trialSources and last verified
Sources checked on 2026-11-01.