Skip to content

Releases: kmcclellan/kafka-di

Confluent 2.2

21 Jul 19:57
Compare
Choose a tag to compare

Changes to accommodate new members on IAdminClient in the Confluent library.

3.0 Package Compatibility

21 Jul 19:52
Compare
Choose a tag to compare

Specify that version 3.0 of this library is not compatible with version 2.2 of Confluent.Kafka.

Confluent 2.1

16 Apr 16:41
Compare
Choose a tag to compare

Changes to accommodate new members on IClient and IConsumer abstractions in the Confluent library.

Full Changelog: v3.0.0...v3.0.1

Kafka Client Options (v3)

28 Mar 11:56
Compare
Choose a tag to compare

Version three of this library replaces a number of components with KafkaClientOptions. It leverages the options pattern instead working directly with IServiceCollection. It also introduces default binding of librdkafka string config properties to IConfiguration. See README/example for usage.

Upgrade guide:

The namespace for the AddKafkaClient extension has changed from Confluent.Kafka.DependencyInjection to Confluent.Kafka.

Instances of ProducerConfig, ConsumerConfig, or AdminClientConfig that were passed to v2 AddKafkaClient(config) should instead be passed via the options builder:

services.AddKafkaClient().Configure(opts => opts.Configure(config));

Raw config properties in the form of string key/value pairs should be bound to the Kafka configuration section, using a config provider such as JSON or in-memory.

Serialization types registered with the container are no longer automatically picked up by injected clients and will need passed via the options builder:

services.AddKafkaClient().Configure<ISerializer<string, string>>((opts, serializer) => opts.Serialize(serializer));

Implementations of event handler types will also need passed to the builder using delegates (KafkaClientOptions.OnError(...) etc.).

"Typed clients" are no longer supported. If you need your application to support different configurations, I suggest exploring named options with IOptionsFactory<KafkaClientOptions>.

v3.0.0-test3

27 Mar 01:09
Compare
Choose a tag to compare
v3.0.0-test3 Pre-release
Pre-release

New options-based implementation (testing)

v3.0.0-test2

21 Mar 03:53
Compare
Choose a tag to compare
v3.0.0-test2 Pre-release
Pre-release

New options-based implementation

v3.0.0-test

10 Mar 03:58
Compare
Choose a tag to compare
v3.0.0-test Pre-release
Pre-release

New options-based implementation

Full Changelog: v2.2.0...v3.0.0-test

v2.2.0

17 Feb 04:26
e1b8b2a
Compare
Choose a tag to compare

NuGet Package

What's Changed

Full Changelog: v2.1.2...v2.2.0

Service Scope Fixes

02 Feb 19:18
Compare
Choose a tag to compare

Addresses two bugs related to service scopes:

  • Previously, all consumers/producers resolved by DI shared a service scope. Instances of any Kafka handlers/serializers registered as scoped would be shared by all clients. Now, each client uses a distinct scope shared by all its handlers/serializers (useful if you want two different handlers to share state).
  • Previously, any disposable handlers/serializers initialized by IKafkaFactory would be disposed with the service provider (regardless of how many clients were created). Now, they are disposed with the clients.

Full Changelog: v2.1.1...v2.1.2
NuGet Package: https://www.nuget.org/packages/Confluent.Kafka.DependencyInjection/2.1.2

v2.1.1

03 Jan 15:23
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v2.1.0...v2.1.1