Terminate a Spring Boot application that uses Kafka-Streams and MongoDB

riccardo_cardin

Riccardo Cardin

Posted on November 12, 2019

Terminate a Spring Boot application that uses Kafka-Streams and MongoDB

I have a Spring Boot application that uses Kafka-Streams. In details, there is a stream that filters the messages it receives using the results of a query performed in MongoDB. The code is something similar to the following.

final KStream<String, String> stream =
    kStreamBuilder.stream(Serdes.String(), Serdes.String(), inputTopic)
                  .filter((s, message) -> service.hasSomeProperty(message))
💖 💪 🙅 🚩
riccardo_cardin
Riccardo Cardin

Posted on November 12, 2019

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related