I have a problem with Kafka "Local: Value Serialization error".
var producerConfig = new ProducerConfig
{
BootstrapServers = bootStrapService,
MessageTimeoutMs = 5000
};
producerConfig.SecurityProtocol…
I'm using Apache Kafka as a Message Processor and using Confluent.Kafka in Asp.Net Core as a consumer.
I have to use a couple of consumers to process all the messages from the topic. My code works perfectly when I don't have any exceptions. 2…
If any message in kafka fails to be read, I want to save these messages in a new topic and retry the reading process a certain number of times. Meanwhile, I need to pause the reading process at the original location. How can I do that?
How can I write messages in producer at once and read 1 message per minute with consumer?
config properties I can use
note : please "max.poll.records" note that I cannot use the method
My consumer class:
var settings =…
I wonder how is it possible to integrate the ConfluentKafka NuGet in a .net standard 2.1 proj?
In the description at nuget.org, it seems that it can run when projects' target framework is up to .net standard 2.0 / .net core 2.1.
Practically I've…
Is it possible to consume only a specific number of messages like 10 or 50 or 100 messages from the 1000 that are in the queue? I was looking at 'fetch.max.bytes' config, but it seems like it is for a message size rather than number of messages.
I…
My application has to consume messages from a kafka topic at specific time or when triggered.
So when my consumer sits there without consuming messages, it gets removed from the consumer group.
Application maximum poll interval(300000ms) exceeded by…
I'm using the OpenTelemetry collector agent to send logs to a Kafka streaming layer. I want to consume these log messages in a .NET Kafka consumer (for now), but I'm having a few issues. OTEL appears to use Protobuf serialization which is making it…
I want to implement multi-threaded Kafka consumer in .NetCore which is given in the image below. In java, we can retrieve multiple records using Poll method and can get records of each partition. I want to implement the same thing in .net.
Java…
I have been working with the Kafka .NET Client, everything is working but right now the timestamp is automatically set and what I need is to be able to send my own timestamp.
var kp = new kafkaDatapoint
{
value = p.Value,
tags =…
Test Result Picture
When I use confluent.kafka-net, and I want to ensure the order of kafka message in .netcore, I create a mschannel,
_msChannel = Channel.CreateUnbounded();
when listening, I got a consume result and a received message, and
if…
I am trying to split a stream into multiple partition on the basis of a partition key but apparently its not working.
The implementation is such that I have a Class lets say Metrices
public class Metrice {
public string MetriceType { get; set;…
Some people don't recommend to use kafka to implement request/response pattern in micro-service world.
but I am not yet clear why it is not recommended ? At the same time, I see spring kafka is supported this pattern out of the box while .net…
Can someone tell me how to implement request response pattern using kafka with .net core (2.1,2. or 3.1). I prefer to implement this pattern using MassTransit which is light weight message bus. I was not able to find reference implementation among…