Questions tagged [consumer]
649 questions
0
votes
1 answer
Hazelcast Queue ItemListener for Pending Item (Producer-Consumer Concept)
I have 2 nodes that use Hazelcast.
Node A is a Producer, it puts items into a Queue
Node B is a Consumer, it consume or pool items from the Queue.
I add ItemListener into Node B
so when an item added to the queue, the consumer will notice and start…
0
votes
2 answers
Trying to solve consumer-producer in java with multithreading
I'm trying to solve the producer consumer problem with threads in java, but the code won't run in parallell/concurrently. The producer always fills up the buffer completely before the consumer starts to consume, and I don't get why. The point is…

user1784297
- 103
- 12
0
votes
1 answer
JMS queue consumer: synchronous receive() or single-threaded onMessage()
I need to consume from a Q, and stamp a sequence key on each message to indicate the ordering. i.e. the consumption needs to be sequential. From performance/throughput point of view, would I be better off using a blocking receive() method, or an…

wqt
- 1
- 1
0
votes
1 answer
Segmentation fault in C multithreaded consumer-producer program
I'm currently being introduced to the concept of threading programs, and have been given an assignment to simulate a stockmarket using threads and semaphores. Here is the code:
#include
#include
#include
#include…

M. M. F.
- 35
- 10
0
votes
2 answers
Unknown error in Producer/Consumer program, believe it to be an infinite loop
I am writing a program that is solving the producer/consumer problem, specifically the bounded-buffer version(i believe they mean the same thing). The producer will be generating x number of random numbers, where x is a command line parameter to my…

ray2k
- 1
- 2
0
votes
3 answers
Consumer producer pattern where producer waits for all consumers to complete before retriggering itself?
I'm trying to figure out the best approach in Java in this case (any version) to implement a single producer multiple consumer where I use ExecutorService (by preference, not need) where the producer needs to run "forever" but each time it runs, it…

Jason
- 3
- 2
0
votes
1 answer
Google as consumer in OpenID context?
It is a quite interessting concept realizing Single Sign on with OpenID.
I am using an OpenID Provider like (my.xlogon.net), and have registered few webpages with it and it works like a charme.
But I am not able to register per example my Google…

bt047265
- 1
- 1
0
votes
1 answer
Consumer allocation RabbitMQ
Need help in designing the rabbit-mq consumer distribution.
For eg,
There are 100 queues and 10 threads to consume messages from that 100 queue.
Each thread will be consuming messages from 10 queue each.
Question 1 : How to dynamically assign the…

user1182253
- 1,079
- 2
- 14
- 26
0
votes
0 answers
Producer Consumer Multithreaded printf issues
I have written a program which simulates the producer consumer problem and I am running into a couple of issues. This was written using Win32 API.
I am using two semaphores full and empty to perform the counting for the buffer where items are…

TImmuh
- 57
- 1
- 2
- 10
0
votes
2 answers
How do I implement my own semaphore in C?
I'm working on solving the Producer/Consumer problem through different methods. The one I'm currently working on involves my own implementation of a semaphore, paired with Peterson's solution to protect the semaphore's down() and up() function…

user1988892
- 5
- 2
0
votes
0 answers
Rabbitmq queuing system not being consumed using fanout
ive been trying to fanout those queues using a ruby consumer very simple it just subscribes to that exchange/queues and it receives the message. now the problem whenever a new message is published. they dont receive the message which means they are…

Waheed
- 608
- 1
- 5
- 20
0
votes
1 answer
MassTransit Consumer never invoked when using Windsor Integration
I can't seem to get the Castle Windsor Integration working for Mass Transit over RabbitMQ. Everything was working fine until I introduced Windsor into the picture. I referenced Castle.Windsor 3.2 and MassTransit.WindsorIntegration 2.9 and configured…

nub340
- 51
- 5
0
votes
1 answer
software design for multiple producer single consumer in Java
I have multiple producers, each pushing data into there own Blocking queues.
The data from each producer is processed independently, (hence the separate queues).
My single consumer currently polls each of those queues, with a timeout on each. …

user3312154
- 235
- 3
- 14
0
votes
1 answer
Selection by Event Type (or Event parameter type) possible with Reactor and Spring?
I want to use Reactor something like that:
reactor.notify(new CreatedEvent(a));
reactor.notify(new CreatedEvent(b));
Where my event is simply:
public class CreatedEvent extends Event {
public CreatedEvent(E data) {
…

Benjamin M
- 23,599
- 32
- 121
- 201
0
votes
1 answer
Consumer's selector issue on activeMQ
The scenario:I send fifty thousand messages to the queue named JUST.CN. And seting one message propertyString "myfilter='abc'" every 1000 message.Now I create consumer with the same selctor to consume messages.However the comsuming rate is very slow…

Yolanda
- 33
- 1
- 7