Skip to main content

Reference


Permissions​

ToYou need
Open Message QueuesThe feature odsl.queue_manager.manage (the feature policy extension.odsl.queue_manager, open to everyone by default)
See queues and read their messagesRead access to the queue service
Create, edit, send to, delete messages from, clear and move messages on a queueUpdate access to the queue service for that queue
Delete a queueDelete access to the queue service
See the log and statisticsRead access to the queue log service
Delete log entriesDelete access to the queue log service

You only ever see your own company's queues.


Where things are kept​

WhatWhere
QueuesThe queue service. Each queue is an Azure Service Bus queue named <environment>/<company>/<queue>, in the OpenDataDSL namespace with its own shared access rule (send and listen) behind the connection string, or in your own namespace with no connection string
MessagesIn Service Bus only, for as long as the queue's retention
Queue logThe queue log service, one record per message the platform sent

Platform calls​

The screens use the queue service and the queue log service. The message functions are calls to the queue service, GET queue/v1?_function=<function>&queue=<queue name>, and use the queue's own connection:

FunctionParametersReturns
detailsThe Service Bus settings and counts of the queue
peekdlq (true for the dead letter queue), max (1 to 100), from (a sequence number), bodyLimit (characters of the body, 0 for all of it up to 1 MB)The messages from that sequence number on, oldest first, unchanged
purgedlq, limitdeleted and more (call again while more is true)
deleteMessagesdlq, seq (sequence numbers separated by commas, at most 500)deleted, cancelled (scheduled messages), notFound
resubmitseq (optional: all dead letters when left out), limitmoved, more, notFound
sendbody (at most 64 KB), subject, contentTypemessageId

details and peek need read access, the others update access. A failed call returns the reason in the x-odsl-error header.

A message returned by peek:

FieldWhat it is
sequenceNumberThe number Service Bus gave the message on this queue
messageId, subject, contentType, correlationIdAs sent
enqueuedTime, expiresAt, scheduledEnqueueTimeWhen it arrived, when it expires, when a scheduled message is due
deliveryCountHow many times it was received without being completed
stateACTIVE, SCHEDULED or DEFERRED
deadLetterReason, deadLetterErrorDescription, deadLetterSourceFor a dead letter
propertiesThe application properties
size, body, bodyEncoding, bodyTruncatedThe body as text; bodyEncoding is base64 when it is not text, bodyTruncated when only the first part was returned

Extension contents​

ItemId
Extensionodsl.queue_manager
ViewMessage Queues in the Deliver menu
Feature policyextension.odsl.queue_manager, feature odsl.queue_manager.manage
Home page tasksodsl.queue_manager.queues (Manage your message queues), odsl.queue_manager.deadletters (Check dead letter messages: opens the dead letter queue of the queue with the most dead letters)

Good to know​

TopicDetail
CountsThe counts come from Service Bus when the screen loads and after each action. Select Refresh to read them again
Messages being receivedA message a receiver has taken but not completed yet is locked: it does not show in the list and cannot be deleted until its lock runs out
Long operationsClearing, deleting and moving work for up to about 50 seconds per call; the screen calls again until everything is done
Retention changesA new retention applies to messages sent after the change
Queues with a handlerThey stay empty because the platform takes the messages straight away. Messages Service Bus could not forward are counted as failed forwards in the queue details; the screens do not list them
Your own messagingQueues in it have the record fields messaging (the connection name), provider (servicebus, sqs, kafka or amqp) and location; send messaging when creating a queue to choose the connection, otherwise its name decides. The queue service adds ownMessaging, providerLabel, entity (the name in your messaging) and capabilities (what can be done with the queue), and has no connection for them. GET queue/v1?_function=messaging lists the connections with their queue name patterns (&queue=NAME adds the connection that name routes to). Functions your messaging cannot do are refused with the reason. See Keeping your message queues in your own messaging
Sending from outside the platformFor a queue in your own SQS, Kafka or AMQP broker, send in a script run elsewhere sends through PUT queue/v1?_function=send&queue=NAME with a JSON body {body, subject, contentType, messageId, correlationId, properties} (up to 256 KB)
Your applications' messagesThe queue log does not include messages your applications send with the connection string