Kafka outbound channel adapter
Sends messages to the kafka broker defined in the Kafka template.
Kafka documentation Spring Kafka documentation Spring Integration Kafka documentation
_id
Specify the Kafka template that describes the Kafka broker.
Required
_id
Specify the channel to which an error message for a failed send will be sent.
_id
Specifies the channel to which a message with record metadata will be sent after a successful send.
_id
Specify the Kafka template that describes the Kafka broker.
Required
_id
Specify the channel to which an error message for a failed send will be sent.
_id
Specifies the channel to which a message with record metadata will be sent after a successful send.
Advice can be added to change the behaviour of this endpoint, for example to add retry logic in case of failures. The following types of advice are available:
Retry advice: allows configuration of sophisticated retry scenarios; this includes specifying policies for retry attemps, backoff periods between attempts and the recovery strategy when retries are exhausted Circuit breaker: if a certain number of consecutive attempts fails, new requests will fail fast and no attempt will be made to invoke the request handler again until some time has expired Expression evaluating advice: general advice that evaluates a configurable SpEL expression on successful and/or failed attempts, and optionally can send a message to a success channel and/or failure channel
By adding multiple advices to this endpoint you can create even more complex combined behaviour. For example, if you add a circuit breaker and a retry advice, you can create a scenario where the circuit breaker only opens when all retries are exhaused. Note that the order of the advice types is important, as switching the order will change the combined behaviour: the first item in the list will be the top of the advice chain, meaning it will be the last advice that is evaluated. Also note that if any advice "traps" exceptions, all advices higher up in the chain won't know about any failures.