You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(kafka): Add support for confluent message indices. (#1902)
* fix(kafka): Add support for confluent message indices.
* Make Generator classes non-instantiable (they are static utility classes).
* Make generator classes final.
The tool will output base64-encoded values for Protobuf products that can be used in `../events/kafka-protobuf-event.json`.
48
+
The tool will output base64-encoded values for Protobuf products that can be used in `../events/kafka-protobuf-event.json`. This generator creates samples with and without Confluent message-indexes to test different serialization scenarios.
49
49
50
50
## Output
51
51
@@ -55,6 +55,13 @@ Each generator produces:
55
55
2. An integer key (42) and one entry with a nullish key to test for edge-cases
56
56
3. A complete sample event structure that can be used directly for testing
57
57
58
+
The Protobuf generators additionally create samples with different Confluent message-index formats:
59
+
- Standard protobuf (no message indexes)
60
+
- Simple message index (single 0 byte)
61
+
- Complex message index (length-prefixed array)
62
+
63
+
For more information about Confluent Schema Registry serialization formats and wire format specifications, see the [Confluent documentation](https://docs.confluent.io/platform/current/schema-registry/fundamentals/serdes-develop/index.html#wire-format).
64
+
58
65
## Example
59
66
60
67
After generating the samples, you can copy the output into the respective event files:
Copy file name to clipboardExpand all lines: powertools-kafka/src/main/java/software/amazon/lambda/powertools/kafka/serializers/KafkaProtobufDeserializer.java
0 commit comments