How to create multiple EmbeddedKafka, right now i have defined two topics on EmbeddedKafka.
@EmbeddedKafka(
partitions = 1,
topics = [Constants.TEST_TOPIC_one, Constants.TEST_TOPIC_two],
controlledShutdown = false,
brokerProperties = [
"offsets.topic.replication.factor=1",
"transaction.state.log.replication.factor=1",
"transaction.state.log.min.isr=1"
]
)
but i need to have two instance like below,
@EmbeddedKafka(
partitions = 1,
topics = [Constants.TEST_TOPIC_one],
controlledShutdown = false,
brokerProperties = [
**"offsets.topic.replication.factor=1",
"transaction.state.log.replication.factor=1",
"transaction.state.log.min.isr=1"**
]
)
@EmbeddedKafka(
partitions = 1,
topics = [Constants.TEST_TOPIC_two],
controlledShutdown = false,
brokerProperties = [
**"offsets.topic.replication.factor=2",**
"transaction.state.log.replication.factor=1",
"transaction.state.log.min.isr=1"
]
)
in the above block i will be changing replication.factor