Accelerate the Value of Data

Message Streaming Provider

In most cases, the provider is a simple string alias that matches a configuration section from the MESSAGING_CONFIG_NAME variable.

Assuming that an environment's default provider has been configured, the provider alias may be omitted from the configuration.

If the list of providers must be overridden for some reason, the following feature may be leveraged. Instead of using the name/alias of a provider configured on the API server, you may use a special messaging-provider-agnostic URI to embed connection details within the tenant configuration.

The form of the URI is:








A valid URI must include the following sections:

The Table1: Parameter explains the URI fields and relevant description of the parameters.
Table 1. Parameters
URI fieldDescriptionExample
schemeThis field defines a valid broker type and protocol. Currently, activemq:jms,AWS, Google and Azure are supported.activemq:jms
username and password
  • ActiveMQ: The username and password (separated by a colon) configured for queue or topic access within the broker.
  • AWS: The access-key and secret key, separated by a colon.
  • The Google Cloud Platform (GCP): The client email and private key (in a plain form with first or last lines with line breaks removed. It is escaped by URI rules), separated by a colon.
  • Azure: The Shared Access Signature (SAS).
host and port
  • ActiveMQ: The host and port of the message broker (separated by a colon).
  • AWS: The AWS region name for the Simple Notification Service (SNS) topic/ Simple Queue Service (SQS).
  • GCP: The GCP default project for the PubSub topic.
  • Azure

Use this simple Python2 command shown as following:

echo '789secretkey999' | python2 -c 'import urllib, sys;
        sys.stdout.writelines(urllib.quote_plus(l, safe="/\n") for l in

The following example displays how the Python3 works:

echo -n '789secretkey999' | python3 -c 'import urllib.parse, sys;

When you are using URI style configuration, it is important to encode characters that are not legal within URI fields. The most common case is the occurrence of a slash / character in Amazon Secret-Keys. Common encodings are listed below.

Use the following list of special characters that must be encoded with the corresponding ASCII format as displayed in the Table2: Encodings.

Table 2. Encodings
Special CharactersEncodings
} %7D
Note: If the provider URI is not parsed, due to syntax errors or unencoded special characters, an error will be logged. The messages will not be sent to that provider's destinations.


The type of destination may be provider specific. If this is omitted, the default type is queue. Supported types are:

  • queue- supported by both ActiveMQ and Amazon SQS
  • topic- supported by all: ActiveMQ, Amazon SNS, and Google PubSub


The name of the destination can be any arbitrary string.

Character restrictions may be provider specific.

The Provider Restriction table displays the list of providers along with the character restrictions.

Table 3. Provider Restriction
Provider RestrictionJMSThe names can be a combination of alphanumeric characters.

For example, the '.' (dot), '-'(dash) or '_' (underscore) characters.

AWSThe names can be a combination of alphanumeric characters and the '-' (dash) or '_' (underscore) characters.
Note: The '.' (dot) is invalid in SNS/SQS names.
GCPNames must start with a letter, and includes only the following characters:
  • letters
  • numbers
  • dashes (-)
  • periods (.)
  • underscores (_)
  • tildes (~)
  • percents (%)
  • plus signs (+)
Cannot start with goog.
AzureNames can include letters, numbers, periods (.), hyphens (-), underscores (_), and slashes (/), up to 260 characters. Must start and end with a letter or number. Queue names are also case-insensitive.
Note: It is recommended to use valid name identifiers instead oif simple names:

The Restriction for Queue Name table displays the naming convention for queue names.

Table 4. Restriction for Queue Name
JMSJust a simple string name, there is no special ID format.
AWSSNS/SQS ARN in the following format: arn:aws:sns:<region>:<account>:<name> / arn:aws:sqs:<region>:<account>:<name>
GCPGCP resource identifier for PubSub topics: projects/{project}/topics/{name}
AzureAzure resource identifier for queues or topics: <namespace>:{name}

The naming convention is observed when assigning destination names to tenants. It is especially important to maintain uniqueness, as multiple tenants with the same destination name will have their data mixed within the queue or topic. A suggested convention is to use a character-separated sequence which includes the destination-type and tenant-id. It is followed by a descriptive queue-name.

The example for a JMSis: queue.TestTenant.allEvents. The example for an SQS is: queue_TestTenant_allEvents.