Skip to main content
Version: 2.0

Acknowledge product dissemination

Introduction

As described in the service conception of rs-ingest microservice, the system send notification events to external systems when a product status changes.
This guide describe how an external system can send an acknowledgment to rs-ingest to inform it that the AIP dissemination has been successfully handled.

caution

There is no way for an external system to inform the rs-ingest service that the AIP dissemination has not been successfully handled yet.

AMQP API

How to

The Regards AMQP API concept describe how AMQP interfaces must be handled to submit events or to subscribe to events.

Exchange

Submission requests have to be published to REGARDS Rabbitmq exchange:

ExchangeVirtual host
regards.broadcast.fr.cnes.regards.modules.ingest.dto.request.event.DisseminationAckEventregards.multitenant.manager

Request content

Properties

ParameterTypeDescription
app_idStringStandard RabbitMQ property to track message origin.
priorityIntegerStandard RabbitMQ property to sort messages by priority order.
content_encodingStringStandard RabbitMQ property for the encoding type of the message
content_typeStringStandard RabbitMQ property for the MIME Type of the message sent
delivery_modeIntegerStandard RabbitMQ property for the delivery mode (persistent or not)

Headers

ParameterTypeDescription
regards.tenantStringTenant name depends on REGARDS instance project configuration.
regards.typeStringType of content of the message
Example of the properties and headers of an Ingest request event message
{
"app_id": "{ID of app}",
"priority": 1,
"delivery_mode": 2,
"content_encoding": "UTF-8",
"content_type": "application/json",
"headers": [
{
"regards.tenant": "REGARDS",
"regards.type": "fr.cnes.regards.modules.ingest.dto.request.event.DisseminationAckEvent"
}
]
}

Body

{
"urn": "URN:...",
"recipientLabel": "xxx"
}
ParameterTypeDescription
urnStringProduct URN to acknowledge
recipientLabelStringName of the recipient to acknowledge
recipient Label

This is the identifier of the external service from which the acknowledgment message was sent. This identifier matches one of the values that were added in the recipientLabel parameter when manual configuration of the notification service plugin.