messaging

Cross-platform, cross-language messaging system?

非 Y 不嫁゛ 提交于 2019-12-03 10:20:42
问题 I'm developing a set of applications that work together to create a system for processing metering data. There's several reasons I want to have them loosely coupled and the system should be extensible by third parties, so the apps will be tied together via messaging. I'm looking for a messaging system that offers bindings in (at least) C#, Java and Python and supports messaging patterns like Publish-Subscribe, Guaranteed Delivery, Selective Consumer (like Peek in .Net Messaging). As far as I

When should I use each of Android's different messaging types?

僤鯓⒐⒋嵵緔 提交于 2019-12-03 10:12:28
问题 I've been working with Android for well over a year now, but I still have trouble determining when different types of messaging/communication between processes/threads should be used. I'm mainly talking about broadcasting Intents, using AIDL for services , using Handlers to send messages and socket communication. Many of these tools can be used to accomplish similar tasks, but which is better suited to particular situations? 回答1: This is a pretty open ended question, but let me take a shot at

Sending messages from other languages to an IPython kernel

眉间皱痕 提交于 2019-12-03 07:25:09
问题 Does anyone have any experience of communicating with IPython kernels from outside of Python? If I were trying to send messages from a Python app to an IPython kernel, I'd use the zmq.kernelmanager API. As it is, I'll obviously need to write my own kernel manager in another language, but I can't find the information that I'm looking for about the low-level messaging protocols. Is there an official spec or a 'cheat sheet' that documents the structure of the actual messages that get sent over

Is there any simulator/tool to generate messages for streaming?

感情迁移 提交于 2019-12-03 07:11:12
For testing purpose, I need to simulate client for generating 100,000 messages per second and send them to kafka topic. Is there any tool or way that can help me generate these random messages? There's a built-in tool for generating dummy load, located in bin/kafka-producer-perf-test.sh ( https://github.com/apache/kafka/blob/trunk/bin/kafka-producer-perf-test.sh ). You may refer to https://github.com/apache/kafka/blob/trunk/tools/src/main/java/org/apache/kafka/tools/ProducerPerformance.java#L106 to figure out how to use it. One usage example would be like that: bin/kafka-producer-perf-test.sh

RabbitMQ: How to specify the queue to publish to?

强颜欢笑 提交于 2019-12-03 06:36:36
RabbitMQ's Channel#basicConsume method gives us the following arguments: channel.basicConsume(queueName, autoAck, consumerTag, noLocal, exclusive, arguments, callback); Giving us the ability to tell RabbitMQ exactly which queue we want to consume from. But Channel#basicPublish has no such equivalency: channel.basicPublish(exchangeName, routingKey, mandatory, immediateFlag, basicProperties, messageAsBytes); Why can't I specify the queue to publish to here?!? How do I get a Channel publishing to, say, a queue named logging ? Thanks in advance! Basically queues can be binded to an exchange based

RabbitMQ wait for multiple queues to finish

别来无恙 提交于 2019-12-03 06:00:25
Ok here is an overview of what's going on: M <-- Message with unique id of 1234 | +-Start Queue | | | <-- Exchange /|\ / | \ / | \ <-- bind to multiple queues Q1 Q2 Q3 \ | / <-- start of the problem is here \ | / \ | / \|/ | Q4 <-- Queues 1,2 and 3 must finish first before Queue 4 can start | C <-- Consumer So I have an exchange that pushes to multiple queues, each queue has a task, once all tasks are completed, only then can Queue 4 start. So message with unique id of 1234 gets sent to the exchange, the exchange routes it to all the task queues ( Q1, Q2, Q3, etc... ), when all the tasks for

NServiceBus Publish() vs. Send() in website context

非 Y 不嫁゛ 提交于 2019-12-03 05:51:26
I'm looking to gain a better understanding of why it is recommended to never Publish() messages from a website using NServiceBus ( NServiceBus Documentation , scroll about two thirds of the way down). Doesn't it make semantic sense to Publish() events, and to Send() commands? If so, I think it makes sense that a web application can both Publish() and Send() :-) Also, given that using Publish() doesn't require the web application to know about the recipients of the messages (Send() requires the web application to have all recipient endpoints configured), it feels like Publish() is a better

Microservices: REST vs Messaging

巧了我就是萌 提交于 2019-12-03 04:53:40
I heard Amazon uses HTTP for its microservice based architecture. An alternative is to use a messaging system like RabbitMQ or Solace systems. I personally have experience with Solace based microservice architecture, but never with REST. Any idea what do various big league implementations like Amazon, Netflix, UK Gov etc use? Other aspect is, in microservices, following things are required (besides others): * Pattern matching * Async messaging.. receiving system may be down * Publish subscribe * Cache load event.. i.e. on start up, a service may need to load all data from a couple of other

What is the difference between a MessageListener and a Consumer in JMS?

南楼画角 提交于 2019-12-03 04:27:13
问题 I am new to JMS . As far as I understood Consumers are capable of picking messages from queue/topic. So why do you need a MessageListener because Consumers will know when they have picked up messages? What is the practical use of such a MessageListener ? Edit:From the Javadoc of MessageListener: A MessageListener object is used to receive asynchronously delivered messages. Each session must insure that it passes messages serially to the listener. This means that a listener assigned to one or

Is ZeroMQ production ready?

半世苍凉 提交于 2019-12-03 02:54:07
问题 What are your experiences with ZeroMQ as a general purpose messaging middleware? Did you run into any show-stopping bugs or non-obvious "features"? E.g. 2.0 was not flushing messages properly, and the troubleshooting guide seems to give the most terrifying workaround of them all: " sleep(1) before exit". Did the API reduce complexity of applications or did it prove to be troublesome? Is backwards compatibility often broken? 回答1: I'm using it for research, so "semi-production". It's a