Skip to main content

Messaging

Your message queues carry data and events from OpenDataDSL to your own systems: automations, send in scripts and processes, and the Message Queues extension all send to them. Normally they are in the OpenDataDSL Azure Service Bus namespace. On the Messaging tab you can add connections to your own messaging, as many as you need and of any kind, and say which queues go to each one by their names. The messages for your systems then never leave your infrastructure, and your applications read them the way they read the rest of your messages.

Northgate, for example, sends its trading and price queues to one Kafka cluster in Confluent Cloud, its risk queues to its risk team's Amazon MSK cluster, and its ETRM queues to its AMQP broker. Everything else stays in the OpenDataDSL namespace.

Each connection is one of four kinds:

MessagingWhat OpenDataDSL usesHow OpenDataDSL signs in
Azure Service BusQueues in your own namespaceAs its application, with the Azure Service Bus Data Owner role (no keys)
Amazon SQSStandard queues in your AWS accountAssumes an IAM role you create, with a token from its own Microsoft Entra tenant (no keys); or an access key
Apache KafkaTopics in Confluent Cloud, Amazon MSK, Azure Event Hubs, Aiven or your own clusterA user name and password
AMQP 1.0Queues on ActiveMQ Artemis, Amazon MQ, RabbitMQ 4, Solace, IBM MQ or Apache QpidA user name and password, over TLS

Northgate's messaging connections


Connections and routing​

The table at the top lists your connections. The first, odsl, is the OpenDataDSL namespace: it is always there. For each of yours it shows where it points, the queues sent here, the last test, and Test, Change and Remove.

Queues sent hereQueue names or patterns, for example trading-*, prices-*, etrm-prices. * matches any characters and ? one; case is ignored. A pattern can only be in one connection
Which connection a new queue goes toThe connection with the closest matching pattern: an exact name first, then the pattern with the most letters, so trading-power* beats trading-*. If none matches, the connection chosen in Queues no pattern matches go to (normally odsl)
Try a queue nameType a name to see which connection it goes to, and what it is called there
Choosing by handWhoever creates a queue in the Message Queues extension can choose another connection: the dialog shows where the name routes, and they can change it
Existing queuesA queue stays in the connection it was created in. Changing the patterns or the default only affects new queues

A connection's name (for example kafka-trading) cannot be changed, as queues remember their connection by it.

Add a connection: choose the kind with Show the set-up on its card. The steps on your side, what OpenDataDSL can do with queues there and the Add button all change to that kind. Every command and policy is filled in with your values.

Adding a Kafka connection for the weather queues


What OpenDataDSL can do with your queues​

Each messaging service works differently, so the Message Queues extension only offers what yours can do:

Azure Service BusAmazon SQSApache KafkaAMQP 1.0
Create and delete queuesYesYes, with a dead letter queue eachYes (or you create the topics)No: you create them, or the broker does on first use
Message countsYesApproximateRecords still in the topicUp to 1000 a queue
Look at messagesYesNo: reading an SQS message hides it and counts towards its receive limitThe newest recordsYes
Clear a queueYesYes, once a minuteYesYes
Delete chosen messagesYesNoNoNo
Dead letters back to the queueAll or chosenAllAll (optional .dlq topic)All (optional dead letter prefix)
Retention and timeoutBothRetention and visibility timeoutRetentionSet on the broker

A queue in your own messaging never has a handler (trigger or loader): keep the queues that load data into OpenDataDSL in the OpenDataDSL namespace.


Azure Service Bus​

StepWhoWhat
1. Create or choose a namespaceAnyone who can create resourcesAny tier. Note its Host name, for example nge-integration.servicebus.windows.net
2. Grant consentA Microsoft Entra administratorOnce for all resources, see Before you start
3. Give the application the Azure Service Bus Data Owner roleAn Owner or User Access Administrator of the namespaceOn the namespace only
4. Let OpenDataDSL through the firewallThe namespace ownerOnly if the namespace allows selected networks
5. Give your own applications accessWhoever runs themTheir own Microsoft Entra identity, with Azure Service Bus Data Receiver or Data Sender on their queues

Then Add an Azure Service Bus connection: a name, the queues to send to it, the namespace host name (just the name is enough for .servicebus.windows.net) and a description; your Microsoft Entra tenant id is filled in and fixed. Queues are named <environment>/<company>/<queue>.


Amazon SQS​

OpenDataDSL proves who it is with a token from its own Microsoft Entra tenant and exchanges it for temporary AWS credentials, the same way GitHub Actions or Kubernetes sign in to AWS. You store no AWS keys with OpenDataDSL.

