简体   繁体   中英

How can I run KafkaStream application with Micronaut?

From https://micronaut-projects.github.io/micronaut-kafka/latest/guide/#kafkaStream , I can see there is an easy way of running an app which runs KStream.

If I don't want to use KStream, but want to use KafkaStream API with topology pattern, is this something achievable with Micronaut?

Yes, you sure can. Kafka streams is a client library that you add as a dependency and package together with your application. It does not depend on how you deploy it, you should consider number of instances / threads thought as it's directed related to how the load is shared between your application instances.

And just for clarify the confusion Kafka Streams is the Library name and KStream is the type that you can use in your application, please check the below links for clarification.

https://kafka.apache.org/22/documentation/streams/core-concepts

https://docs.confluent.io/current/streams/javadocs/index.html?org/apache/kafka/streams/kstream/package-summary.html

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