Questions tagged [consumer]
649 questions
8
votes
1 answer
React context consumer was rendered with multiple children error
I simply try to use react provider but somehow i get this error:
index.js:1437 Warning: A context consumer was rendered with multiple children, or a child that isn't a function. A context consumer expects a single child that is a function. If you…

Tolima
- 117
- 1
- 1
- 9
8
votes
2 answers
How to verify that Amazon Kinesis Python client is working
I'm trying to build an Amazon Kinesis Python consumer using the KCL library for Python (https://github.com/awslabs/amazon-kinesis-client-python). I started by checking the sample code. I was able to run both producer and consumer scripts parts of…

Carlos
- 161
- 7
8
votes
1 answer
Consuming Spring Hateoas Pageable
I have a Rest-Service using HAteoas, what worked before without pageing. Now I am producing pageable Json. I did it with out-of-the box features from Spring-Hateoas. But now I am stucking consuming it and I guess it is really not well documented, if…

Michael Hegner
- 5,555
- 9
- 38
- 64
8
votes
3 answers
Kafka Consumer in C++
I have been searching for C++ kafka consumer. I came across following which are for C++ kafka but there is no consumer.
https://github.com/adobe-research/libkafka (Only sample…

user3619015
- 176
- 1
- 1
- 9
8
votes
4 answers
Producer/consumer system using database (MySql), is this feasible?
I need to use something to coordinate my system with several consumers/producers each running on different machines with different operating systems. I have been researching on using MySql to do this, but it seems ridiculously difficult.
My…

johnrl
- 873
- 3
- 14
- 18
7
votes
1 answer
XUnit unit tests for MassTransit consumer
I am using MassTransit 5.5.5 version and xunit 2.4.1
My consumer looks like this
public class StorageInformationConsumer : IConsumer
{
private readonly IBus _serviceBus;
private readonly…

user1532976
- 469
- 2
- 8
- 15
7
votes
3 answers
Using Lambda functions to Consume all objects provided by a Supplier
Looking for how to use Java lambda functions so Consumer can process all objects provided by a Supplier, and get rid of the explicit while loop and null checks.
I have a Supplier of String keys for a database and I want to use a Consumer to process…

ScottK
- 1,526
- 1
- 16
- 23
7
votes
1 answer
RabbitMQ - Consume multiple queues by priority
I have a requirement to upgrade our Producer/Consumer infrastructure.
The current setup look like this:
Set of 3 queues with different priority (low, med, high).
When one our customers generate a task (i.e Process an image):
The Producer add the…

eldad87
- 195
- 1
- 13
7
votes
4 answers
Kafka High Level Consumer Fetch All Messages From Topic Using Java API (Equivalent to --from-beginning)
I am testing the Kafka High Level Consumer using the ConsumerGroupExample code from the Kafka site. I would like to retrieve all the existing messages on the topic called "test" that I have in the Kafka server config. Looking at other blogs,…

user3307283
- 71
- 1
- 1
- 2
7
votes
1 answer
RabbitMQ consumer on demand?
I want a consumer to perform some actions every time that a message is received. Must the consumer be running 24/7 "listening" to the queue or it can be run only when an appropiate message is received?

vicmarq
- 197
- 1
- 11
7
votes
2 answers
BlockingCollection multiple consumer
I have the following code with one producer thread and multiple consumer threads. Do you know if multiple consumers are thread safe. For example is there any chance that thread 1 is consuming and while do that thread 2 consume in parallel and change…

pantonis
- 5,601
- 12
- 58
- 115
7
votes
3 answers
Solution to slow consumer(eventProcessor) issue in LMAX Disruptor pattern
While using the disruptor, there may be a consumer(s) that is lagging behind, and because of that slow consumer, the whole application is affected.
Keeping in mind that every producer(Publisher) and consumer(EventProcessor) is running on a single…

Syed Waqas
- 2,576
- 4
- 29
- 36
7
votes
1 answer
Camel file consumer template - threads remaining alive
I have a problem very similar to http://camel.465427.n5.nabble.com/FTP-ConsumerTemplate-Threads-remaining-alive-td5548338.html.
How do you kill Camel locked threads on different endpoints? I tried to remove endpoints and stop ConsumerTemplate after…

Baranowski Witek
- 71
- 3
6
votes
1 answer
RabbitMQ Consume Messages in Batches and Ack them all at once
I have a RabbitMQ queue in which I post thousands of messages. I need a background Service that will:
Retrieve the messages in batches of 100 messages
Store those 100 messages in a Database
Ack all 100 messages at once
Proceed with the next batch…

Katia S.
- 197
- 2
- 13
6
votes
2 answers
Order guarantees using streams and reducing chain of consumers
So as it goes in the current scenario, we have a set of APIs as listed below:
Consumer start();
Consumer performDailyAggregates();
Consumer performLastNDaysAggregates();
Consumer repopulateScores();
Consumer updateDataStore();
Over…

Naman
- 27,789
- 26
- 218
- 353