title: Should i create NewTopics in each service spring kafka?
body: <p>I'm using Kafka for sending messages between services. I use NewTopic bean for configuring number of partitions, for example:</p>
  <pre><code> @Bean
      fun kafkaTopic(kafkaProperties: KafkaProperties): NewTopic = NewTopic(
          kafkaProperties.topics.schedulerCalculationTopic.name,
          kafkaProperties.topics.schedulerCalculationTopic.partitions,
          1
      )
  </code></pre>
  <p>My question is simple, should i add this bean into consumer service and producer service or only in one of them?</p>