message-queue

Understanding zeromq java binding

扶醉桌前 提交于 2019-12-03 05:48:04
问题 I'm investigating zeromq as a message passing solution in a java project, but I find the instructions on java binding somewhat difficult to follow. http://www.zeromq.org/bindings:java I am unfamiliar with java bindings, so these may be stupid questions, but can someone help me understand: Why do I need to install anything? Will jars I build on one machine work on another system? I need this application to be portable. If so, why do I need to build my own jars to begin with? I feel like the

Can you/should you use SQL Server Service Broker with .NET applications?

自古美人都是妖i 提交于 2019-12-03 04:58:08
问题 I have many operations in the database that need to trigger application code. Currently I am using database polling, but I hear that SQL Server Service Broker can give me MSMQ-like functionality. Can I listen to SQL Server Service Broker queues from .NET applications running on a different machine? If so, should I do it? If not, what would you recommend? 回答1: To answer your questions: Can I listen to SQL Server Service Broker queues from .NET applications running on a different machine? Yes.

Error “unknown delivery tag” occurs when i try ack messages to RabbitMQ using pika (python)

孤者浪人 提交于 2019-12-03 04:49:14
I want process messages in few threads but i'm getting error during execute this code: from __future__ import with_statement import pika import sys from pika.adapters.blocking_connection import BlockingConnection from pika import connection, credentials import time import threading import random from pika.adapters.select_connection import SelectConnection from pika.connection import Connection import traceback def doWork(body, args, channel): r = random.random() time.sleep(r * 10) try: channel.basic_ack(delivery_tag=args.delivery_tag) except : traceback.print_exc() auth = credentials

Should I use Celery or Carrot for a Django project?

爷,独闯天下 提交于 2019-12-03 03:49:39
问题 I'm a little confused as to which one I should use. I think either will work, but is one better or more appropriate than the other? http://github.com/ask/carrot/tree/master http://github.com/ask/celery/tree/master 回答1: If you need to send/receive messages to/from AMQP message queues, use carrot . If you want to run scheduled tasks on a number of machines, use celery . If you're making soup, use both ;-) 回答2: May you should see this http://www.slideshare.net/idangazit/an-introduction-to-celery

Stats/Monitor/Inspector for beanstalkd

青春壹個敷衍的年華 提交于 2019-12-03 03:44:08
问题 Does anyone know of an app that can monitor a beanstalkd queue? I'm looking for something that shows stats on tubes and jobs, and allows you to inspect the details. I'm not really picky about language/platform, just want to know if there's something out there before I write my own. 回答1: All of these and at least two others are listed on the beanstalkd wiki tools page: https://github.com/kr/beanstalkd/wiki/Tools The best ones are: http://github.com/ptrofimov/beanstalk_console — a web admin

Message broker vs. MOM (Message-Oriented Middleware)

血红的双手。 提交于 2019-12-03 03:10:10
问题 I'm a little confused as to what the difference is between a message broker e.g. RabbitMQ and Message-orientated Middleware. I can't find much info apart from what's on Wikipedia. When searching MOM I find info on AMQP which states is a protocol for MOM.. what does this mean? What is MOM then? I also have read that RabbitMQ implements the AMPQ protocol.. so why does that make a RabbitMQ a messsage broker? Are a message broker and MOM the same thing? Hope some can unravel my confusion. thanks

What is the difference between a channel adapter and a messaging gateway pattern?

↘锁芯ラ 提交于 2019-12-03 02:39:06
问题 No matter how much I read about those two patterns I just can't see the difference. 回答1: That's a great question since they are similar in that they provide an application access to a messaging system. It is how they acheive it I think that differentiates them. The Channel Adapter pattern deals how to get data from an existing system without modifying that system. Typically the Channel Adapdter is implemented out-of-process. Examples often seen are a program that periodically walks an

Topic Exchange vs Direct Exchange in RabbitMQ

牧云@^-^@ 提交于 2019-12-03 02:34:42
问题 We've got an application which will be using RabbitMQ and have several different queues for passing messages between tiers. Initially, I was planning to use multiple direct exchanges, with one for each message type, but it looks like having a single topic exchange with queues using different routing key bindings will achieve the same thing. Having a single exchange also seems like it would be a bit easier to maintain, but I was wondering if there is any benefit (if any) of doing it one way

Using POSIX message queues instead of TCP sockets - how to establish “connection”?

扶醉桌前 提交于 2019-12-03 02:08:40
I have client and server programs which now communicate via TCP. I'm trying out using POSIX message queues instead (in cases where the client and server are on the same machine, of course). My hope is that it will improve performance (specifically via reduced latency). I've worked out most of it, but am not sure about one thing: how to establish the "connection." The server accepts connections from multiple clients concurrently, so I'm tempted to emulate the TCP connection establish process like so: Server opens a queue with a well-known name and reads from it continuously (it can use select(2

Message Queue vs Task Queue difference

允我心安 提交于 2019-12-03 01:51:01
I wonder what is the difference between them. Are they describing the same thing? Is Google App Engine Service Task Queue is an implementation of Message Queue? I asked a similar question on some Developer Community Groups on Facebook. It was not about GoogleAppEngine specifically - i asked in more of a general sense to determine use case between RabbitMQ and Celery. Here are the responses I got which I think is relevant to the topic and fairly clarifies the difference between a message queue and a task queue. I asked: Will it be appropriate to say that "Celery is a QueueWrapper/QueueFramework