AMQP rule
Use Ably’s Firehose AMQP rule to send data such as messages, occupancy, lifecycle and presence events from Ably to AMQP.
Creating a AMQP rule
Copied!
There are two ways to create a AMQP rule:
- Using the Ably Dashboard.
- Using the Control API.
To create a rule in your dashboard:
- Login and select the application you wish to integrate with AMQP.
- Click the Integrations tab.
- Click the New Integration Rule button.
- Choose Firehose.
- Choose AMQP.
- Configure the settings applicable to your use case and your AMQP installation.
- Click Create.
Section | Purpose |
---|---|
URL | Specifies the AMQP connection URL in the format `amqps://username:[email protected]/vhost`. |
Headers | Allows the inclusion of additional information in key-value format. |
Another header button | Adds additional headers for the message. |
APMQ rule settings
Copied!
The following explains the APMQ general rule settings:
Section | Purpose | |
---|---|---|
URL | Specifies the HTTPS URL for the SQS queue, including credentials, region, and stream name. | |
AWS region | Defines the AWS region associated with the SQS queue. | |
AWS authentication scheme | Allows selection of the authentication method: AWS credentials or ARN of an assumable role. | |
AWS credentials | Enter AWS credentials in `key:value` format for authentication. | |
Routing key | Specifies the routing key used by the AMQP exchange to route messages to a physical queue. Supports interpolation. | |
Optional TTL (minutes) | Allows overriding the default queue TTL for messages to be persisted. |
See some examples of creating rules in the rules section of the Control API documentation. You can also refer to the rule section of the Control API Reference for information on creating a AMQP rule. You will need to select a ruleType
of amqp
.