message-queue

Resubmitting a message from dead letter queue - Azure Service Bus

别来无恙 提交于 2019-12-19 06:26:20
问题 I have created a service bus queue in Azure and it works well. And if the message is not getting delivered within default try (10 times), it is correctly moving the message to the dead letter queue. Now, I would like to resubmit this message from the dead letter queue back to the queue where it originated and see if it works again. I have tried the same using service bus explorer. But it gets moved to the dead letter queue immediately. Is it possible to do the same, and if so how? 回答1: The

Processing messages is too slow, resulting in a jerky, unresponsive UI - how can I use multiple threads to alleviate this?

a 夏天 提交于 2019-12-19 04:09:13
问题 I'm having trouble keeping my app responsive to user actions. Therefore, I'd like to split message processing between multiple threads. Can I simply create several threads, reading from the same message queue in all of them, and letting which ever one is able process each message? If so, how can this be accomplished? If not, can you suggest another way of resolving this problem? 回答1: You cannot have more than one thread which interacts with the message pump or any UI elements. That way lies

How can I read messages from a queue in parallel?

老子叫甜甜 提交于 2019-12-18 18:07:08
问题 Situation We have one message queue. We would like to process messages in parallel and limit the number of simultaneously processed messages. Our trial code below does process messages in parallel, but it only starts a new batch of processes when the previous one is finished. We would like to restart Tasks as they finish. In other words: The maximum number of Tasks should always be active as long as the message queue is not empty. Trial code static string queue = @".\Private$\concurrenttest";

Android Handler Message and ListView

ⅰ亾dé卋堺 提交于 2019-12-18 15:32:22
问题 Here's my error: *** Uncaught remote exception! (Exceptions are not yet supported across processes.) android.util.AndroidRuntimeException: { what=1008 when=368280372 } This message is already in use. at android.os.MessageQueue.enqueueMessage(MessageQueue.java:171) at android.os.Handler.sendMessageAtTime(Handler.java:457) at android.os.Handler.sendMessageDelayed(Handler.java:430) at android.os.Handler.sendMessage(Handler.java:367) at android.view.ViewRoot.dispatchAppVisibility(ViewRoot.java

Custom Error Queue Name when using EasyNetQ for RabbitMQ?

只谈情不闲聊 提交于 2019-12-18 13:23:12
问题 Rather than having my unhandled exceptions go into EasyNetQ_Default_Error_Queue I wondered if there is a way that I can explicitly state the name of an Error Queue that should be used for a given application, so errors don't ALL end up in this one EasyNetQ_Default_Error_Queue ? I can see how to specify regular message queue names but haven't managed to find anything about Error Queue names. 回答1: Yes, you can customize the naming conventions by overriding the delegates on the IConventions

Rebalancing issue while reading messages in Kafka

你离开我真会死。 提交于 2019-12-18 12:16:32
问题 I am trying to read messages on Kafka topic, but I am unable to read it. The process gets killed after sometime, without reading any messages. Here is the rebalancing error which I get: [2014-03-21 10:10:53,215] ERROR Error processing message, stopping consumer: (kafka.consumer.ConsoleConsumer$) kafka.common.ConsumerRebalanceFailedException: topic-1395414642817-47bb4df2 can't rebalance after 4 retries at kafka.consumer.ZookeeperConsumerConnector$ZKRebalancerListener.syncedRebalance

Messaging, Queues and ESB's - I know where I want to be but not how to get there

徘徊边缘 提交于 2019-12-18 11:59:56
问题 To cut a long story short, I am working on a project where we are rewriting a large web application for all the usual reasons. The main aim of the rewrite is to separate this large single application running on single server into many smaller decoupled applications, which can be run on many servers. Ok here's what I would like: I would like HTTP to be the main transport mechanism. When one application for example the CMS has been updated it will contact the broker via http and say "I've

Queues against Tables in messaging systems [closed]

一曲冷凌霜 提交于 2019-12-18 10:17:23
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 8 years ago . I've been experiencing the good and the bad sides of messaging systems in real production environments , and I must admit that a well

Is this the right way to use a messaging queue?

我的梦境 提交于 2019-12-18 03:12:15
问题 I am new to messaging queues, and right now I am using ZeroMQ on my Linux server. I am using PHP to write both the client and the server. This is mainly used for processing push notifications. I am using the basic REQ-REP Formal-Communication Pattern on single I/O-threaded ZMQContext instances, as they have demonstrated. Here is the minimised zeromqServer.php code: include("someFile.php"); $context = new ZMQContext(1); // Socket to talk to clients $responder = new ZMQSocket($context, ZMQ:

Competing Consumer on Redis Pub/Sub supported?

你。 提交于 2019-12-17 23:26:44
问题 I have 2 services. Both of them need subscribe to the same channel. The 2 services are load balanced. Each service runs on multiple servers. So how can I be sure only 1 instance of each service consume the message of that channel. Is this supported on Redis? Thanks 回答1: Pubsub doesn't work that way - the message goes to all connected subscribed clients. However, you could set it up so that the channel is a notification of an update to a list. That way all clients will get the message, but