# Messaging to send events to update user event
# Update the Kafka and topic name for your own setup
messaging.producers.updateUserEvent.enabled: true
messaging.producers.updateUserEvent.topic: topic_123
messaging.producers.updateUserEvent.brokers: localhost:9092
messaging.producers.updateUserEvent.sync: true
messaging.producers.updateUserEvent.enableCircuitBreakerOnError: true
messaging.producers.updateUserEvent.request-timeout-ms: 100
messaging.producers.updateUserEvent.ack: all
messaging.producers.updateUserEvent.circuit-breaker-stay_in_open_state_on_error-ms: 10000
Note you can use other kafka properties e.g. linger.ms or batch.size. Since this is a property file use "-" instead of "." for kafka properties e.g. Kafka property is "request.timeout.ms" but in config you must have "request-timeout-ms"
What is enableCircuitBreakerOnError
setting?
Suppose you have some error in your kafka setup. Setting enableCircuitBreakerOnError=true
will open a circuit (circuit breaker) and will ensure your service does not fail.
Please note - when circuit is open, messages are dropped to ensure application resiliency(standard circiut breaker approch)
Use circuit-breaker.stay_in_open_state_on_error.ms
to specify how long circuit will remain open, before retrying.