When to use data quality interceptors
Use data quality interceptors when you need to:- Enforce schema contracts — reject records that don’t match an expected Avro, Protobuf, or JSON Schema
- Apply business rules — validate field values using CEL expressions (e.g., age > 0, email not null)
- Prevent bad data propagation — stop invalid records before they reach consumers and cause processing failures
- Observe without blocking — audit violations in real time without interrupting producer traffic
Available policies
| Policy | Use case |
|---|---|
| Data quality policy | CEL expression and JSON Schema validation on topic messages |
| Data quality producer policy | Validate records at produce time before they are written to the topic |
| Schema payload validation policy | Enforce that records use a registered Schema Registry schema ID |