/
Kafka Consumer Event Signature Change (Breaking)

Kafka Consumer Event Signature Change (Breaking)

The original Kafka Consumer device events included types from the Confluent.Kafka library. This created a hard dependency on the Confluent.Kafka library and can lead to version mismatches and other unexpected behavior.

To remedy this, all dependencies on Confluent.Kafka have been removed.

The original signature of the KafkaMessageConsumedEventArgs included

public ConsumeResult<Ignore, string> ConsumeResult { get; }

which has been replaced with

public IKafkaConsumeResult<string> KafkaConsumeResult { get; }

The IKafkaConsumeResult has the following signature:

public interface IKafkaConsumeResult<TValue> { string Topic { get; } int Partition { get; } long Offset { get; } TValue Value { get; } DateTime UtcTimeStamp { get; } IEnumerable<IKafkaHeader> Headers { get; } bool IsPartitionEOF { get; } } public interface IKafkaHeader { string Key { get; } byte[] ValueBytes { get; } }

Related content

Connexion v16.1 RC3 (16.1.4243)
Connexion v16.1 RC3 (16.1.4243)
More like this
Connexion v16.1 RC5 (16.1.4470)
Connexion v16.1 RC5 (16.1.4470)
More like this
Connexion v16.1 RC4 (16.1.4410)
Connexion v16.1 RC4 (16.1.4410)
More like this
Connexion v16.1 R10 (16.1.5272)
Connexion v16.1 R10 (16.1.5272)
More like this
Kafka Reader Device
Kafka Reader Device
More like this
Connexion v16.1 R1 (16.1.4565)
Connexion v16.1 R1 (16.1.4565)
More like this