Practical Haskell by Alejandro Serrano Mena

Practical Haskell by Alejandro Serrano Mena

Author:Alejandro Serrano Mena
Language: eng
Format: epub
ISBN: 9781484244807
Publisher: Apress


Installing Rabbitmq

In order to run the code in this section, you need to have an AMQP-compatible broker in your machine. My suggestion is to use RabbitMQ, available at https://www.rabbitmq.com . The server runs in Linux, Windows, and MacOS X, and you can also get it as a Docker image. In the code below, I assume that you have RabbitMQ running in the default port, 5672, with the default security configuration, so we can access it as guests.

The simplest messaging model of AMQP involves four elements, all of them shown in Figure 8-4. The first one is queues, which store a sequence of messages. Each queue is identified by a name. Then we have producers and consumers, which write and read messages to a particular queue. Note that the distinction is not clear cut, since the same program may send and receive messages from the same queue. These three elements are obviously involved whenever we talk about queuing.

Figure 8-4High-level view of the AMQP messaging model



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.