Copied from https://github.com/microsoft/spring-cloud-azure/issues/764
Query/Question
I'd like to be able to specify a partition key when producing events to event hubs using azure-spring-cloud-stream-binder-eventhubs.
Is the property spring.cloud.stream.bindings.<channelName>.producer.partitionKeyExpression supported ?
Hi @rodrigolopes,
According to this code segment, it's supported to specify a partition key when sending messages to the Event Hubs:
However, the channel binder doesn't use the property as partitionKeyExpression:
We'll check whether to use spring.cloud.stream.bindings.<channelName>.producer.partitionKeyExpression directly in our implementation.