Skip to main content
Filter by
Sorted by
Tagged with
Best practices
0 votes
2 replies
44 views

I am designing a system using .NET that acts as a MES system between 200+ pieces of equipment (IoT devices). The flow is bidirectional: Equipment -> My .NET System -> Equipment I need low ...
fancyBobLol's user avatar
0 votes
0 answers
82 views

I have a .NET application that uses the Confluent client library to send messages to Kafka with a transactional producer. It uses a pool of producers to avoid threading issues with transactions, and ...
Glen Hughes's user avatar
  • 4,890
0 votes
0 answers
16 views

I am trying to use DeliveryReport handler with Produce. I want to simulate that there is a Kafka problem by tuning off the Kafka server so delivery fails. However I was expecting to get a ...
Magnus's user avatar
  • 83
0 votes
2 answers
494 views

I’m working with two Kafka topics. The first topic is consumed by a continuous consumer that processes messages as soon as they arrive. If the processing fails for any message, that message is ...
Veoxer's user avatar
  • 460
1 vote
0 answers
52 views

I have to consume messages from a topic on a Kafka cluster with 10 partitions where messages are being evenly distributed accros them. I have a ASP.NET application with 10 background services where ...
Boris Marković's user avatar
-1 votes
1 answer
1k views

i am new to kafka and my requirement is to implement SASL PLAINTEXT (username/ password) security in kafka broker(s). i tried different things but on success till now. what i have confs i did were ...
zeeshan's user avatar
  • 85
0 votes
1 answer
25 views

Multiple consumers sharing the same ConsumerGroupId read data from multiple topics (from multiple threads if that matters). All topics have multiple partitions, AutoCommit is set to false for all ...
vladimir_1969_2's user avatar
1 vote
1 answer
171 views

I'm struggling with an issue that I cannot understand. With this configuration, I can successfully produce a message; var config = new ProducerConfig { BootstrapServers = bootstrapServers, ...
ff8mania's user avatar
  • 1,820
0 votes
1 answer
116 views

I have a .NET Consumer of a Kafka topic that uses the Confluent .NET API. I want to always read from the end of the topic. For example, if the Consumer disconnects for a while and then reconnects, I ...
erase.ego's user avatar
  • 125
0 votes
0 answers
74 views

I am producing a message to a topic "ITEM_PRICES" using dontnet(Confluent.kafka) library). This Message is meant to be a Key,Value pair with the Key as a string and value as float. I setup ...
Katleho mokoena's user avatar
0 votes
0 answers
36 views

I need to convert .NET DateTime fields to the corresponding Kafka Java types as declared on the Java library before producing messages to Kafka. How to convert a .NET DateTime to Kafka Timestamp & ...
chsakell's user avatar
  • 180
0 votes
1 answer
241 views

Which configuration parameter controls the number of connections the librdkafka producer opens toward the kafka broker? I use librdkafka for producing the message into the kafka. I discovered it uses ...
Ankit's user avatar
  • 109
1 vote
0 answers
340 views

I'm experiencing inconsistent failures in my Kafka integration tests using TestContainers. The tests involve simple produce and consume operations along with database seeding, but sometimes they pass ...
Sandro Revazishvili's user avatar
0 votes
0 answers
225 views

My team and I are relatively new to Kafka and have had some success running kafka locally via a docker compose file and podman. One of my colleagues created the compose file, configuring the config ...
Tim Butterfield's user avatar
1 vote
0 answers
281 views

.NET 6 Confluent.kafka v1.9.3 I have created a Confluent Kafka Consumer client application to receive messages from topic which is working as expected. Now I am trying to create Nunit test project for ...
useruser00's user avatar
1 vote
0 answers
27 views

I can't speak English. Sorry in advance. i used kafka consume in uniyt. and i want safe shutdown kafka. so i used Close() or Dispose() in OnApplicationQuit(), but unity not work and force quit. using ...
Seol's user avatar
  • 11
1 vote
0 answers
571 views

