Confluent wire format

The framing that schema-registry serializers put in front of each record: a zero magic byte, then a four-byte big-endian schema ID, then the encoded data.

In more detail

The magic byte marks the value as framed this way, and the schema ID tells the consumer which schema to fetch. The five-byte prefix is a convention between clients; the broker ignores it.

Example

struct.pack('>bI', 0, schema_id) + payload

Related terms

Taught in

References

Certification courses