I am currently working with akka streams and building a reactive application. My understanding so far is when async boundary is set,
Each stage(Flow) runs in an actor. Is that true?
Calling mapAsync is similar to applying async to the…
I have asked this question already on Google Groups, but have not received any response yet. So posting this here for a different audience.
We are using Reactive-Kafka for our application. We have a scenario as below, where we want to stop sending…
I'm receiving a file as a Bytestring from Kafka Reactive Streams consumer; I want to construct an akka-http request with this Bytestring as an entity HttpEntity.Default. HttpEntity.Default requires Source[Bytestring, Any] as one of its…
Trying to modify kafka flux which is listening on a kafka topic to accept messages at slow rate. But the blow code is giving exception.
public class SampleConsumer {
private static final Logger log =…
tldr: Using spring, reactive, kafka, webflux, coroutines, need to somehow connect receiver Flux to coroutine Flow, but are GlobalScope and Dispatcher.Unconfined the right tools for the job?
The context of the question:
I am using spring, reactive…
I create a Reactive Kafka producer that works in Spring. See code below:
KafkaPayload payload = new KafkaPayload(1, "value 1");
String topic = "a.kafka.topic";
Map props =…
I am working on an application where I have multiple consumers for each Topic partition so there is concurrency in reading from the topic. I followed this link to ensure that the consumer gets created again if the existing consumer stops. .repeat…
I am working on a project that has 2 services: both reading, transforming the messages and then writing to another Kafka. The Kafka configuration for both these services are different. Here is my application.yml
spring:
kafka:
…
We need an example on how to test ReactiveKafkaConsumerTemplate and ReactiveKafkaProducerTemplate with an embedded-kafka-broker. Thanks.
CORRECT CODE IS HERE AFTR DISCUSSION
You can have your custom de-serializer accordingly to use custom…
I have a common rest controller:
private final KafkaReceiver receiver;
@GetMapping(produces = MediaType.APPLICATION_STREAM_JSON_VALUE)
public Flux produceFluxMessages() {
return…
This is a subsequent question to a previous reactive kafka issue (Issue while sending the Flux of data to the reactive kafka).
I am trying to send some log records to the kafka using the reactive approach. Here is the reactive code sending messages…
I have a following consumer in my Spring Boot (WebFlux/R2DBC/Reactor Kafka) application
@EventListener(ApplicationStartedEvent::class)
fun onMyEvent() {
kafkaReceiver
.receive()
.doOnNext { record ->
…
I have a similar problem to this question and I do not see an accepted answer. I have researched through and did not get a satisfactory answer.
I have a reactive Kafka consumer (Spring Reactor) with a poll amount 'x' and the application pushes the…
Our application uses springBootVersion = 2.0.4.RELEASE along with compile('io.projectreactor.kafka:reactor-kafka:1.0.1.RELEASE') dependency.
The Kafka Broker that we have is at version 1.0.1.
Intermittently when we send the messages onto Kafka by…
I am trying to use Akka Kafka Streams following the Akka Kafka Streams documentation. Here is the code I have:
ConsumerSettings consumerSettings = ConsumerSettings
.create(actorSystem, new…