diff --git a/README.md b/README.md index 3657f6b..6c9b9f4 100644 --- a/README.md +++ b/README.md @@ -270,13 +270,17 @@ special processing of these messages. ### SchemaRegistry Support: -There is limited support for schema registry in zkafka. A schemaID can be hardcoded via configuration. No -communication is done with schema registry, but some primitive checks can be conducted if a schemaID is specified via -configuration. +zkafka supports schema registry. It extends `zfmt` to enable this adding three `zfmt.FormatterType`: +``` + AvroSchemaRegistry zfmt.FormatterType = "avro_schema_registry" + ProtoSchemaRegistry zfmt.FormatterType = "proto_schema_registry" + JSONSchemaRegistry zfmt.FormatterType = "json_schema_registry" +``` + +This can be used in ProducerTopicConfig/ConsumerTopicConfig just like the others. Examples have been added +`example/producer_avro` and `example/worker_avro` which demonstrate the additional configuration (mostly there to enable the +schema registry communication that's required) -Below is a breakdown of schema registry interactions into two subcategories. One is `Raw Handling` where the configurable -foramtter is bypassed entirely in favor of operating with the value byte arrays directly. The other is `Native Support` which -attempts to create confluent compatible serializations, without communicating with schema registry directly. #### Producers diff --git a/changelog.md b/changelog.md index ca74bb1..56f6277 100644 --- a/changelog.md +++ b/changelog.md @@ -4,6 +4,13 @@ All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning. +## 1.1.0 (Sep 22, 2024) + +1. Added support for schemaregistry (avro, proto, json). Extended `zfmt.FormatterType` types to include `avro_schema_registry`, `proto_schema_registry` and `json_schema_registry` +2. Added lifecycle function `LifecyclePostReadImmediate` +3. Added `workFactory.CreateWithFunc` which is a convenience work factory method for creating work using a callback instead of an interface (can reduce boilerplate) in some scenarios. + + ## 1.0.2 (Sep 6, 2024) 1. Updated `WithDeadLetterTopic` option to borrow username and password from ConsumerTopicConfig when those issues aren't specified on DeadLetterTopicConfig