Guide

Breaking changes in Kafka and Azure Service Bus messages

Last checked 2026-11-188 min read

A message on Kafka or Azure Service Bus breaks its consumers when a field they read disappears, changes type or moves to another channel, and the team that made the change often does not know who those consumers are. Graphwake reads your AsyncAPI documents (2.6 or 3.x), compares each new version with the last one message by message, and judges every change by direction: a message a service publishes must stay readable for the teams that read it, and a message it receives must keep accepting what its senders already send. Each breaking change goes only to the teams subscribed to that message, in Slack, Microsoft Teams or email. Event contracts are on the Pro and Enterprise plans.

ExamplePull request #318 · orders-events
#team-fulfillmentGraphwake in Slack

Breaking change in PR #318

Message: orders.created · OrderCreated (publishes) · orders-events

Owned by payments-team

  • payload.discount: property removed
  • payload.total: type changed from number to string

Author: dana-k

orders.created2 breaking changes
  • fulfillmentSlack #team-fulfillment
  • billingMicrosoft Teams
  • reportingEmail
  • searchquiet, not subscribed
In Graphwake: impact67/100High
A breaking change to one Kafka message reaches only the three teams that subscribed to it. search stays quiet. The impact score is in Graphwake, not in the message.

Graphwake is for you if

  • Your services talk over Kafka or Azure Service Bus, and the team that publishes a message cannot name every team that reads it.
  • You have, or can write, an AsyncAPI document (2.6 or 3.x) for each service.
  • A breaking change in a message should reach the teams that use it in Slack, Microsoft Teams or email while it is still a pull request.
  • You want HTTP endpoints and messages on one map of who owns what and who depends on it.

Already using a schema registry? Keep it. Graphwake works next to it.

On this page
  1. What breaks a consumer of an event
  2. Publish and receive follow opposite rules
  3. Write a document Graphwake can compare
  4. Send it from CI or a URL
  5. How Graphwake does it
  6. When a schema registry alone is enough
  7. Next steps
  8. Questions

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 discount gets nothing, or fails to deserialize the message.
  • A field changes type. total sent 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.

ChangeA message the service publishesA message the service receives
A field is removedBreakingNot breaking, unless the schema forbids extra properties
An optional field is addedNot breakingNot breaking
A required field is addedNot breakingBreaking
A required field becomes optionalBreakingNot breaking
An optional field becomes requiredNot breakingBreaking
A field's type changesBreakingBreaking
An enum value is addedNot breaking, flagged for consumers that switch on itNot breaking
An enum value is removedNot breakingBreaking
A limit is tightened (maxLength lower, a new pattern, minimum higher)Not breakingBreaking
A limit is loosenedBreakingNot breaking
null becomes allowedBreakingNot breaking
The message is removedBreakingBreaking
The contentType or the payload schema format changesBreakingBreaking

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, a messageId). 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.
yaml
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 }
A small AsyncAPI 3.0 document: 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.

yaml
- uses: graphwake/agent/github-action@v0.3.0
  with:
    spec: asyncapi.yaml
    key: ${{ secrets.GRAPHWAKE_KEY }}
The GitHub Actions step with an AsyncAPI document. GitLab CI, Azure DevOps, Bitbucket Pipelines and Jenkins take the same file; see inside the Graphwake CI agent.

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.

Good to know

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.
See who your next breaking change reaches.Paste a spec URL or add one CI step. 7-day free trial. Cancel before day 7 and you pay nothing.
Start free trial

Next steps

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 trial

Sources and last verified

Sources checked on 2026-11-01.