props.put("client.id", properties.getClientId());
props.put("group.id", properties.getConsumerProperties().getGroupId());
props.put("enable.auto.commit", false);
+ props.put("isolation.level", "read_committed");
if (properties.getConsumerProperties().getAutoOffsetReset() != null)
{
props.put("auto.offset.reset", properties.getConsumerProperties().getAutoOffsetReset().name());
Properties props = new Properties();
props.put("bootstrap.servers", properties.getBootstrapServer());
props.put("client.id", properties.getClientId());
- props.put("transactional.id", "my-tx");
+ props.put("transactional.id", properties.getClientId());
props.put("acks", properties.getProducerProperties().getAcks());
props.put("batch.size", properties.getProducerProperties().getBatchSize());
props.put("metadata.maxage.ms", 5000); // 5 Sekunden