Open Enterprise News

Open the new about your Business

Member Login

Lost your password?

Advanced Messaging & Routing with AMQP

Not all message queues are made equal. In the simplest case, a message queue is synonymous with an asynchronous protocol in which the sender and the receiver do not operate on the message at the same time. However, while this pattern is most commonly used to decouple distinct services (an intermediate mailbox, of sorts), the more advanced implementations also enable a host more advanced recipes: load balancing, queueing, failover, pubsub, etc. AMQP can do all of the above, and yesterday’s announcement of RabbitMQ 1.7 (an open source AMQP broker) warrants a closer look.

Originally developed at JP Morgan as a vendor neutral wire and broker protocol, AMQP (Advanced Message Queuing Protocol) is, in fact, a general purpose messaging bus. The protocol itself is still under active development, but there are a variety of open source client and server implementations for it, as well as some big commercial supporters (RedHat, Microsoft, etc). In other words, it works, it is production ready, and I can vouch for it from personal experience – we stream tens of millions of messages through AMQP at PostRank on a daily basis.

AMQP vs XMPP: Features & Architecture

The AMQP vs XMPP debate has been raging for years now. On the surface they both look identical, but in reality there are a number of important distinctions. For example, presence is one of the central components of XMPP, but it is not part of the AMQP specification. XMPP uses XML, whereas AMQP has a binary protocol. AMQP has native support for a number of delivery use cases (at least once, exactly once, select subscribers, persistence, etc) and also a variety of exchange implementations which allow fine-grained control to where and how the messages are routed.

The AMQP spec is a fast and recommended read, but by a way of quick introduction, the core architectural components are: publisher, exchange, queue, and consumer. As you may have guessed, the publisher is the data producer which pushes messages to an exchange. Why is it called an exchange? Because the exchange is a routing engine which is responsible for delivering the messages to the right queues (exchanges never store messages). For example, a message may need to be routed to just a single queue (direct exchange), maybe the message should be forwarded to every queue (pubsub) in the list (fanout exchange), or perhaps the message should be routed based on a key (topic exchange).

Source: http://www.igvita.com/2009/10/08/advanced-messaging-routing-with-amqp/


Rate this Post:

One Response to “Advanced Messaging & Routing with AMQP”

Leave a Reply

We will keep You Updated...
Sign up to receive breaking news
as well as receive other site updates!
Sponsors


Featured Video
Popular Posts

How to build an open source mainframe in your kitchen

Can you build a mainframe computer at home in your spare time? On your kitchen table? Usi

Twitter and Facebook - Why are they Essential to Your Business?

Thats the importance of social media sites, such as Twitter and Facebook in viral marketin

What You Should Know About the EB-5 Investor Visa Process

This article will address important aspects of the EB-5 Investor Visa Program that you sho

The Vibrance of Boston

Boston, Massachusetts is one of the oldest cities in the United States, and is considered

How the iPad has Made Remote Desktop Software Even Better

Remote Desktop Software, also known as Remote Control Software or Remote Access Software,
Recent Posts

Understanding Search Engine Optimization

Before there was Internet marketing, mass-media marketing was the preferred ...

iPhone Apps and Games

The Apple Company has been making innovative technology products for ...

Looking for Luxury Apartments in Boston?

Anytime you have to move, you know you are in ...

The Diversity Immigrant Visa aka The Green Card Lottery

The Diversity Immigrant Visa (DIV) is a method for entering ...

Market for iPhone Apps Presents Lucrative Opportunity for Businesses

Hundreds of thousands of apps have been downloaded from the ...
Tag Cloud
Flickr RSS