|
| 1 | +--- |
| 2 | +sidebar_position: 8 |
| 3 | +--- |
| 4 | + |
| 5 | +# Configuration Properties |
| 6 | + |
| 7 | +You can customize some predefined variables of Reactive Commons |
| 8 | + |
| 9 | +This can be done by Spring Boot `application.yaml` or by overriding the [AsyncProps](https://github.com/reactive-commons/reactive-commons-java/blob/master/async/async-rabbit-starter/src/main/java/org/reactivecommons/async/rabbit/config/props/AsyncProps.java) bean. |
| 10 | + |
| 11 | +```yaml |
| 12 | +app: |
| 13 | + async: |
| 14 | + withDLQRetry: false # if you want to have dlq queues with retries you can set it to true, you cannot change it after queues are created, because you will get an error, so you should delete topology before the change. |
| 15 | + maxRetries: 10 # max message retries, used when withDLQRetry is enabled |
| 16 | + withDLQRetry: 1000 # interval for message retries, used when withDLQRetry is enabled |
| 17 | + listenReplies: true # if you will not use ReqReply patter you can set it to false |
| 18 | + createTopology: true # if your organization have restricctions with automatic topology creation you can set it to false and create it manually or by your organization process. |
| 19 | + delayedCommands: false # Enable to send a delayed command to an external target |
| 20 | + prefetchCount: 250 # is the maximum number of in flight messages you can reduce it to process less concurrent messages, this settings acts per instance of your service |
| 21 | + flux: |
| 22 | + maxConcurrency: 250 # max concurrency of listener flow |
| 23 | + domain: |
| 24 | + events: |
| 25 | + exchange: domainEvents # you can change the exchange, but you should do it in all applications consistently |
| 26 | + eventsSuffix: subsEvents # events queue name suffix, name will be like ${spring.application.name}.${app.async.domain.events.eventsSuffix} |
| 27 | + notificationSuffix: notification # notification events queue name suffix |
| 28 | + direct: |
| 29 | + exchange: directMessages # you can change the exchange, but you should do it in all applications |
| 30 | + querySuffix: query # queries queue name suffix, name will be like ${spring.application.name}.${app.async.direct.querySuffix} |
| 31 | + commandSuffix: '' # commands queue name suffix, name will be like ${spring.application.name}.${app.async.direct.querySuffix} or ${spring.application.name} if empty by default |
| 32 | + discardTimeoutQueries: false # enable to discard this condition |
| 33 | + global: |
| 34 | + exchange: globalReply # you can change the exchange, but you should do it in all applications |
| 35 | + repliesSuffix: replies # async query replies events queue name suffix |
| 36 | +``` |
0 commit comments