Message Queue vs Message Bus — what are the differences?

Message Bus A Message Bus is a messaging infrastructure to allow different systems to communicate through a shared set of interfaces(message bus). Source: EIP Message Queue The basic idea of a message queue is a simple one: Two (or more) processes can exchange information via access to a common system message queue. The sending process … Read more

What exactly is a Node.js event loop tick?

Remember that while JavaScript is single-threaded, all of node’s I/O and calls to native APIs are either asynchronous (using platform-specific mechanisms), or run on a separate thread. (This is all handled through libuv.) So when there’s data available on a socket or a native API function has returned, we need a synchronized way to invoke … Read more

What is the relationship between Looper, Handler and MessageQueue in Android?

A Looper is a message handling loop: it reads and processes items from a MessageQueue. The Looper class is usually used in conjunction with a HandlerThread (a subclass of Thread). A Handler is a utility class that facilitates interacting with a Looper—mainly by posting messages and Runnable objects to the thread’s MessageQueue. When a Handler … Read more

What are the limits of messages, queues and exchanges?

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 with two preconditions: The thing you are sending can be converted to and from … Read more

What’s the purpose of Kafka’s key/value pair-based messaging?

Kafka uses the abstraction of a distributed log that consists of partitions. Splitting a log into partitions allows to scale-out the system. Keys are used to determine the partition within a log to which a message get’s appended to. While the value is the actual payload of the message. The examples are actually not very … Read more

JMS and AMQP – RabbitMQ

Your question is a bit messy but Let’s see its bits one by one. General concept: The Java Message Service (JMS) API is a Java Message Oriented Middleware (MOM) API for sending messages between two or more clients. JMS is a part of the Java Platform, Enterprise Edition, and is defined by a specification developed … Read more