Arbeiten mit der Throttling-API

Auf dieser Seite: Erfahren Sie, wie Sie mithilfe der Drosselungs-API Drosselungskonfigurationen erstellen, bereitstellen und überwachen, die die Anzahl der Ereignisse begrenzen, die Adobe Journey Optimizer pro Sekunde an externe Endpunkte sendet.

Mit der Drosselungs-API können Sie Ihre Drosselungskonfigurationen erstellen, konfigurieren und überwachen, um die Anzahl der pro Sekunde gesendeten Ereignisse zu begrenzen.

In diesem Abschnitt finden Sie allgemeine Informationen zur Verwendung der API. Eine detaillierte API-Beschreibung finden Sie in der Dokumentation zu Adobe Journey Optimizer-APIs.

Wichtige Informationen

  • Eine Konfiguration pro Organisation: Pro Organisation ist derzeit nur eine Konfiguration zulässig. Eine Konfiguration muss in einer Produktions-Sandbox definiert werden (in den Headern über x-sandbox-name angegeben).

  • Anwendung auf Organisationsebene: Eine Konfiguration wird auf Organisationsebene angewendet.

  • Umgang mit dem API-Limit: Wenn das im API festgelegte Limit erreicht ist, werden weitere Ereignisse für bis zu 6 Stunden in die Warteschlange gestellt. Dieser Wert kann nicht geändert werden. Ereignisse, die sich nach 6 Stunden noch in der Warteschlange befinden, werden gelöscht und mit dem Status actionExecutionError timedout gemeldet. Bei anhaltendem, starkem Rückstand kann ein Ereignis etwa 24 Stunden lang von der Warteschlange ungelesen bleiben. Ab diesem Zeitpunkt entfernt die zugrunde liegende Warteschlangeninfrastruktur es direkt, ohne dass ein Schrittereignis generiert wird.

  • maxHttpConnections-Parameter: Der Parameter maxHttpConnections ist ein optionaler Parameter in der Capping-API, mit dem Sie die Anzahl der Verbindungen einschränken können, die Journey Optimizer für das externe System öffnet. Informationen zum Arbeiten mit dem Begrenzungs-API

    Wenn Sie die Anzahl der Verbindungen beschränken, aber auch diese externen Aufrufe drosseln möchten, können Sie zwei Konfigurationen für denselben Endpunkt konfigurieren – eine zur Drosselung und eine zur Begrenzung. Beide Konfigurationen können für einen Endpunkt gleichzeitig bestehen. Um „maxHttpConnections“ für einen gedrosselten Endpunkt festzulegen, verwenden Sie das Drosselungs-API, um den Drosselungsschwellenwert festzulegen, und das Begrenzungs-API, um „maxHttpConnections“ festzulegen. Beim Aufrufen des Begrenzungs-APIs können Sie den Begrenzungsschwellenwert auf einen Wert festlegen, der höher ist als der Drosselungsschwellenwert, sodass die Begrenzungsregel tatsächlich nie zur Anwendung kommt.

Beschreibung der Throttling API und Postman-Sammlung description

In der folgenden Tabelle sind die verfügbaren Befehle für das Drosselungs-API aufgeführt. Ausführliche Informationen, einschließlich Anfragebeispielen, Parametern und Antwortformaten, finden Sie in der Dokumentation zu den Adobe Journey Optimizer-APIs.

Methode
Pfad
Beschreibung
POST
list/throttlingConfigs
Abrufen einer Liste der Drosselungskonfigurationen
POST
/throttlingConfigs
Erstellen einer Drosselungskonfiguration
POST
/throttlingConfigs/{uid}/deploy
Bereitstellen einer Drosselungskonfiguration
POST
/throttlingConfigs/{uid}/undeploy
Bereitstellung einer Drosselungskonfiguration aufheben
POST
/throttlingConfigs/{uid}/canDeploy
Überprüfen, ob eine Drosselungskonfiguration bereitgestellt werden kann oder nicht
PUT
/throttlingConfigs/{uid}
Aktualisieren einer Drosselungskonfiguration
GET
/throttlingConfigs/{uid}
Abrufen einer Drosselungskonfiguration
DELETE
/throttlingConfigs/{uid}
Löschen einer Drosselungskonfiguration

