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,25 @@
|
||||
$ profile rabbit, function definition = bill, auto-bind-dlq=true, max-attempts=3
|
||||
|
||||
--- republish-to-dlq=true (what application-rabbit.yml sets) ---
|
||||
bill attempts for the poison invoice: 3
|
||||
queues (name, messages, consumers):
|
||||
invoices-<run>.billing 0 1
|
||||
invoices-<run>.billing.dlq 1 0
|
||||
DLQ payload: {"orderId":"p-r5a","customerId":"alice","total":-1.0}
|
||||
DLQ header names: [retry-count, x-exception-message, x-exception-stacktrace, x-original-exchange, x-original-routingKey]
|
||||
x-exception-message = Retry policy for operation 'org.springframework.integration.amqp.inbound.AmqpInboundChannelAdapter$Listener$$Lambda/0x...' exhausted; aborting execution
|
||||
x-original-exchange = invoices-<run>
|
||||
x-original-routingKey = invoices-<run>
|
||||
DLQ header has x-exception-stacktrace: true
|
||||
|
||||
--- republish-to-dlq=false (broker-side dead lettering only) ---
|
||||
bill attempts for the poison invoice: 3
|
||||
queues (name, messages, consumers):
|
||||
invoices-<run>.billing 0 1
|
||||
invoices-<run>.billing.dlq 1 0
|
||||
DLQ payload: {"orderId":"p-r5b","customerId":"alice","total":-1.0}
|
||||
DLQ header names: [x-death, x-first-death-exchange, x-first-death-queue, x-first-death-reason, x-last-death-exchange, x-last-death-queue, x-last-death-reason]
|
||||
x-first-death-queue = invoices-<run>.billing
|
||||
x-first-death-reason = rejected
|
||||
x-death: reason=rejected queue=invoices-<run>.billing count=1
|
||||
DLQ header has x-exception-stacktrace: false
|
||||
Reference in New Issue
Block a user