Tuesday, August 22, 2023

Consumer Transaction Ayarları

Isolation Level
Açıklaması şöyle
Consumers can read messages with different isolation levels.
- In read_uncommitted mode, consumers read messages as soon as they are written.
- In read_committed mode, consumers only read messages that are committed.
Örnek
Şöyle yaparız
Properties props = new Properties();
...

// Set isolation level to read_committed
props.put(ConsumerConfig.ISOLATION_LEVEL_CONFIG, "read_committed");

No comments:

Post a Comment

kafka-consumer-groups.sh komutu

Giriş Bir topic'i dinleyen consumer'ları gösterir. Aynı topic'i dinleyen consumer group'ları olabilir. Her topic farklı part...