GCP Pub/Sub AidboxTopicDestination
Last updated
Last updated
This functionality is available starting from version 2411.
The GCP Pub/Sub AidboxTopicDestination works in the following way:
Aidbox stores events in the database within the same transaction as the CRUD operation.
After the CRUD operation, Aidbox collects unsent messages from the database and sends them to the GCP Pub/Sub.
If an error occurs during sending, Aidbox will continue retrying until the message is successfully delivered. So Aidbox guarantees at least once delivery for an event.
To use Webhook with you have to create resource.
You need to specify the following profile:
Parameter name | Value type | Description |
---|---|---|
| valueString | GCP project identifier. |
| valueString | The name of the Pub/Sub topic to which you want to publish messages. |
| valueUnsignedInt | Set the delay threshold to use for batching. Default value (ms) - 1 |
| valueUnsignedInt | |
| valueUnsignedInt | Set the request byte threshold to use for batching. After this many bytes are accumulated, the elements will be wrapped up in a batch and sent. Default value (bytes) - 1000 |
* required parameter.
Aidbox provides $status
operation which provides short status information of the integration status:
Response format:
Property | Type | Description |
---|---|---|
| valueDecimal | Total number of events that have been successfully delivered. |
| valueDecimal | Number of delivery attempts that failed. It represents the overall failed delivery attempts. |
| valueDecimal | Current number of events in the buffer being processed for delivery. |
| valueDecimal | Number of events pending in the queue for send. |
| valueDateTime |
|
| valueString |
|
| part | Information about errors of the latest failed attempt to send an event. This parameter can be repeated up to 5 times. Includes the following parameters. |
| valueString | Error message of the given error. |
| valueDateTime | Timestamp of the given error. |
To enable Aidbox to send messages to Pub/Sub, you must set up GCP Application Default Credentials in the Aidbox environment.
Aidbox supports integrating GCP Pub/Sub with a local emulator for testing and development purposes. To set up this, specify the following environment variable in the Aidbox configuration:
Set the element count threshold to use for batching. After this many elements are accumulated, they will be wrapped up in a batch and sent. Aidbox always generates one for each event. Therefore, you will receive as many notifications as there are events, but they will be sent in batches. Default value - 100