I am using following simple code (based on confluent Kafka) to connect and subscribe to a Kafka topic. After I call this method, it takes up to 5-10 seconds until I get the consume result. The server ...
Mdarende's user avatar
  • 801
1 vote
2 answers
1k views

I am using Confluent Kafka library for consuming data from a Kafka topic with the code below. I am consuming the messages one by one in a while loop, staring with the last message. (Previous messages ...
Mdarende's user avatar
  • 801
0 votes
1 answer
865 views

I start to consume from the last message of a Kafka topic with following code. (Confluent Kafka). What I want to do is: I want to consume the last 50 messages of a Kafka topic wait for 5 seconds and ...
Mdarende's user avatar
  • 801
1 vote
1 answer
2k views

In my C# code I programmed a consumer with Confluent Kafka. I am reading the timestamp of the message and want to convert it to the know time and date format. I tried following code but get always ...
Mdarende's user avatar
  • 801
1 vote
1 answer
2k views

I want to consume my kafka topic using multiple tasks in task parallel library. var tasks = new List<Task>(); consumer.Subscribe(topicName); var capacity = 5; var counter = 0; while (true) { ...
barteloma's user avatar
  • 6,965
0 votes
0 answers
123 views

Kafka Consumer error: System.InvalidOperationException: FATAL: Cannot marshal from a NULL ptr . Any idea why this error is happening? This is with confluent kafka dot net nuget library. Some cases ...
RPV's user avatar
  • 1
1 vote
1 answer
408 views

I have setup MassTransit with Kafka and Outbox pattern var confluentConfiguration = builder.Configuration.GetSection("Kafka").ToConfluentConfiguration(); builder.Services.AddSingleton<...
esskar's user avatar
  • 11k
0 votes
0 answers
111 views

I am trying to store batch of messages that failed to publish to kafka in DB and have added a callback deliveryReport for the same. However, when broker is up and running and there is no other issue, ...
Student_begin's user avatar
0 votes
1 answer
235 views

In my usecase tha data source (CNC machine) is sending data (flow value of a liquid) to a Kafka topic in one second interval. There a machanism in the source side that provides that the data is send ...
Mdarende's user avatar
  • 801
0 votes
1 answer
1k views

In my .net C# project (with Confluent Kafka library) currently I am using following code to read the newest message from a Kafka topic. But with this code I can read the newest message from the ...
Mdarende's user avatar
  • 801
-1 votes
1 answer
278 views

Currently Confluent Kafka dotnet supports three subject name strategy: Topic Name Record type TopicRecord type I want to create a custom subject strategy where I can generate subject & schema ...
vikash sinha's user avatar
0 votes
1 answer
281 views

When sending a message to Kafka there is a rebalancing that freezes the process of Kafka for a time equal to the balancing, there are logs in which the error is indicated. How to fix it? [2023-09-25 ...
vanilla_attila's user avatar
0 votes
0 answers
844 views

I have an Azure Function KafkaTrigger (using azure functions kafka extension: https://github.com/Azure/azure-functions-kafka-extension) which is set to consume messages from Kafka with Avro schema ...
michn's user avatar
  • 436
0 votes
1 answer
3k views

We have a topic with 6 partitions. Traffic is not excessive by Kafka terms. We are using a 3-broker cluster in AWS MSK. We are using the Confluent Kafka package for .NET. When we consume the topic, ...
Matthew Allen's user avatar
1 vote
0 answers
863 views

I am trying to run producer/consumer/ktable code in kafka and I keep getting this error message even though the topics are the same. It was working 2 days ago and I haven't touched my code since but ...
anon's user avatar
  • 11
1 vote
1 answer
565 views

I have set up a Kafka server with 1000 partitions and 1 Topic. Basically, the data that gets stored in the cluster are status updates of objects. There are about 17000 of these objects and I produce ...
atthijs98's user avatar
3 votes
2 answers
2k views

Hi I am working in Kafka and .Net. I am trying to produce message as below. I have created configuration for schema registry and producer as below. I am using certificates to connect to schema ...
Niranjan's user avatar
  • 351
0 votes
0 answers
312 views

I have worked out a Kafka concept which is built up in such a way that I have a series of machines which have electric airpressure dustextraction and machinenStatus data. I have set up my Kafka ...
tebrex_rtk's user avatar
1 vote
1 answer
4k views

Any hints on how to get a simple .Net Kafka client to connect to a broker? I built Apache Kafka from the 3.4.0 download and followed the quick start successfully (topic created, events produced, ...
me_online's user avatar
  • 411
0 votes
1 answer
4k views

I created a C# Kafa client with Confluent.Kafka, and I have been trying to read the latest message only from two different topics, but it reads all messages, not just the latest one. Here is my kafka ...
Ahmed Elshorbagy's user avatar
0 votes
0 answers
368 views

net core console application. I have below implementation of kafka consumer var config = new ConsumerConfig { GroupId = groupId, BootstrapServers = brokerList, SaslMechanism = ...
Niranjan's user avatar
  • 351
1 vote
1 answer
1k views

using System; using System.Collections.Generic; using System.Net; using System.Security.Authentication; using System.Threading.Tasks; using Confluent.Kafka; class program { static async Task Main(...
Aviksha Ramya Koneri's user avatar
1 vote
3 answers
6k views

I have following code for reading data from a Kafka topic. My target is periodically to read just the last newest message in the topic because I want use the data in a live chart. I have written the ...
Mdarende's user avatar
  • 801
0 votes
1 answer
780 views

I created a Kafka producer, using Confluent library, as a console app that ran as a scheduled task to submit some error records to Kafka broker periodically. Worked fine. I have to convert this to run ...
NoBullMan's user avatar
  • 2,252
0 votes
1 answer
615 views

I am using Confluent.Kafka package v2.0.2 that I downloaded via NuGet in a .NET project in order to create a Kafka Consumer and I noticed that Confluent's docs (this page for instance) include many ...
Guy_g23's user avatar
  • 395
0 votes
3 answers
6k views

I have configured the MSK cluster and allowed public access through SASL/SCRAM authentication method. Now I am facing the issue where I do not have the necessary permissions when using these ...
hcerim's user avatar
  • 997
0 votes
1 answer
1k views

I'm trying to create a simple Kafka consumer in c# using the below code private static CancellationTokenSource StartConsumer(IAdminClient client, string topicName) { ConsumerConfig config = new() ...
Harsimranjeet Singh's user avatar
3 votes
1 answer
6k views

This is the first time I am trying to connect to Kafka server using Asp.Net console app and I ran into a bunch of issues. I solved most but can't shake this one off. I am testing the producer part ...
NoBullMan's user avatar
  • 2,252
0 votes
2 answers
1k views

I am trying to write a unit test that verifies that adding a new property to an Avro schema is backwards compatible. First I took the Avro generated .cs model and saved it as MyModelOld.cs and renamed ...
JALLRED's user avatar
  • 985
0 votes
1 answer
500 views

I have two broker and I want to restrict 2nd one with particular messages for particular region. for example we have multiple region in world to provide our services like china, India I just wanted to ...
akshay verma's user avatar
0 votes
2 answers
8k views

I have a consumer application which I would like to speed up. Most of the time consumer is waiting for http response from the third party system hence I cannot proceed with other messages in queue and ...
user2412672's user avatar
  • 1,479
1 vote
2 answers
1k views

I'm programming a Kafka Consumer in an ASP.NET web application, all seems good but every time I run the consumer, it consumes all messages in the topic. Here the Consumer config. ConsumerConfig = new ...
SerPecchia's user avatar
2 votes
0 answers
2k views

I am getting some random timeout errors while publishing messages using Confluent.Kafka. The application runs in a Kubernetes cluster and is built using the .NET 6 framework. When the default timeout (...
Catalin's user avatar
  • 41
0 votes
0 answers
670 views

I use Confluent.Kafka 1.9.2 C# library to create single Kafka consumer for listening topic with several partitions. Currently consumer drain out all messages from first partition and only then goes to ...
Dmitriy Marov's user avatar