简体   繁体   中英

Writing to same topic on kafka

使用confluent-kafka-dotnet v0.9.5上的ProduceAsync方法在Kafka上写入同一主题时,它将覆盖默认分区和偏移量(P0,O0)上的数据,还是将其写入分区上的下一个可用偏移量?

It will not overwrite. Please refer to the documentation here Kafka Topics

Brief explaination

Kafka works with pub-sub mechanism, meaning publishers send data to a topic and there can be multiple of them. The data will be written to current offset and any subscriber who is reading from this topic will be given data as per the consumer offset. The data will be retained to disk in a kafka cluster as per the configuration for desired interval of time or desired size of the file.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM