title: Kafka and C# - Send Message To Specific Partition
body: <p>I run Kafka with Docker,</p>
  <p>First I created a topic like this,</p>
  <p><em>docker exec -t kafka kafka-topics --bootstrap-server :9092 --create --topic kafka-test --partitions 5 --replication-factor 1</em></p>
  <p>As you see, there are 5 partitions, I used the code below</p>
  <p><a href="https://i.stack.imgur.com/epGgx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/epGgx.png" alt="Kafka C# Codes" /></a></p>
  <p>I think this code probably produces messages but for only Partition 3,</p>
  <p>it works but divides data for all partitions so not only for partition 3... and some of them are below like P2 and P0 (Partition2 - Partition0)</p>
  <p>BUT I just want to produce messages for only specific partition...</p>
  <p>Do I miss something ? or Do I get something wrong?</p>
  <p>Consumer Codes below</p>
  <p><a href="https://i.stack.imgur.com/vz59G.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/vz59G.png" alt="enter image description here" /></a></p>
  <p>This the picture of Consumer..</p>
  <p><a href="https://i.stack.imgur.com/SIkZ9.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/SIkZ9.png" alt="Kafka values" /></a></p>