In my application, I have producers publishing to a kafka topic (with only 1 partition) & multiple consumers (each consumer is in its own consumer group) consuming from the topic. Now, for some reason I need to use the transactional kafka producer (using the spring-kafka library).
My question is regarding the transactional.id prefix. The docs here specify how to pick up a transactional.id but I think its more relevant for use cases where you have a read-process-consume cycle (and that too for multiple partitions/topic)
For my simple use case, is it sufficient that the transactional.id can be a random string. Does it have to be the same across process restarts/any other scenarios ?
Tried reading many docs on this topic but couldn't get clarity. Thanks