message-queue

Can I monitor the size of a thread's message queue?

感情迁移 提交于 2019-12-04 01:04:27
问题 Our application is getting a System Call Failed RPC error from DCOM ( 0x80010100 ), we suspect that the target thread's message queue is full (although I'm not convinced this is ture). I know the queue is limited to 10,000 messages and I want to see if we're close to this number in the common cases. Is there a way to monitor the size of a thread's message queue? The most promising option I found was GetQueueStatus but this doesn't include the number of messages in the queue only their types.

Azure: How to move messages from poison queue to back to main queue?

强颜欢笑 提交于 2019-12-04 00:42:19
I'm wondering if there is a tool or lib that can move messages between queues? Currently, i'm doing something like below public static void ProcessQueueMessage([QueueTrigger("myqueue-poison")] string message, TextWriter log) { CloudStorageAccount storageAccount = CloudStorageAccount.Parse(connString); CloudQueueClient queueClient = storageAccount.CreateCloudQueueClient(); CloudQueue queue = queueClient.GetQueueReference("myqueue"); queue.CreateIfNotExists(); var messageData = JsonConvert.SerializeObject(data, new JsonSerializerSettings { ContractResolver = new

How can I implement this single concurrency distributed queue in any MQ platform?

笑着哭i 提交于 2019-12-03 22:58:07
I am currently struggle to find a solution for implement a specific kind of queue, which require the following traits: All queue must respect the order that job were added. The whole queue will have a concurrency of 1, which means that there will only be one job execute at a time per queue , not worker. There will be more than a few thousand queue like this. It need to be distributed and be able to scale (example if I add a worker) Basically it is a single process FIFO queue, and this is exactly what I want when tryout different message queue software like ActiveMQ or RabbitMQ, but as soon as

JMS performance

断了今生、忘了曾经 提交于 2019-12-03 22:29:41
I'm having a bit of trouble with understanding JMS from a performance perspective. We have this very straightforward code in our application: QueueConnection connection = null; QueueSession session = null; QueueSender sender = null; TextMessage msg = null; try { // The JNDIHelper uses InitialContext to look up things QueueConnectionFactory qcf = JNDIHelper.lookupFactory(); Queue destQueue = JNDIHelper.lookupQueue(); // These objects are created for every message, which is quite slow connection = qcf.createQueueConnection(); session = connection.createQueueSession(false, Session.AUTO

Message queues vs sockets

本小妞迷上赌 提交于 2019-12-03 22:20:32
I don't have much of a socket programming experience but I tried read a little about it. I am quite familiar with MDB and messaging queues. Someone has told me that queue(e.g. MDB) is "Not much more than a direct socket connection". Can someone compare these two for me. eeeeemph... this someone was very wrong. The two are incomparable, as they live in different layers. It's like saying that "a relational database is not much more than a file on a disk" or "a house is not much more than a brick". Messaging queue is a piece of software that glues senders and receivers so that they can

Rules of thumb regarding Messaging / Message Queueing [closed]

倾然丶 夕夏残阳落幕 提交于 2019-12-03 21:38:54
Closed . This question needs to be more focused. It is not currently accepting answers. Learn more . Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 4 years ago . Can someone provide some rules of thumb regarding when to use Message Queueing and what practical real-world problems they are supposed to address? Thanks Asynchronous messaging allows systems to communicate in a disconnected manner. It is not necessary for both systems to be available simultaneously for work to get done. There are other benefits as well. Often

Killing node with __consumer_offsets leads to no message consumption at consumers

二次信任 提交于 2019-12-03 20:43:18
I have 3 node(nodes0,node1,node2) Kafka cluster(broker0, broker1, broker2) with replication factor 2 and Zookeeper(using zookeeper packaged with Kafka tar) running on a different node (node 4). I had started broker 0 after starting zookeper and then remaining nodes. It is seen in broker 0 logs that it is reading __consumer_offsets and seems they are stored on broker 0. Below are sample logs: Kafka Version: kafka_2.10-0.10.2.0 2017-06-30 10:50:47,381] INFO [GroupCoordinator 0]: Loading group metadata for console-consumer-85124 with generation 2 (kafka.coordinator.GroupCoordinator) [2017-06-30

RabbitMQ AMQP queue design

て烟熏妆下的殇ゞ 提交于 2019-12-03 20:15:13
Below is the desirable design of the queue with: P producer. The application that insert data X exchange. C1-C3 consumer. The applications that read from the queue Queue details: A. Is just like queue log, if there is no client binding then message will be discarded. B. This is a working queue. it will do something if there is criteria match. C. Also a working queue. it will transform the data A is optional, but B. C. will always in queue until some client process connect it. The problem is determine which type of exchange that i should use. is it a fanout, direct or topic ? because I wanted

Count number of messages in a JMS queue

假如想象 提交于 2019-12-03 17:13:28
问题 What is the best way to go over a JMS queue and get all the messages in it? How can count the number of messages in a queue? Thanks. 回答1: Using JmsTemplate public int getMessageCount(String messageSelector) { return jmsTemplate.browseSelected(messageSelector, new BrowserCallback<Integer>() { @Override public Integer doInJms(Session s, QueueBrowser qb) throws JMSException { return Collections.list(qb.getEnumeration()).size(); } }); } 回答2: This is how you can count No of Messages in a Queue

Confused as to when you would use JMS (or a queue in general) versus a database

杀马特。学长 韩版系。学妹 提交于 2019-12-03 13:32:30
When you store a message in a queue, isn't it more of meta data information so whoever pulls from the queue knows how to process the data? the actual information in the queue doesn't always hold all the information. Say you have an app like Twitter, whenever someone posts a message, you would still need to store the actual message text in the database correct? The queue would be more used to broadcast to other subscribers that a new message has arrived, and then those services could take further action. Or could you actually store the tweet text in the queue also? (or you COULD, but that would