I have the following use case : Log files that comes from a single data source to be pushed to a Kafka topic (Say Topic 1). There is a consumer who will read from it and converts to json format and writes back to another topic (Topic 2). Another consumer who is expecting data in json will read from Topic 2 will do some other modification and writes back to another Topic (Topic 3).
My question is instead of creating 3 different topics, can I create a single topic and have these multiple producers write to the same topic? How will my consumer know which partition to read from since a group id cannot be set for a producer? One solution I learnt from SO is to create partitions and make each producer to write to a particular partition alone. Problem with this approach is that number of producers and consumers might change and modifying the topic is not desired. Please advice.