Quantcast
Channel: Active questions tagged consumer - Stack Overflow
Browsing all 87 articles
Browse latest View live

What is the difference between Unary-Operator functional-interface to...

I was wondering what is the difference between Unary-Operator and Consumer functional interfaces?Eventually, both of them get a function and apply it to a generic T.Thank you in advance!

View Article


Apache camel JPA component multiple consumer environment, consume same message

I am using Apache camel JPA component as consumer. This consumer will be running in multi instance environment. Now I want to make sure consumer from each instance should not read same records, so that...

View Article


Can we use Mockoon in a publisher Consumer queues setup use case or scenario

No details to add as it's a question more around use case or scenario.

View Article

multiple consumers per kinesis shard

I read you can have multiple consumer apps per kinesis stream.http://docs.aws.amazon.com/kinesis/latest/dev/developing-consumers-with-kcl.htmlhowever, I heard you can only have one consumer per shard....

View Article

Java/Spring boot/ActiveMq/Sleuth Consumer app do not have traceId/spanId in logs

I have 2 Spring boot project in java, one for Producing messages(Producer.app) and the second one for Consuming messages(Consumer.app)Plese help me to understand how to get traceId/spanId in the logs...

View Article


Is there any way for `Kafka Producer` to connect with the `database`?

I had to connect Kafka Producer into a direct text file with the Kafka-Connector framework.For the same thing, I tried to connect with the database. But there are no drivers to connect with the...

View Article

make consumer as coroutine and producer as main thread in lua

This is the consumer-producer , producer as coroutine and consumer as main thread:function receive (prod) local status, value = coroutine.resume(prod) return valueend function send (x)...

View Article

Improving throughput of Kafka consumer pull when using multiple consumers

I am running 3 red panda's brokers with replication on 3 k8s nodes, this works perfectly fine. now I am connecting with java client and try to compare performance to learn more about configuration....

View Article


General axiom of revealed preferences, explanation?

I understand the weak and strong axiom of revealed preferences, but have a problem understanding GARP. I also don't understand how to recognize it on a graph. Can someone expalin it both in words and...

View Article


Reset consumer offset to the beginning from Kafka Streams

I am using Kafka streams and want to reset some consumer offset from Java to the beginning.KafkaConsumer.seekToBeginning(...) sounds like the right thing to do, but I work with Kafka...

View Article

Publisher - Consument (publisher as controller) rabbitmq and redis

I have functional code, but I want to ask if this approach is correct when I use 'publisher in the controller' or if it is commonly used that way. I will post the entire code here where I use RabbitMQ...

View Article

Consumer Group Assignment

Let’s say I have a Consumer Group that consumes from:Topic a with 3 partitionsTopic b with 2 partitionsThere are a total of 2 topics and 6 partitions.If I assign 3 consumers to the group, will the...

View Article

How to close the kafka consumer in python at x min?

I am writing a kafka message to a file in python and want to close the consumer at x time.consumer = KafkaConsumer(bootstrap_servers='xxx:xx', group_id=mygroupid, security_protocol='SSL',...

View Article


using functional interfaces in java [closed]

I have ProductSettings and ProductType. Product settings determine whether product types are enabled or not.ProductSettings productSettings = new ProductSettings() .setIsTreasuryInfoEnabled(true)...

View Article

Solution of Consumer problem in Wolfram Mathematica doesn't work

I'm trying to solve a contrained consumer problem with Cobb-Douglas preferences with Wolfram Mathematica 13.1. This problem is simple and can be solved analyticaly.But my code doesn't work.Utility =...

View Article


The remote certificate is invalid according to the validation procedure:...

The code in consumer side is:public class CategoriesController : Controller{ Uri baseAddress = new Uri("https://IP ADDRESS:5000/api/"); private readonly HttpClient _httpClient; public...

View Article

Kafka consumer not pausing when needed

I'm using the v2 of the lib https://github.com/confluentinc/confluent-kafka-go to consume from my topic from multiple partitions.when I start my consumer, looks fine, but for business reasons, I need...

View Article


Junit for Consumer class returning lambda

I am writing junit test case for below for consumer class which has below method.@Bean @Transactional public Consumer<Message<String>> response() { return message -> { Acknowledgment ack...

View Article

How to get all the messages from kafka topic and count them using java?

This code sometimes gives me all the messages from the beginning and waiting for another message and sometimes it's just waiting for another messageimport java.util.HashMap;import java.util.List;import...

View Article

Acknowledge when the client has completely processed the message. Rabbitmq

var consumer = new EventingBasicConsumer(channel);consumer.Received += (model, ea) =>{ var eventName = ea.RoutingKey; var message = Encoding.UTF8.GetString(ea.Body); ProcessEvent(eventName,...

View Article
Browsing all 87 articles
Browse latest View live