message-queue

message queue in C: implementing 2 way comm

ε祈祈猫儿з 提交于 2019-12-05 23:04:23
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 :) 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 yes you can send data to another process like #include <sys/types.h>

Azure Service Bus: transient errors (exceptions) received through the message pump with built-in retry policy. Why?

我的未来我决定 提交于 2019-12-05 19:08:32
I've been reading on the Event-Driven Message Programming Model introduced in April 2013, the OnMessageOptions.ExceptionReceived Event , the built-in RetryPolicy (May 2013, RetryPolicy.Default), The Transient Fault Handling Application Block (2011) which is outdated, and more (see bottom). I've been monitoring the exceptions received through the message pump for transient errors and I get daily MessagingCommunicationExceptions . This article (Updated: September 16, 2014), recommend the following : This exception signals a communication error that can manifest itself when a connection from the

Should an API Gateway Communicate via a Queue or directly to other μServices?

限于喜欢 提交于 2019-12-05 18:40:57
I was wondering which of my two methods is more appropriate, or is there event another one? (1) Direct Direct communication between GATEWAY and μSERVICE A UI sends HTTP request to GATEWAY GATEWAY sends HTTP request to μSERVICE A μSERVICE A returns either SUCCESS or ERROR Event is stored in EVENT STORE and published to QUEUE PROJECTION DATABASE is updated Other μSERVICES might consume event (2) Events Event-based communication via a message queue UI sends HTTP request to GATEWAY GATEWAY published event to QUEUE μSERVICE A consumes event Event is stored in EVENT STORE and published to QUEUE

Valid Architecture for a Message Queue & Worker System in PHP?

限于喜欢 提交于 2019-12-05 16:55:37
问题 I'm trying to wrap my head around the message queue model and jobs that I want to implement in a PHP app: My goal is to offload messages / data that needs to be sent to multiple third party APIs, so accessing them doesnt slow down the client. So sending the data to a message queue is ideal. I considered using just Gearman to hold the MQ/Jobs, but I wanted to use a Cloud Queue service like SQS or Rackspace Cloud Queues so i wouldnt have to manage the messages. Here's a diagram of what I think

ActiveMQ - delete/purge all queue via command line

落花浮王杯 提交于 2019-12-05 16:42:56
问题 Is there a way to delete / purge all queues in ActiveMQ via the command line (win/linux)? I could only find the commands for a specific queue. Or maybe there's a way to do this via the activeMQ admin? Again, I only found how to delete/purge the queues one by one, which can be very tedious. Thanks! 回答1: You can do tweak your activemq.xml a bit: <broker deleteAllMessagesOnStartup="true" ...> This works with KahaDB message stores (it has problems with JDBC message stores), all your messages get

Syntax for selecting messages by Jms ID

心已入冬 提交于 2019-12-05 16:04:44
What is the correct syntax for selecting messages based on their corresponding JMS ID? Currently I use: String selector = "JMSMessageID='ID:305:1:5:1:1'"; messageConsumer = session.createConsumer(getRetryQueue(), selector); The above syntax works in test with a mocked broker. But towards ActiveMQ the messages are not polled. Original code: @Override public Message readMessageFromRetryQueueByJmsId(String jmsId) throws QueueingException { Connection connection = null; Session session = null; MessageConsumer messageConsumer = null; Message message = null; try { connection = getConnectionFactory()

What open source message queuing software provides durability with strict ordering?

纵然是瞬间 提交于 2019-12-05 13:49:53
What we need is RabbitMQ that actually works as a queue and doesn't do this . Messages should stay at the head of a queue untill client dequeues them explicitly. It seems like a very straightforward scenario, but for some reason I can't find any broker to support it.. A broker should run on Windows OS. Apache Qpid is probably your best option. Of all of the message queues, this one has a number of interesting things going for it, including strict ordering . If it is only one message that is the problem, why not write it to a file (and flush the file) before you process the message. After

erlang - how to limit message queue or emulate it?

▼魔方 西西 提交于 2019-12-05 12:17:13
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. There are no built-in mechanisms to limit the size of the message queue for a process. The usual solution to this problem in erlang is to introduce a flow control protocol

Check Unix Message Queue if empty or not

天涯浪子 提交于 2019-12-05 11:32:51
Can some one tell me how to check if there is any message in message queue. the message queue is implemented in C in linux based operating system. I just want to check if there is any message in the message queue at a particular time. Just checking the amount (if any) of messages is done using the msgctl() function, and examining the msqid_ds structure on return, the msg_qnum in this structure is the amount of messages in the queue. Here is a link with an example: msgctl example , it does more then you want, but after the msgctl() call you just have to check that field in the structure I

Azure Service Fabric and Message Queues

China☆狼群 提交于 2019-12-05 10:46:42
问题 Now with Azure Service fabric, would there be a use-case for also using a separate queue solution such as Windows Service Bus? The downsides would probably be a new single point of failure, but are there upsides? Queues can add some buffering, but on the other hand, Service Fabric should be able to scale really well and offer stateful capabilities, so no queue buffers should be needed? 回答1: Sure, the upside is that services like Azure Service Bus and Azure Storage Queues offer features that