message-queue

Memcache-based message queue?

假装没事ソ 提交于 2019-12-04 09:21:46
问题 I'm working on a multiplayer game and it needs a message queue (i.e., messages in, messages out, no duplicates or deleted messages assuming there are no unexpected cache evictions). Here are the memcache-based queues I'm aware of: MemcacheQ: http://memcachedb.org/memcacheq/ Starling: http://rubyforge.org/projects/starling/ Depcached: http://www.marcworrell.com/article-2287-en.html Sparrow: http://code.google.com/p/sparrow/ I learned the concept of the memcache queue from this blog post: All

RabbitMQ: messages remain “Unacknowledged”

纵饮孤独 提交于 2019-12-04 09:02:45
问题 My Java application sends messages to RabbitMQ exchange, then exchange redirects messages to binded queue. I use Springframework AMQP java plugin with RabbitMQ. The problem: message comes to queue, but it stays in "Unacknowledged" state, it never becomes "Ready". What could be the reason? 回答1: An Unacknowledged message implies that it has been read by your consumer, but the consumer has never sent back an ACK to the RabbitMQ broker to say that it has finished processing it. I'm not overly

Check RabbitMQ queue size from client

社会主义新天地 提交于 2019-12-04 07:45:16
问题 Does anyone know if there's a way to check the number of messages in a RabbitMQ queue from a client application? I'm using the .NET client library. 回答1: You actually can retrieve this via the client. When perform a queue_declare operation RabbitMQ returns a three tuple containing (<queue name>, <message count>, <consumer count>) . The passive argument to queue_declare allows you to check whether a queue exists without modifying the server state. So you can use queue_declare with the passive

NullPointerException in HandlerThread

て烟熏妆下的殇ゞ 提交于 2019-12-04 07:08:24
This bug baffled me for hours. I am getting the NullPointerException . The problem is this error is not consistent. It happens when I launch the app, but only occasionally. So I am not sure what is causing it. I apologize for the verbose question with the error log, but I could not find another way of asking. The error log is as follows: FATAL EXCEPTION: main Process: com.myproject.android, PID: 22175 java.lang.NullPointerException at com.myproject.android.ImageDownloaderThread.queueImage(ImageDownloaderThread.java:74) at com.myproject.android.NewsItemPagerActivity

Simple scalable work/message queue with delay

谁都会走 提交于 2019-12-04 05:16:50
I need to set up a job/message queue with the option to set a delay for the task so that it's not picked up immediately by a free worker, but after a certain time (can vary from task to task). I looked into a couple of linux queue solutions (rabbitmq, gearman, memcacheq), but none of them seem to offer this feature out of the box. Any ideas on how I could achieve this? Thanks! I've used BeanstalkD to great effect, using the delay option on inserting a new job to wait several seconds till the item becomes available to be reserved. If you are doing longer-term delays (more than say 30 seconds),

Need to Access the Queue depth of MQ 7

↘锁芯ラ 提交于 2019-12-04 05:09:16
问题 My Below is the code works good with MQ6 but for MQ7 its giving exception 'package javaapplication1; import java.io.*; import java.net.*; import java.util.*; import java.util.TimerTask; import com.ibm.mq.MQEnvironment; import com.ibm.mq.MQException; import com.ibm.mq.MQQueue; import com.ibm.mq.MQQueueManager; import com.ibm.mq.constants.CMQC; class Connectivity { public static void main(String args[]) throws MQException { String qManager=""; int port_num=0; int openOptions = CMQC.MQOO_FAIL_IF

Difference Between Apache Kafka and Camel (Broker vs Integration)

末鹿安然 提交于 2019-12-04 03:09:27
问题 I am trying to understand the differences between something like Kafka and something like Camel. To my understanding Camel would provide much more abstraction for developers without having to worry about changing protocols/systems to some extent. How would Kafka not be able to handle most of what Camel can do now? I am reading through the documentation and it seems like Kafka has been updated/upgraded enough to slightly break away from being a message broker only. I guess my question would

MSMQ receive with transaction - rollback not making message available again

旧时模样 提交于 2019-12-04 02:34:39
I have this in a class called "MessageQueueReceive". public MessageQueueTransaction BlockingReceive(out Message message) { MessageQueueTransaction tran = null; message = null; tran = new MessageQueueTransaction(); tran.Begin(); try { message = Queue.Receive(new TimeSpan(0, 0, 5), tran); } catch (MessageQueueException ex) { // If the exception was a timeout, then just continue // otherwise re-raise it. if (ex.MessageQueueErrorCode != MessageQueueErrorCode.IOTimeout) throw ex; } return tran; } Then my processing loop has this:- while (!Abort) { try { tran = this.Queue.BlockingReceive(out msg);

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

余生颓废 提交于 2019-12-04 02:17:14
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 I should do: Questions: My workers, would be written in PHP they all have to be polling the cloud queue

ActiveMQ - delete/purge all queue via command line

不羁岁月 提交于 2019-12-04 01:23: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! 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 deleted and subsequently queues are cleared. As you want all queues to be deleted, restarting the broker won