Skip to content

Instantly share code, notes, and snippets.

@lmonkiewicz
Created January 30, 2023 16:29
Show Gist options
  • Save lmonkiewicz/8d31a6403e48d16068b9578495f6c269 to your computer and use it in GitHub Desktop.
Save lmonkiewicz/8d31a6403e48d16068b9578495f6c269 to your computer and use it in GitHub Desktop.
spring:
cloud:
stream:
poller:
fixedDelay: 100
max-messages-per-poll: 100
default:
content-type: application/*+avro
producer:
partitionCount: 1
use-native-encoding: true
consumer:
use-native-decoding: true
function:
definition: >
cartEventsConsumer;
paymentEventsConsumer;
shippingEventsConsumer;
orderEventsSupplier;
bindings:
cartEventsConsumer-in-0:
destination: cart-events
group: orders-cartConsumer
paymentEventsConsumer-in-0:
destination: payment-events
group: orders-paymentConsumer
shippingEventsConsumer-in-0:
destination: shipping-events
group: orders-shippingConsumer
orderEventsSupplier-out-0:
destination: order-events
kafka:
default:
consumer:
ack-mode: manual
enable-dlq: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment