I am using confluent-kafka-dotnet (Confluent.Kafka) to produce messages for Kafka.
I would like to manually manage which partitions messages go to in order to preserve order for certain groups of messages.
How is it possible to get a list of PartitionTopic for a Kafka topic?
I have looked at this solution in Java.
But I don't understand how to achieve the same functionality with Confluent.Kafka.
Alternatively, it would be acceptable to send messages with keys, because the same keys are guaranteed to be on the same partitions. But again, I could not find a way to create a new Message with any key type other than Null. So, an example of sending a message with a non-null key would be helpful.