title: Apache Flink dynamic number of Sinks
body: <p>I am using Apache Flink and the KafkaConsumer to read some values from a Kafka Topic. 
  I also have a stream obtained from reading a file. </p>
  
  <p>Depending on the received values, I would like to write this stream on different Kafka Topics. </p>
  
  <p>Basically, I have a network with a leader linked to many children. For each child, the Leader needs to write the stream read in a child-specific Kafka Topic, so that the child can read it. 
  When the child is started, it registers itself in the Kafka topic read from the Leader. 
  The problem is that I don't know a priori how many children I have. </p>
  
  <p>For example, I read <code>1</code> from the Kafka Topic, I want to write the stream in just one Kafka Topic named <code>Topic1</code>.
  I read <code>1-2</code>, I want to write on two Kafka Topics (<code>Topic1</code> and <code>Topic2</code>).</p>
  
  <p>I don't know if it is possible because in order to write on the Topic, I am using the Kafka Producer along with the <code>addSink</code> method and to my understanding (and from my attempts) it seems that Flink requires to know the number of sinks a priori.</p>
  
  <p>But then, is there no way to obtain such behavior?</p>