Message Publisher
Publishing messages to Kafka with Ecotone
Last updated
Was this helpful?
Was this helpful?
#[ServiceContext]
public function distributedPublisher()
{
return KafkaPublisherConfiguration::createWithDefaults(
topicName: 'orders'
)
->setConfiguration('request.required.acks', '1');
}