Offset management with Kafka #641
Replies: 1 comment 9 replies
-
Hi Hugo, Proton does not use consumer groups for consuming messages from Kafka topics. Instead, it handles offsets with checkpoints. When creating a materialized view to read data from a Kafka external stream, there is a settings called CREATE MATERIALIZED VIEW my_view AS SELECT * FROM my_external_stream SETTINGS checkpoint_interval=60; Then, when checkpoint is triggered, proton will save the offsets for each partition it has consumed into the checkpoint store. And if the MV gets interrupted, for instance, proton restarts, the MV will firstly fetch the offsets from the checkpoint store and start read messages from those offsets + 1. Also, it's possible to specify from which offsets the query should query from with the
I hope this answers your question. |
Beta Was this translation helpful? Give feedback.
-
Hello Proton team,
I'm wondering how Proton handles offsets in Kafka. Is autocommiting something that is feasible?
I see that ClickHouse handles this nicely and I just wondered whether Proton follows the same pattern.
Cheers,
Hugo
Beta Was this translation helpful? Give feedback.
All reactions