spring-cloud / spring-cloud-stream-samples

Samples for Spring Cloud Stream
Apache License 2.0
956 stars 676 forks source link

Add Spring Batch Producer example to existing Kafka batch sample #240

Closed StevenPG closed 1 year ago

StevenPG commented 1 year ago

There aren't many examples available for users looking to implement the Spring Cloud 3.0+ batch produce feature in streams. This PR is simple adding a working example of batch producing messages.

Direct doc here -> https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/spring-cloud-stream.html#_batch_consumers

sobychacko commented 1 year ago

@StevenPG Thank you for this PR. It is now merged upstream. We are considering adding a few samples from this repository to the core Spring Cloud Stream repository. This sample is something that others could benefit from by being in the core repository. If you are up to it, you can take this sample, modify it according to the core samples' requirements, and send a PR there.

StevenPG commented 1 year ago

@sobychacko I'd be happy to! I'll look into the core sample requirements and put out a PR in the near future. Issue #239 can probably be closed!