message-queue

Building a high performance and automatically backupped queue

时间秒杀一切 提交于 2019-12-11 17:12:47
问题 Please give me some hints on my issue. I'm building a queue data structure that: has a backup on hard disk at realtime and can restore the backup Can respond to massive enqueue/dequeue request Thank you! 回答1: Is this an exercise your doing. If not, you should probably look at some of the production message queueing technologies (e.g. MSMQ for Windows) which supports persisting the queues on the disk and not just storing them in memory. In terms of your requirements 1. has a backup on hard

How to use eventbus messaging in vertx?

怎甘沉沦 提交于 2019-12-11 16:19:33
问题 I followed the instructions in sample and ran: vertx run eventbus_pointtopoint/receiver.rb -cluster vertx run eventbus_pointtopoint/sender.rb -cluster Then I only got: ➜ ruby vertx run eventbus_pointtopoint/receiver.rb -cluster Starting clustering... No cluster-host specified so using address 192.168.56.1 Succeeded in deploying verticle ➜ ruby vertx run eventbus_pointtopoint/sender.rb -cluster Starting clustering... No cluster-host specified so using address 192.168.56.1 Succeeded in

How to simulate broadcast message passing between Thread

青春壹個敷衍的年華 提交于 2019-12-11 14:42:14
问题 I'm writing a small concurrent program using Python 3.6. I have a question: my program has a small Thread class (which simulates a thread); this class has within it 3 methods that are executed as sub-threads: class myThread(Thread): def __init__(self, identifier): super(myThread, self).__init__() def fun1(self): # broadcasts messages def fun2(self): # event that occurs when a message arrives # do something def fun3(self): # event that occurs when a message arrives # do something def run(self)

RabbitMQ — Why are my Routing Keys being ignored when using topic exchange

笑着哭i 提交于 2019-12-11 11:13:29
问题 I'm using RabbitMQ to coordinate events between a collection of services as follows: User Manager emits user.collect when it wants user data to be collected from a separate service listens for user.collected which is emitted by a separate service User Collector listens for user.collect when it is supposed to collect some user data, and emits user.collected when it's collected the data. There are also other services that listen for events like user.created , user.updated , user.deleted In

Azure ServiceBus: Client.Receive() returns null for messages > 64 KB

若如初见. 提交于 2019-12-11 10:36:11
问题 I'm using a BrokeredMessage containing a Stream with a serialized object. According to the documentation the stream is part of the body not the header which is restricted to 64 KB. The overall message with about 67 KB is well below the limit of 256 KB for the message-size of ServiceBus queues. I'm able to send a message and it shows up in the queue with the correct message-size. After issuing the Receive -command the packet is removed from the queue and the counter is decremented accordingly.

Queued Message Handler VIs in parent SubVI which execution type is set to be as preallocated (?)

怎甘沉沦 提交于 2019-12-11 10:09:09
问题 I am creating an sample of a communication server through LabVIEW. In the main VI I have a server and clients: Execution of the last is set as preallocated clone reentrant. I use Queued Message Handler to transfer messages and commands between server and clients. The picture below is the client VI (preallocated clone reentrant execution) with highlighted Queued Message SubVIs. In my previous question I asked about execution type of SubVIs in the Client VIs (preallocated) and got answer that

Sending files over MSMQ

江枫思渺然 提交于 2019-12-11 06:37:27
问题 In a retail scenario where each stores report their daily transaction to the backend system at the end of the day. Today a file consisting of the daily transactions and some other meta information is transferred from the stores to the backend using FTP. I’m currently investigating replacing FTP with something else. MSMQ has been suggested as an alternative transport mechanism. So my question is, do we need to write a custom windows service that sticks the daily transactions file into a

How to do publisher timeouts in rabbitmq + pika

折月煮酒 提交于 2019-12-11 05:25:14
问题 Given that rabbitmq implements flow control, which can slow some of the message publishing down, How can one use timeouts. Also, as pika also doesnt implement publisher confirms, which language and library are recommended for publishing code 来源: https://stackoverflow.com/questions/12248331/how-to-do-publisher-timeouts-in-rabbitmq-pika

Processing items in SQS queue with a php script

旧城冷巷雨未停 提交于 2019-12-11 05:16:06
问题 Here's my situation: I have a script that gets raw data, saves it in the database, get the item id then posts it to an amazon SQS queue. I have another script (written in PHP) that retrieves the raw data from the db and processes it. (it takes a couple of minutes usually. The missing part is how to retrieve the messages from SQS to be processed. The frequency of new data to process varies, it can go from a few items per hours to dozens of items per minute. One way would be to have a cron job

UNIX message queue msgrcv failed to receive message

二次信任 提交于 2019-12-11 04:27:37
问题 Dear Friends, Any idea why the msgrcv is receiving a blank buffer? Here is the code: enter code here #include <sys/msg.h> #include <unistd.h> #include <sys/types.h> #include <stdio.h> #include <string.h> typedef struct mymsg { long mtype; char mtext[24]; }mymsg; int main() { int msqid; mymsg msg,buff; msqid=msgget(IPC_PRIVATE,IPC_CREAT|IPC_EXCL); if(msqid==-1){ perror("FAiled to create message queue\n"); } else{ printf("Message queue id:%u\n",msqid); } msg.mtype=1; strcpy(msg.mtext,"This is a