NB5 Docs► Reference Section► Drivers▼ AMQP 🖺

1. Overview

The NB AMQP adapter allows sending messages to or receiving messages from

At high level, this adapter supports the following AMQP 0-9-1 functionalities

2. NB AMQP Usage

2.1. Workload Definition

There are two main types of workloads supported by this adapter:

Below are examples of running the message sender and receiver workloads separately.

$ <nb_cmd> run driver=amqp -vv cycles=200 strict_msg_error_handling=0 \
  threads=8 num_conn=1 num_channel=2 num_exchange=2 num_msg_clnt=2 \
  workload=/path/to/amqp_msg_sender.yaml \
  config=/path/to/amqp_config.properties
$ <nb_cmd> run driver=amqp -vv cycles=200 strict_msg_error_handling=0 \
  threads=8 num_conn=1 num_channel=2 num_exchange=2 num_queue=2 num_msg_clnt=2 \
  workload=/path/to/amqp_msg_receiver.yaml \
  config=/path/to/amqp_config.properties

2.1.1. Named Scenarios

For workload execution convenience, NB engine has the concept of named scenario (doc).

For NB AMQP adapter, the following yaml file is used to define the named scenarios: nbamqp_msg_proc_named.yaml

The CLI command to execute the named scenarios is as simple as below:

# for message sender workload
$ <nb_cmd> nbamqp_msg_proc_named msg_send

# for message receiver workload
$ <nb_cmd> nbamqp_msg_proc_named msg_recv

2.2. CLI parameters

The following CLI parameters are unique to this adapter:

2.3. Configuration Properties

2.3.1. Global Properties File

A global AMQP properties file can be specified via the config CLI parameter. It includes the following required properties:

An example of this file can be found from: amqp_config.properties

2.3.2. Scenario Document Level Properties

For message sender workload, the following Document level configuration parameters are supported in the YAML file:

Back to top