I am using reactor library to fetch the large stream of data from the network and sending it to the kafka broker using the reactive kafka approach.
Below is the Kafka Producer I am using
public class LogProducer {
private final…
I am doing a prototype integrating Spring Cloud Gateway with Reactive Kafka. My goal is to push the post body to kafka. I have access to Flux which could potentially give me the body in chunks. Need expert advice how to convert this Flux of…
I have a data in string format. I need to send it to kafka producer to a specific partition but using reactive kafka ie making async call. How to achieve this using code ? I checked reactive kafka docs but unfortunately I dont have much idea about…
From this article https://www.confluent.io/blog/transactions-apache-kafka/
Using vanilla Kafka producers and consumers configured for at-least-once delivery semantics, a stream processing application could lose exactly once processing semantics in…
I am using Akka Streams Kafka and I am looking for a way to do the following:
Initiation stream from offset x
Consume sequentially items x, x+1, x+2 .. until the last item
Once the last item has been consumed, complete the stream.
Code would look…
I'm using reactive-kafka (akka kafka streams):
https://doc.akka.io/docs/akka-stream-kafka/current/consumer.html
What is the equivalent of the below code using reactive-kafka?
import org.apache.kafka.clients.consumer.KafkaConsumer
...
val properties…
Related: scala.concurrent.Future wrapper for java.util.concurrent.Future
This came from my other question:
How to integrate akka streams kafka (reactive-kafka) into akka http application?
I have a AKKA HTTP application, and I'd like to send a…
I have a basic scala akka http CRUD application. See below for the relevant classes.
I'd simply like to write an entity id and some data (as json) to a Kafka topic whenever, for example, an entity is created/updated.
I'm looking at…
I am new using akka streams kafka (and akka streams in general) . I am trying to construct a graph in order to publish a message to different topics.
How can I connect the producer as flow in order to commit the processed messages ? I tried using…
I need to build the following graph:
val graph = getFromTopic1 ~> doSomeWork ~> writeToTopic2 ~> commitOffsetForTopic1
but trying to implement it in Reactive Kafka has me down a rabbit hole. And that seems wrong because this strikes me as a…
We recently switched to Reactive Kafka. It seems kafka does not throw any error if the topic exists while creating stream for the topic. Why is it so?
I know that existence of a topic can explicitly be checked with AdminUtils.topicExists(zkClient,…
iam developing reactive kafka in our play scala project, in the project we created 5 topic which are subscribed by consumer group and working good, now the problem is i created a new topic, how can i add this topic to the existing consumer group…
When sending a large file using Kafka, is it possible to distribute it across partitions and then re-assemble it using Akka-Stream? as described in this…
I looked at the following documentation: https://github.com/akka/reactive-kafka and I saw the following code snippet:
implicit val actorSystem = ActorSystem("ReactiveKafka")
implicit val materializer = ActorMaterializer()
val kafka = new…
I have to work with a code from reactive-kafka module: https://github.com/akka/reactive-kafka/blob/master/README.md
My code starts with:
val kafka = new ReactiveKafka()
val kafkaIdpsMsgs: Publisher[StringKafkaMessage] = kafka.consume(
…