Closed snimmagadda1 closed 1 year ago
oh interesting, looks like this just went into spring-cloud https://github.com/spring-cloud/spring-cloud-stream/pull/2344
Per this, the KafkaTemplate
it pulls from configs set in spring.kafka
- this has me wondering if these equivalent configs can be set for EventHubs specifically
@yiliuTo Please help to handle this issue.
I was able to get it working, a bit counter-intuitive to have to configure the same properties in a second location (spring.kafka
) in addition to spring.cloud
:
spring:
kafka:
producer:
bootstrap-servers: ${KAFKA_BROKER}
client-id: dlqProducerClient
properties:
security.protocol: SASL_SSL
sasl.mechanism: PLAIN
sasl.jaas.config: ${KAFKA_JAAS_CONFIG}
template:
default-topic: ${APP_TOPIC}-dlt
Query/Question
Hi - I'm using the following starter:
I'm looking to implement a retry policy with sum time greater than the
max.poll.interval
of the eventhub broker. For this scenario, Spring Cloud Kafka binder implementation recommends aListenerContainerWithDlqAndRetryCustomizer
as described here.However, after registering this configuration and retry policy, It looks like DLQ producer configs are incorrect and using default Kafka configurations- I see the binder attempting to send DLQ messages to the wrong broker (localhost:9092, connection is timing out). I assume this is because the default KafkaTemplate is being wired in... I'm new to this interface & lib specifically, is this DQL and Retry processing interface supported with eventhubs?
Relevant code & configs, with some properties excluded for brevity:
Why is this not a Bug or a feature Request? I was unable to find documentation in the event hub specific docs.
Content (please complete the following information if possible):