Darüber hinaus steht Ihnen hier – zur Unterstützung bei Ihrer Testkonfiguration – eine Postman-Sammlung zur Verfügung.

Diese Sammlung wurde eingerichtet, um die Postman-Variablensammlung freizugeben, die über Integrationen der Adobe I/O-Konsole > Testen > Für Postman herunterladen generiert wurde. Dadurch wird eine Postman-Umgebungsdatei mit den ausgewählten Integrationswerten erzeugt.

Nach dem Herunterladen und Hochladen in Postman müssen Sie drei Variablen hinzufügen: {JO_HOST}, {BASE_PATH} und {SANDBOX_NAME}.

  • {JO_HOST}: Journey Optimizer-Gateway-URL.
  • {BASE_PATH} : Einstiegspunkt für die API.
  • {SANDBOX_NAME}: der Header x-sandbox-name (z. B. „prod“), der dem Sandbox-Namen entspricht, in dem die API-Vorgänge stattfinden. Weiterführende Informationen dazu finden Sie unter Sandbox-Übersicht.

Drosselungskonfiguration  configuration

Hier finden Sie die Struktur einer Drosselungskonfiguration. Die Attribute name und description sind optional.

{
    "name": "<given name - free text>",
    "description": "<given description - free text>",
    "urlPattern": "<endpoint URL - wildcards are allowed>",
    "methods": [ "<HTTP method such as GET, POST, PUT>" ],
    "maxThroughput": <max call throughput>
}

Beispiel:

{
  "name": "throttling-config-external",
  "description": "example of throttling config for an external endpoint",
  "urlPattern": "https://api.example.org/data/2.5/*",
  "methods": ["POST", "PUT"],
  "maxThroughput": 4000
}
IMPORTANT
Die Konfiguration ist erst aktiv, nachdem der Endpunkt Bereitstellen aufgerufen wurde.

Die Drosselung gilt nur, wenn die Anfrage-URL mit der bereitgestellten urlPattern übereinstimmt. Da Platzhalter im Host-Teil des Musters nicht zulässig sind (siehe ERR_THROTTLING_CONFIG_105 unten), ist eine Konfiguration an den Endpunkt-Host gebunden. Wenn sich der Host eines Endpunkts für eine benutzerdefinierte Aktion ändert, überprüfen Sie, ob der aktive urlPattern weiterhin mit der neuen URL übereinstimmt, und aktualisieren Sie dann bei Bedarf die Konfiguration und stellen Sie sie erneut bereit. Das Standardlimit bleibt eine Konfiguration pro Organisation: Wenn bei einer Migration sowohl der vorherige als auch der neue Host gleichzeitig abgedeckt sein müssen, wenden Sie sich an die Adobe-Kundenunterstützung.

Fehler

Beim Erstellen oder Aktualisieren einer Konfiguration validiert der Prozess die angegebene Konfiguration und gibt den Validierungsstatus zurück, der durch seine eindeutige ID identifiziert wird, entweder:

"ok" or "error"
IMPORTANT
Die Attribute maxThroughput, urlPattern und methods sind zwingend erforderlich.
Der Wert für maxThroughput muss zwischen 200 und 5000 liegen.

