Skip to content
Discussion options

You must be logged in to vote

so you are applying aggregate functions in ks, data ending in a state store, and you want to process all the state store data using pc, and write it to a db?
sure- have a look at the KS section in the docs. But basically, just output the state store to a topic, and then use pc to read from the topic.
https://github.com/confluentinc/parallel-consumer#streams-usage-code

Have a look at the streams example project in the repo.

    builder.<String, String>stream(inputTopic)
            .mapValues((key, value) -> {
                log.info("Streams preprocessing key: {} value: {}", key, value);
                return String.valueOf(value.length());
            })
            .groupByKey()
     …

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by astubbs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants