Apache Kafka Streams Materializing KTables to a topic seems slow

前端 未结 1 1308
暗喜
暗喜 2021-02-20 01:39

I\'m using kafka stream and I\'m trying to materialize a KTable into a topic.

It works but it seems to be done every 30 secs or so.

How/When does Kafka Stream

1条回答
  •  故里飘歌
    2021-02-20 02:12

    This is controlled by commit.interval.ms, which defaults to 30s. More details here: http://docs.confluent.io/current/streams/developer-guide.html

    The semantics of caching is that data is flushed to the state store and forwarded to the next downstream processor node whenever the earliest of commit.interval.ms or cache.max.bytes.buffering (cache pressure) hits.

    and here:

    https://cwiki.apache.org/confluence/display/KAFKA/KIP-63%3A+Unify+store+and+downstream+caching+in+streams

    0 讨论(0)
提交回复
热议问题