Beim Erstellen, Löschen oder Bereitstellen der Drosselungskonfiguration können die folgenden Fehler auftreten:

  • ERR_THROTTLING_CONFIG_100: Drosselungskonfiguration: <mandatory attribute> erforderlich
  • ERR_THROTTLING_CONFIG_101: Drosselungskonfiguration: maxThroughput ist erforderlich und muss größer oder gleich 200 und kleiner oder gleich 5.000 sein.
  • ERR_THROTTLING_CONFIG_104: Drosselungskonfiguration: fehlerhaftes URL-Muster
  • ERR_THROTTLING_CONFIG_105: Drosselungskonfiguration: Platzhalter sind im Host-Teil des URL-Musters nicht zulässig
  • ERR_THROTTLING_CONFIG_106: Drosselungskonfiguration: ungültige Payload
  • THROTTLING_CONFIG_DELETE_FORBIDDEN_ERROR: 1456, „Eine bereitgestellte Drosselungskonfiguration kann nicht gelöscht werden. Bitte die Bereitstellung vor dem Löschen aufheben“
  • THROTTLING_CONFIG_DELETE_ERROR: 1457, „Die Drosselungskonfiguration kann nicht gelöscht werden: unerwarteter Fehler“
  • THROTTLING_CONFIG_DEPLOY_ERROR: 1458, „Die Drosselungskonfiguration kann nicht bereitgestellt werden: unerwarteter Fehler“
  • THROTTLING_CONFIG_UNDEPLOY_ERROR: 1459, „Die Bereitstellung der Drosselungskonfiguration kann nicht aufgehoben werden: unerwarteter Fehler“
  • THROTTLING_CONFIG_GET_ERROR: 1460, „Drosselungskonfiguration kann nicht abgerufen werden: unerwarteter Fehler“
  • THROTTLING_CONFIG_UPDATE_NOT_ACTIVE_ERROR: 1461, „Drosselungskonfiguration kann nicht aktualisiert werden: Laufzeitversion ist nicht aktiv“
  • THROTTLING_CONFIG_UPDATE_ERROR: 1462, „Drosselungskonfiguration kann nicht aktualisiert werden: unerwarteter Fehler“
  • THROTTLING_CONFIG_NON_PROD_SANDBOX_ERROR: 1463, „Vorgang bei Drosselungskonfiguration nicht zulässig: Nicht-Produktions-Sandbox“
  • THROTTLING_CONFIG_CREATE_ERROR: 1464, „Drosselungskonfiguration kann nicht erstellt werden: unerwarteter Fehler“
  • THROTTLING_CONFIG_CREATE_LIMIT_ERROR: 1465, „Drosselungskonfiguration kann nicht erstellt werden: nur eine Konfiguration pro Organisation zulässig“
  • THROTTLING_CONFIG_ALREADY_DEPLOYED_ERROR: 14466, „Drosselungskonfiguration kann nicht bereitgestellt werden: bereits bereitgestellt“
  • THROTTLING_CONFIG_NOT_FOUND_ERROR: 14467, „Drosselungskonfiguration nicht gefunden“
  • THROTTLING_CONFIG_NOT_DEPLOYED_ERROR: 14468, „Bereitstellung der Drosselungskonfiguration kann nicht aufgehoben werden: noch nicht bereitgestellt“

Fehlerbeispiele

Beim Versuch, eine Konfiguration für Nicht-Produktions-Sandboxes zu erstellen:

{
    "status": 400,
    "error": "{\"code\":1463,\"family\":\"INPUT_OUTPUT_ERROR\",\"message\":\"Operation not allowed on throttling config: non prod sandbox\",\"service\":\"vyg-authoring-api\",\"version\":\"ed87515\",\"context\":\"com.adobe.voyager.service.authoring.restapis.v1_0.ThrottlingConfigService:384\",\"schema\":\"throttlingConfigs$ui-tests\"}",
    "requestId": "5sgnAYXs8mpswwjAFEIaAU2faQYbtyHc"
}

Falls die angegebene Sandbox nicht vorhanden ist:

{
    "status": 500,
    "error": "{\"code\":4000,\"family\":\"INTERNAL_ERROR\",\"message\":\"INTERNAL ERROR\",\"service\":\"vyg-authoring-api\",\"version\":\"ed87515\",\"context\":\"com.adobe.voyager.common.exceptions.ApiErrorException:43\"}",
    "requestId": "04ZJ4e5ki4bYs3lfO17a7hovRGewjvdK"
}

