CloudAMQP
CloudAMQP’s configurations follow the same model as RabbitMQ’s with a point of attention to the HostName parameter that already includes the url and credentials provided when creating the service in CloudAMQP. User/Password/Port parameters are not required
Subscribe to a queue in RabbitMQ
The JSON below demonstrates the default configuration with the RabbitMQ credentials, the exchange used, the Retry, the Fallback, the Threads and the ‘Subscribe’ option to receive events in the ‘orderevents’ queue as defined in the Queues item.
|
|
In the example below, we’re detailing the default Adapter settings and the RabbitMQ-specific settings.
General | — |
---|---|
Enable | Enable the Stream adapter (True/False) |
Alias | Define a unique name to identify the service |
Default | Sets the default for the centary to have more than one Stream (True/False) |
StreamType | Sets the Stream Type (RabbitMQ/Kafka) |
HostName | Configures the url/credential provided by CloudAMQP |
Exchange | Configures the default RabbitMQ |
ExchangeType | Configures the Exchange type |
Retry | Sets the number of retries |
Fallback | Sets a State for automatic persistence in case of failure |
Threads | Sets the number of concurrent connections processing events |
Buffer | Sets the number of events obtained per connection |
Subscribe | Configures RabbitMQ queues for read |
Example in the application log with this configuration:
|
|
YAML example with application settings:
To export the configurations as an environment variable and use in Kubernetes, run the command in the Devprime CLI:
dp export kubernetes
|
|
Last modified November 20, 2024 (61099f59)Use the RabbitMQ examples to explore other variations in the configuration.