liveBook · Manning

None compatibility

As explained in Apache Kafka in Action

No compatibility is a schema policy in which consumers must remain synchronized with the producer and cannot rely on reading data across schema versions.

No compatibility is a schema policy in which consumers must stay synchronized with producers and cannot rely on reading data across schema versions. Producers may add or remove fields freely, but consumers can struggle with historical data and unsynchronized deployments. section 13.1.2

Renaming product fields

In a supermarket product schema, renaming fields breaks compatibility in both directions: a consumer expecting the previous version cannot read the new data, while a consumer expecting the new version cannot handle old data. The policy fits a producer and consumer managed by one team when Kafka data is not retained for long. section 13.1.2

Figure 13.2 We consider schema compatibility from the consumer’s perspective and which schema versions they can understand. If we can’t or don’t want to guarantee any compatibility, a consumer can only understand their own schema version. A backward-compatible consumer can read historical data but can’t handle newer data. A forward-compatible consumer can read new data, but not historical data. The optimum is a consumer that can read both historical and new data, which is fully compatible in both directions.
A screenshot of a computer

AI-generated content may be incorrect.

Compare which schema versions consumers can understand when no compatibility is guaranteed. section 13.1.2

How Apache Kafka in Action covers it

How deep it goes
Defines synchronization risks and field-change consequences, but does not provide deployment procedures or compatibility tooling.
Examples
Uses a supermarket product schema and field renaming to demonstrate failures across versions.
What it assumes
Assumes producers, consumers, schemas, schema versions, and retained historical data.
What you can do after
Evaluate whether schema changes require synchronized consumer and producer updates.
How it connects
Contrasts with backward compatibility, forward compatibility, and full compatibility.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Apache Kafka in Action. The section links point to the parts of the book it draws on.