message-queue

ActiveMQ with C# and Apache NMS - Count messages in queue

笑着哭i 提交于 2019-11-27 07:21:02
问题 I'm using ActiveMQ to send and receive messages using a C# app. However I'm having some difficulty just getting a count of the messages in the queue.. Here's my code: public int GetMessageCount() { int messageCount = 0; Uri connecturi = new Uri(this.ActiveMQUri); IConnectionFactory factory = new NMSConnectionFactory(connecturi); using (IConnection connection = factory.CreateConnection()) using (ISession session = connection.CreateSession()) { IDestination requestDestination = SessionUtil

Interoperability Azure Service Bus Message Queue Messages

坚强是说给别人听的谎言 提交于 2019-11-27 06:36:24
问题 I have a Java App and a NodeJS App both using a single Azure Service Bus Message Queue. I witness some strange effects with my clients, as follow. JAVA MESSAGE PRODUCER (using QPID libraries per Azure JMS tutorial): TextMessage message = sendSession.createTextMessage(); message.setText("Test AMQP message from JMS"); long randomMessageID = randomGenerator.nextLong() >>>1; message.setJMSMessageID("ID:" + randomMessageID); sender.send(message); System.out.println("Sent message with JMSMessageID

Is there a performance difference between pooling connections or channels in rabbitmq?

青春壹個敷衍的年華 提交于 2019-11-27 06:07:33
I'm a newbie with Rabbitmq(and programming) so sorry in advance if this is obvious. I am creating a pool to share between threads that are working on a queue but I'm not sure if I should use connections or channels in the pool. I know I need channels to do the actual work but is there a performance benefit of having one channel per connection(in terms of more throughput from the queue)? or am I better off just using a single connection per application and pool many channels? note: because I'm pooling the resources the initial cost is not a factor, as I know connections are more expensive than

RabbitMQ - How many queues RabbitMQ can handle on a single server?

旧巷老猫 提交于 2019-11-27 05:13:49
问题 I want to know how many maximum queues RabbitMQ can handle on a single server? Does it depend on RAM? Does it depends on erlang processes? 回答1: There are not any hard-coded limits inside RabbitMQ broker. The broker will utilize all available resources (unless you set limits on some of them, they are called watermarks in RabbitMQ terminology). There are some limitations put by Erlang itself, like maximum number of concurrent processes, but if you theoretically can reach them on single node

How deep is the Win32 message queue?

落爺英雄遲暮 提交于 2019-11-27 03:55:27
问题 How many messages does the queue for a standard window hold? What happens when the queue overflows? The documentation for GetMessage and relatives doesn't say anything about this, and PeekMessage only gives you a yes/no for certain classes of messages, not a message count. This page says that the queues are implemented using memory-mapped files, and that there is no message count limit, but that page is about WinCE. Does this apply to desktop Win32 as well? 回答1: 10000 by default, but it can

Real world use of JMS/message queues? [closed]

倾然丶 夕夏残阳落幕 提交于 2019-11-27 02:20:37
I was just reading abit about JMS and Apache ActiveMQ. And was wondering what real world use have people here used JMS or similar message queue technologies for ? JMS (ActiveMQ is a JMS broker implementation) can be used as a mechanism to allow asynchronous request processing. You may wish to do this because the request take a long time to complete or because several parties may be interested in the actual request. Another reason for using it is to allow multiple clients (potentially written in different languages) to access information via JMS. ActiveMQ is a good example here because you can

Calling finish() After Starting a New Activity

南楼画角 提交于 2019-11-27 01:17:02
问题 The first Activity that loads in my application is an initialization activity, and once complete it loads a new Activity. I want to ensure if the user presses 'Back' they go straight to the Launcher, and not the initialization screen. Side note, is this even the best approach, or would this be better done with some kind of Intent Flag? Is it correct to call finish() after calling startActivity() on the new activity? onCreate() { ... startActivity(new Intent(this, NextActivity.class)); finish(

RabbitMQ message size and types

我只是一个虾纸丫 提交于 2019-11-27 00:08:05
问题 What messages could be stored in RabbitMQ queues? Only strings? Or can I select what type I want to store: int, binary, string etc.? What is the max size of one message? How many queues or exchanges could be created? Or does it depend on the server's power? 回答1: Theoretically anything can be stored/sent as a message. You actually don't want to store anything on the queues. The system works most efficiently if the queues are empty most of the time. You can send anything you want to the queue

What are good message queue options for nodejs? [closed]

拈花ヽ惹草 提交于 2019-11-26 23:53:08
问题 Looking to use a message queue in a small web app I'm building with node.js. I looked at resque but not sure that's appropriate. The goal is to push notifications to clients based on backend and other client actions with socketio. I could do this with just socketio but I thought maybe a proper message queue would make this cleaner and I wouldn't have to reinvent the wheel. What are the options out there? 回答1: you could use redis with the lightning fast node_redis client. It even has built-in

Asynchronous processing or message queues in PHP (CakePHP) [closed]

筅森魡賤 提交于 2019-11-26 22:31:07
问题 Closed . This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed 4 years ago . I am building a website in CakePHP that processes files uploaded though an XML-RPC API and though a web frontend. Files need to be scanned by ClamAV, thumbnails need to be generated, et cetera. All resource intensive work that takes some time for which the user should not have to