I'm new in java, spring and kafka
I have the next code for sending message
kafkaTemplate.send(topic, message);
My configuration for producer:
props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG,
bootstrapServers);
props.put(ProducerConfig.KEY_SERIALIZER_CLASS_CONFIG,
IntegerSerializer.class);
props.put(ProducerConfig.VALUE_SERIALIZER_CLASS_CONFIG,
StringSerializer.class);
// value to block, after which it will throw a TimeoutException
props.put(ProducerConfig.MAX_BLOCK_MS_CONFIG, 5000);
I want to send message with my consumer group (example "MyConsumerGroup"),
but I don't know how I can to do it
thanks for help