message-queue

Publish message using exchange and routing key using MassTransit

喜夏-厌秋 提交于 2020-01-14 12:46:08
问题 I've been looking at MassTransit for a couple of weeks now and I'm curious about the possibilities. However, I don't seem to be able to get the concepts quite right. Expected behaviour I wanted to publish message to "direct" exchange with routing key which is bind to two different queue for performing other activities. When I attempted the same logic using MassTransit for better scalability. I've found MassTransit creates own exchange based on queue name with fanout type. Classic code to

Publish message using exchange and routing key using MassTransit

↘锁芯ラ 提交于 2020-01-14 12:46:05
问题 I've been looking at MassTransit for a couple of weeks now and I'm curious about the possibilities. However, I don't seem to be able to get the concepts quite right. Expected behaviour I wanted to publish message to "direct" exchange with routing key which is bind to two different queue for performing other activities. When I attempted the same logic using MassTransit for better scalability. I've found MassTransit creates own exchange based on queue name with fanout type. Classic code to

What happens to fetched messages when RabbitMQ consumer crashes?

谁都会走 提交于 2020-01-14 09:53:06
问题 If I have a RabbitMQ consumer that retrieves 100 messages in bulk, but then it crashes before it can mark those messages as processed, are those messages lost? I want every message in the queue to be processed at least once. What's the recommended approach to deal with consumers that crash before they've acknowledged messages? Does RabbitMQ put them back on the queue somehow, or what do I need to do to make it happen? 回答1: What's the recommended approach to deal with consumers that crash

message queue in C: implementing 2 way comm

雨燕双飞 提交于 2020-01-13 14:56:18
问题 I am a student and a begineer in C. I want to implement 2 way communication using message queue in C linux. Do I need two queues or only one to get this done? Also I would like to know can I send data(shown in code) to another process or i need to declare it as a character array. typedef struct msg1 { int mlen; char *data; }M1; typedef struct msgbuf { long mtype; M1 *m; } message_buf; Thanks in advance :) 回答1: Also I would like to know can I send data(shown in code) to another process or i

message queue in C: implementing 2 way comm

浪子不回头ぞ 提交于 2020-01-13 14:55:48
问题 I am a student and a begineer in C. I want to implement 2 way communication using message queue in C linux. Do I need two queues or only one to get this done? Also I would like to know can I send data(shown in code) to another process or i need to declare it as a character array. typedef struct msg1 { int mlen; char *data; }M1; typedef struct msgbuf { long mtype; M1 *m; } message_buf; Thanks in advance :) 回答1: Also I would like to know can I send data(shown in code) to another process or i

erlang - how to limit message queue or emulate it?

送分小仙女□ 提交于 2020-01-13 10:44:07
问题 Right now I am doing Process ! Message, but as i googled a bit, a message queue size is only limited to memory. I have a tree of processes where leaves generate messages and feed up to the root and i need to limit queue or switch to some another method of doing the same. more of it, sometimes Process gets messages from one leaf and sometimes from two leaves. In the second case I need different finite queues for eave leaf. 回答1: There are no built-in mechanisms to limit the size of the message

Tibco EMS protocol

核能气质少年 提交于 2020-01-13 05:48:07
问题 I am trying to interface with a Tibco EMS server using node.js and am curious if this is possible using entirely open source solutions solely in node.js. I do not want to use Tibco's Web Messaging solution. So then this brings us to... does Tibco EMS speak any standard protocol like AMQP? Could I talk to it over a raw tcp socket? I have thought about setting up a Java service to simply handle message routing but ideally I would like the entire solution to be in node.js. I just need to be able

AMQP Delay Delivery and Prevent Duplicate Messages

巧了我就是萌 提交于 2020-01-13 04:40:27
问题 I have a system that will generate messages sporadically, and I would like to only submit either zero or one message every 5 minutes. If no message is generated, nothing would be processed by the queue consumer. If a hundred identical messages are generated within 5 minutes I only want one of those to be consumed from the queue. I am using AMQP(RabbitMQ), is there a way to accomplish this within rabbitmq or the AMQP protocol? Can I inspect a queue's contents to ensure that I don't insert a

In RabbitMQ how to consume multiple message or read all messages in a queue or all messages in exchange using specific key?

て烟熏妆下的殇ゞ 提交于 2020-01-05 12:08:23
问题 I want to consume multiple messages from specific queue or a specific exchange with a given key. so the scenario is as follow: Publisher publish message 1 over queue 1 Publisher publish message 2 over queue 1 Publisher publish message 3 over queue 1 Publisher publish message 4 over queue 2 Publisher publish message 5 over queue 2 .. Consumer consume messages from queue 1 get [message 1, message 2, message 3] all at once and handle them in one call back listen_to(queue_name , num_of_msg_to

XPending cycle is making CPU 100%

↘锁芯ラ 提交于 2020-01-03 19:06:10
问题 Good day! I have a little bit of troubles making a xlib project. Here is the structure of my project: [ Init ] [ Making some stuff ] [ Creating a timer thread (see code below) ] [ Main cycle (see code below) ] When the user presses any button, I set the flag in the thread to true-like value and it starts to send CustomMessage to the window every n time. while (warehouse.destroyflag != SML_DEAD) { if (XPending(warehouse.display)) { XNextEvent(warehouse.display, &event); But there is a bit of