Beim Versuch, eine weitere Konfiguration zu erstellen:

{
    "status": 400,
    "error": "{\"code\":1465,\"family\":\"INPUT_OUTPUT_ERROR\",\"message\":\"Can't create throttling config: only one config allowed per org\",\"service\":\"vyg-authoring-api\",\"version\":\"ed87515\",\"context\":\"com.adobe.voyager.service.authoring.restapis.v1_0.ThrottlingConfigService:108\",\"schema\":\"throttlingConfigs$prod\"}",
    "requestId": "A7ezT8JhOQT4WIAf1Fv7K2wCDA8281qM"
}

Lebenszyklus der Konfiguration auf Laufzeitebene config

Wenn die Bereitstellung einer Konfiguration aufgehoben wird, wird sie auf Laufzeitebene als inaktiv markiert und ausstehende Ereignisse werden 24 Stunden lang weiter verarbeitet. Sie wird dann im Laufzeitdienst gelöscht.

Nachdem die Bereitstellung einer Konfiguration aufgehoben wurde, ist es möglich, die Konfiguration zu aktualisieren und erneut bereitzustellen. Dadurch wird eine neue Laufzeitkonfiguration erstellt, die bei der bevorstehenden Aktionsausführung berücksichtigt wird.

Beim Aktualisieren einer bereits bereitgestellten Konfiguration werden die neuen Werte sofort berücksichtigt. Die zugrunde liegenden Systemressourcen werden automatisch angepasst. Dies ist im Vergleich zur Aufhebung der Bereitstellung und der erneuten Bereitstellung der Konfiguration optimal.

Beispiele für Antworten responses

Erstellung – POST

{
    "canDeploy": {
        "validationStatus": "ok"
    },
    "createdElement": {
        "name": "throttling-config-external",
        "description": "example of throttling config for an external endpoint",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "PUT",
            "POST"
        ],
        "maxThroughput": 4000,
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedAt": "2023-03-22T10:48:16.099647Z"
        },
        "state": "created",
        "authoringFormatVersion": "1.0"
    },
    "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "uri": "/voyager/apis/throttlingConfigs/043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "resStatus": "created"
}

Aktualisieren – PUT

{
    "updatedElement": {
        "_id": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6_8872a010-f91e-11ea-895c-11ef8f98ba52",
        "name": "throttling-config-external -- optional",
        "description": "example of throttling config for an external endpoint -- optional",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "POST"
        ],
        "maxThroughput": 5000,
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedAt": "2023-03-22T11:39:14.212983Z"
        },
        "state": "updated",
        "authoringFormatVersion": "1.0",
        "hasBeenDeployed": false
    },
    "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "uri": "/voyager/apis/throttlingConfigs/043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
    "resStatus": "updated",
    "canDeploy": {
        "validationStatus": "ok"
    }
}

Lesen (nach Aktualisierung) – GET

{
    "result": {
        "_id": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6_8872a010-f91e-11ea-895c-11ef8f98ba52",
        "name": "throttling-config-external -- optional",
        "description": "example of throttling config for an external endpoint -- optional",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "POST"
        ],
        "maxThroughput": 5000,
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedAt": "2023-03-22T11:39:14.212983Z"
        },
        "state": "updated",
        "authoringFormatVersion": "1.0",
        "hasBeenDeployed": false
    }
}

Lesen (nach Bereitstellung) – GET

{
    "result": {
        "_id": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6_8872a010-f91e-11ea-895c-11ef8f98ba52",
        "orgId": "AC202A3A5F615BD30A495FDE@AdobeOrg",
        "sandboxId": "8872a010-f91e-11ea-895c-11ef8f98ba52",
        "sandboxName": "prod",
        "uid": "043a1aea-2dfd-4965-b93a-cb9a1eced0e6",
        "urlPattern": "https://api.example.org/data/2.5/*",
        "methods": [
            "POST"
        ],
        "maxThroughput": 5000,
        "authoringFormatVersion": "1.0",
        "name": "throttling-config-external -- optional",
        "description": "example of throttling config for an external endpoint -- optional",
        "version": "1.0",
        "state": "deployed",
        "metadata": {
            "createdBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "createdById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "createdAt": "2023-03-22T10:48:16.099647Z",
            "lastModifiedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastModifiedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastModifiedAt": "2023-03-22T11:39:14.212983Z",
            "lastDeployedBy": "dacce1c3-d08b-4862-b434-2a4449c7e642@techacct.adobe.com",
            "lastDeployedById": "309F2A46640B0B300A495C83@techacct.adobe.com",
            "lastDeployedAt": "2023-03-22T11:46:07.532648Z"
        },
        "hasBeenDeployed": true
    }
}

Anwendungsfälle uc

In diesem Abschnitt werden wichtige Anwendungsfälle für die Verwaltung von Drosselungskonfigurationen in Journey Optimizer und die zugehörigen API-Befehle aufgelistet, die zur Implementierung des jeweiligen Anwendungsfalls erforderlich sind.

Details zu den einzelnen API-Befehlen finden Sie in der API-Beschreibung und Postman-Sammlung.

Erstellen und Bereitstellen einer neuen Drosselungskonfiguration

Zu verwendende API-Aufrufe:

  1. list: Ruft vorhandene Konfigurationen ab.
  2. create: Erstellt eine neue Konfiguration.
  3. candeploy: Prüft, ob die Konfiguration bereitgestellt werden kann.
  4. deploy: Stellt die Konfiguration bereit.
Aktualisieren und Bereitstellen einer (noch nicht bereitgestellten) Drosselungskonfiguration

Zu verwendende API-Aufrufe:

  1. list: Ruft vorhandene Konfigurationen ab.
  2. get: Ruft Details zu einer bestimmten Konfiguration ab.
  3. update: Ändert die Konfiguration.
  4. candeploy: Prüft die Eignung der Bereitstellung.
  5. deploy: Stellt die Konfiguration bereit.
Aufheben der Bereitstellung und Löschen einer bereitgestellten Drosselungskonfiguration

Zu verwendende API-Aufrufe:

  1. list: Ruft vorhandene Konfigurationen ab.
  2. undeploy: Hebt die Bereitstellung der Konfiguration auf.
  3. delete: Entfernt die Konfiguration.
Löschen einer bereitgestellten Drosselungskonfiguration

In nur einem API-Aufruf können Sie mithilfe des Parameters forceDelete die Bereitstellung aufheben und die Konfiguration löschen.

Zu verwendende API-Aufrufe:

  1. list: Ruft vorhandene Konfigurationen ab.
  2. delete(mit dem Parameter forceDelete): Erzwingt die Löschung einer bereitgestellten Konfiguration in einem einzigen Schritt.
Aktualisieren einer bereits bereitgestellten Drosselungskonfiguration
note
NOTE
Es ist nicht erforderlich, die Bereitstellung der Konfiguration vor der Aktualisierung aufzuheben.

Zu verwendende API-Aufrufe:

  1. list: Ruft vorhandene Konfigurationen ab.
  2. get: Ruft Details zu einer bestimmten Konfiguration ab.
  3. update: Ändert die Konfiguration.
AI Knowledge Reference

This section contains structured knowledge intended to support interpretation, retrieval, and question answering related to this topic.

For complete understanding, this information should be combined with the documentation on this page. Neither source is intended to stand alone; the page describes the feature, while this section provides additional context that helps disambiguate terminology, intent, applicability, and constraints.

  • TL;DR: The Throttling API lets you create, configure, deploy and monitor a throttling configuration that limits the number of events Adobe Journey Optimizer sends per second to external endpoints.