StepWhoWhat
1. Choose the account and regionWhoever manages your AWS accountNote the account id and region code, for example eu-west-1
2. Trust OpenDataDSL as an identity providerAn IAM administrator, onceIAM > Identity providers > Add provider > OpenID Connect, with the Provider URL and Audience the tab shows (or the aws iam create-open-id-connect-provider command next to them)
3. Create a role OpenDataDSL can assumeAn IAM administratorA role with the trust policy the tab shows. It lets in only the OpenDataDSL application, and only with your company's session name odsl-<your tenant id>, so no other OpenDataDSL client can use your role. Test refuses a role without that condition
4. Give the role access to the queuesAn IAM administratorThe permission policy the tab shows: create, change, delete, send, purge and move dead letters, only for queues starting with your prefix
5. Give your own applications accessWhoever runs themTheir own IAM identity with sqs:ReceiveMessage, sqs:DeleteMessage and sqs:ChangeMessageVisibility

Then Add an Amazon SQS connection:

Entering and testing Amazon SQS

FieldExampleNotes
Connection nameaws-alerts
Queues to send herenge-*-alerts
Regioneu-west-1
OpenDataDSL signs in withAn IAM roleOr an access key of an IAM user with the same policy: its secret is kept in the OpenDataDSL key vault and never shown again
Role ARNarn:aws:iam::123456789012:role/nge-odsl-messagingFrom step 3
Dead letter queuesYes, after 10 failed receivesEach queue gets a dead letter queue named <queue>-dlq
Name prefixodsl-Queues are named prefix + environment + queue, for example odsl-prod-nge-etrm-prices

Messages carry the subject, content type, message id and correlation id as message attributes (SQS allows 10 attributes, so properties beyond that are not sent).


Apache Kafka​

StepWhoWhat
1. Choose the clusterWhoever manages your KafkaNote the bootstrap servers. OpenDataDSL needs TLS (SASL_SSL or SSL)
2. Create a user for OpenDataDSLWhoever manages your KafkaConfluent Cloud: a service account and API key (key = user name, secret = password). Azure Event Hubs: user name $ConnectionString, password the connection string of a shared access policy. Amazon MSK and others: a SCRAM-SHA-512 or PLAIN user
3. Allow the user on your topicsWhoever manages your KafkaDescribe, Read and Write on topics starting with your prefix, and Create, Delete, DescribeConfigs and AlterConfigs if OpenDataDSL creates the topics. The tab shows kafka-acls.sh and Confluent CLI commands
4. Let OpenDataDSL connectWhoever manages your networkAllow the OpenDataDSL addresses (ask OpenDataDSL support)
5. Read the topicsYour applicationsWith their own user and consumer group. OpenDataDSL reads without a consumer group, so it never moves your offsets

Then Add an Apache Kafka connection with a name, the queues to send to it, the bootstrap servers, user name and password.

Topics are named prefix + environment + queue, for example odsl.prod.nge-etrm-prices. The record key is the correlation id (or the message id); the subject, content type, ids and properties are record headers. Kafka keeps records after they are read, so the counts are the records still in the topic.


AMQP 1.0​

StepWhoWhat
1. Choose the brokerWhoever manages your messagingAny broker that speaks AMQP 1.0 over TLS (amqps://, usually port 5671)
2. Create the queuesWhoever manages your messagingOpenDataDSL does not create or delete AMQP queues: create one named prefix + environment + queue for each, or let the broker create them on first use. For dead letters, use the broker's dead letter prefix (for example DLQ. in ActiveMQ Artemis) and enter it here
3. Create a userWhoever manages your messagingSend, consume and browse rights on the queues with your prefix. The tab shows an ActiveMQ Artemis security setting and a RabbitMQ command
4. Let OpenDataDSL connectWhoever manages your networkAllow the OpenDataDSL addresses
5. Read the queuesYour applicationsWith their own user

Then Add an AMQP 1.0 connection with a name, the queues to send to it, the broker address, user name, password, the optional dead letter prefix and the name prefix (default odsl.).


Passwords and keys​

Passwords and AWS secret access keys are write-only: they go straight to the OpenDataDSL key vault and are never shown again, not even to OpenDataDSL support. Each connection has its own. To change one, enter the new value and save; leave it empty to keep the saved one. A connection is tested straight after you save it.


What changes​

QueuesWhat happens
New queuesCreated in the connection their name routes to (or the one chosen), with the names above. There is no connection string: your applications connect as they always do
Queues you already haveStay in the OpenDataDSL namespace and keep working, with their connection string. To move one, delete it and create it again
SendingAutomations, send in scripts and processes on the platform, and the Message Queues extension send to your queues as before, and every message is logged in the queue log. For SQS, Kafka and AMQP, scripts run outside the platform send through the OpenDataDSL API, which holds the credentials
Changing or removing a connectionPointing a connection somewhere else, or Remove, warns you first about the queues already in it: OpenDataDSL can no longer reach them until they are deleted and created again

For the full detail for your IT team, see Keeping your message queues in your own messaging.