Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
38 lines
1.2 KiB
YAML
38 lines
1.2 KiB
YAML
# Everything broker-neutral lives in this file. The broker-specific blocks live in the two
|
|
# profile files next to it.
|
|
spring:
|
|
application.name: cloud-stream-demo
|
|
main:
|
|
# The Rabbit binder drags spring-boot-starter-webflux in transitively, which would turn this broker-only
|
|
# worker into a reactive web server on port 8080 (see scripts/webflux-path.sh).
|
|
web-application-type: none
|
|
cloud:
|
|
function:
|
|
# The functions to bind, separated by semicolons. Left empty, nothing was bound to 'orders' (output/09).
|
|
definition: orderSource;priceOrder;bill
|
|
stream:
|
|
poller:
|
|
fixed-delay: 1000
|
|
bindings:
|
|
orderSource-out-0:
|
|
destination: orders
|
|
producer:
|
|
partition-key-expression: payload.customerId
|
|
partition-count: 3
|
|
priceOrder-in-0:
|
|
destination: orders
|
|
group: pricing
|
|
priceOrder-out-0:
|
|
destination: invoices
|
|
bill-in-0:
|
|
destination: invoices
|
|
group: billing
|
|
consumer:
|
|
max-attempts: 3
|
|
back-off-initial-interval: 200
|
|
back-off-multiplier: 1.0
|
|
logging:
|
|
level:
|
|
root: WARN
|
|
com.ankurm: INFO
|