I'm looking to implement a scenario where consumer order does not matter, and want to publish to multiple partitions.
In this scenario, what would the strategy be used to select a partition if partition-key-expression is not specified in the producer definition? i.e with this config I see the messages being published to all 4 topics, but it is not clear what mechanism is being used:
spring:
cloud:
stream:
bindings:
outbound:
destination: mytopic
group: app
producer:
partitioned: true
partition-count: 4