On Azure Eventhub Can i have a kafka producer and a Eventhub client consumer for the same events ?
Yes, you can produce events to Azure Event Hubs using a Kafka producer (e.g., .NET Confluent Kafka client via port 9093) and consume those events using a non-Kafka .NET client such as EventProcessorClient.
https://learn.microsoft.com/en-us/azure/event-hubs/azure-event-hubs-apache-kafka-overview
can those events be consumed by a non kafka .net azure eventhub EventProcessorClient?
Yes, events sent to Event Hubs using a Kafka producer are stored in partitions the same way as native Event Hubs events and can be consumed using the EventProcessorClient.
https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-about
does mapping of headers happen automatically ? from byte array to string ?
No, header values sent via Kafka producers are typically stored as byte[] in the EventData.Properties dictionary. The conversion to string is not automatic,you must manually deserialize the headers in your consumer logic.
https://learn.microsoft.com/en-us/dotnet/api/azure.messaging.eventhubs.eventdata.properties?view=azure-dotnet
https://learn.microsoft.com/en-us/azure/event-hubs/event-hubs-faq
if the above answer was helpful. If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.