Intents:

  • Create, retrieve, update, deploy, undeploy and delete a throttling configuration with the commands of the Throttling API.
  • Check whether a throttling configuration can be deployed with the canDeploy command.
  • Set up the Throttling API Postman collection with the {JO_HOST}, {BASE_PATH} and {SANDBOX_NAME} variables.
  • Restrict the number of connections to an external system while also throttling the external calls, with one throttling configuration and one capping configuration on the same endpoint.
  • Interpret the validation status and the error codes returned when creating, updating, deleting or deploying a throttling configuration.

Glossary:

  • Throttling configuration (product-specific): The object that the Throttling API creates and deploys to limit the number of events sent per second. It has the attributes name, description, urlPattern, methods and maxThroughput.
  • urlPattern (product-specific): The endpoint URL of a throttling configuration. Wildcards are allowed. Throttling applies only when the request URL matches the deployed urlPattern.
  • methods (product-specific): The HTTP methods of a throttling configuration, such as GET, POST, PUT.
  • maxThroughput (product-specific): The max call throughput of a throttling configuration.
  • maxHttpConnections (product-specific): An optional parameter, available in the Capping API only, that restricts the number of connections Journey Optimizer opens to the external system.
  • Validation status (product-specific): The status returned when a throttling configuration is created or updated, identified by its Unique ID: ok or error.
  • forceDelete (product-specific): A parameter of the delete command that undeploys and deletes a deployed throttling configuration in only one API call.
  • {JO_HOST}: The Journey Optimizer Gateway URL, a variable of the Postman collection.
  • {BASE_PATH}: The entry point for the API, a variable of the Postman collection.
  • {SANDBOX_NAME}: The header x-sandbox-name (for example, prod) corresponding to the sandbox name where the API operations take place, a variable of the Postman collection.

Guardrails:

  • Only one throttling configuration is currently allowed per organization. If a migration requires both the previous and the new host of an endpoint to be covered at the same time, contact Adobe Customer Care.
  • A throttling configuration must be defined on a production sandbox, given through x-sandbox-name in the headers.
  • A throttling configuration is applied at organization level.
  • A throttling configuration is active only after calling the deploy endpoint.
  • The attributes maxThroughput, urlPattern and methods are mandatory. The name and description attributes are optional.
  • The maxThroughput value of a throttling configuration must be in the 200-5000 range (hard limit).
  • Wildcards are not allowed in the host part of the urlPattern, so a throttling configuration is tied to its endpoint host.
  • When the limit set in the Throttling API is reached, further events are queued for up to 6 hours. This value cannot be modified. Events still queued after 6 hours are dropped and reported with an actionExecutionError status of timedout.
  • Under sustained heavy backlog, an event can remain unread by the queue for around 24 hours, at which point the underlying queue infrastructure removes it directly, without generating a step event.

Terminology:

  • Canonical name: Adobe Journey Optimizer — Acronym: AJO — variants: Journey Optimizer
  • Canonical name: throttling configuration — variants: throttling config, configuration
  • Do not confuse: “Throttling API” ≠ “Capping API”

FAQ:

  • When does a throttling configuration become active? Only after calling the deploy endpoint.
  • What happens to events when the throttling limit is reached? Further events are queued for up to 6 hours. Events still queued after 6 hours are dropped and reported with an actionExecutionError status of timedout.
  • Is it required to undeploy a deployed throttling configuration before updating it? No. When a configuration already deployed is updated, the new values are taken into account immediately and the underlying system resources are automatically adapted. This is optimal compared to undeploying then redeploying the configuration.
  • What happens when a throttling configuration is undeployed? It is marked as inactive at runtime level, pending events continue to be processed during 24 hours, and it is then deleted in the runtime service. After it has been undeployed, it is possible to update and redeploy it, which creates a new runtime configuration that is considered in the upcoming actions execution.
  • What should be checked when a custom action endpoint changes host? Verify that the active urlPattern still matches the new URL, then update and redeploy the throttling configuration if needed.
  • How can a deployed throttling configuration be deleted in one API call? Use the delete command with the forceDelete parameter, which undeploys and deletes the configuration.
  • How can maxHttpConnections be set for a throttled endpoint? Use the Throttling API to set the throttling threshold and the Capping API to set maxHttpConnections. Both configurations can co-exist for one endpoint. When calling the Capping API, you can set the capping threshold to something higher than the throttling threshold so the capping rule effectively never comes into play.

