Add cloud-stream module: Spring Cloud Stream 5.1 on Boot 4.2 with Kafka and RabbitMQ binders
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5uEyg58znuchZ8C8i
This commit is contained in:
co-authored by
Claude Sonnet 5.5
parent
e54cf840fd
commit
e2c42dc268
@@ -0,0 +1,37 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user