Troubleshooting:

  • ERR_THROTTLING_CONFIG_100: throttling config: <mandatory attribute> required.
  • ERR_THROTTLING_CONFIG_101: throttling config: maxThroughput is required and must be greater than or equal to 200 and less than or equal to 5,000.
  • ERR_THROTTLING_CONFIG_104: throttling config: malformed url pattern.
  • ERR_THROTTLING_CONFIG_105: throttling config: wildcards not allowed in host part of the url pattern.
  • ERR_THROTTLING_CONFIG_106: throttling config: invalid payload.
  • THROTTLING_CONFIG_DELETE_FORBIDDEN_ERROR: 1456: Can't delete a deployed throttling config. Undeploy it before deleting it.
  • THROTTLING_CONFIG_DELETE_ERROR: 1457: Can't delete throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_DEPLOY_ERROR: 1458: Can't deploy throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_UNDEPLOY_ERROR: 1459: Can't undeploy throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_GET_ERROR: 1460: Can't get throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_UPDATE_NOT_ACTIVE_ERROR: 1461: Can't update throttling config: runtime version is not active.
  • THROTTLING_CONFIG_UPDATE_ERROR: 1462: Can't update throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_NON_PROD_SANDBOX_ERROR: 1463: Operation not allowed on throttling config: non prod sandbox. Returned with status 400 when trying to create a throttling configuration on a non-prod sandbox.
  • THROTTLING_CONFIG_CREATE_ERROR: 1464: Can't create throttling config: unexpected error occurs.
  • THROTTLING_CONFIG_CREATE_LIMIT_ERROR: 1465: Can't create throttling config: only one config allowed per org. Returned with status 400 when trying to create another throttling configuration.
  • THROTTLING_CONFIG_ALREADY_DEPLOYED_ERROR: 14466: Can't deploy throttling config: already deployed.
  • THROTTLING_CONFIG_NOT_FOUND_ERROR: 14467: throttling config not found.
  • THROTTLING_CONFIG_NOT_DEPLOYED_ERROR: 14468: Can't undeploy throttling config: not deployed yet.
  • Code 4000, family INTERNAL_ERROR, message INTERNAL ERROR: returned with status 500 when the given sandbox does not exist.

Examples:

  • Throttling configuration for an external endpoint: name throttling-config-external, urlPattern https://api.example.org/data/2.5/*, methods ["POST", "PUT"], maxThroughput 4000.
  • Creation and deployment of a new throttling configuration uses the API calls list, create, candeploy and deploy.
  • Update and deployment of a throttling configuration not yet deployed uses the API calls list, get, update, candeploy and deploy.
  • Undeployment and deletion of a deployed throttling configuration uses the API calls list, undeploy and delete.
  • Update of a throttling configuration already deployed uses the API calls list, get and update.

Related pages:

Personas:

  • developer: Can list, create, deploy, undeploy, update, retrieve and delete a throttling configuration with the Throttling API commands. Can check if a configuration can be deployed with the canDeploy command. Can define a configuration with the mandatory urlPattern, methods and maxThroughput attributes and the optional name and description attributes. Can undeploy and delete a deployed configuration in only one API call with the forceDelete parameter. Can set up the Postman collection with the {JO_HOST}, {BASE_PATH} and {SANDBOX_NAME} variables. The page states that the maxThroughput value must be in 200-5000 range. Where: “Throttling API description & Postman collection”.

Onboarding:

  • Level: Beginner
  • First minimal step: Retrieve existing throttling configurations with the list API call.
  • Success check: A GET on the configuration after deployment returns a state of deployed and hasBeenDeployed set to true.
recommendation-more-help
journey-optimizer-help