spring-cloud / spring-cloud-stream-samples

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

Add a sample of consuming and producing messages using function + batch #239

Closed StevenPG closed 1 year ago

StevenPG commented 1 year ago

There aren't many/any concrete examples on the web of using the producers defined here: https://docs.spring.io/spring-cloud-stream/docs/current/reference/html/spring-cloud-stream.html#_batch_producers

My team has attempted to wire this component unsuccessfully a handful of times and the main stack-overflow page that comes up in searches has an accepted answer of basically "I just switched to the stream publisher".

sobychacko commented 1 year ago

@StevenPG Could you describe a bit more about your use case? We would love to fill any gaps in the framework if necessary. Once we hear your use case, we can identify whether that is an issue in the framework.

StevenPG commented 1 year ago

@sobychacko Sorry for any confusion! I couldn't find any working examples of the batch producers I linked in the first issue post.

I was able to get batch producing working in the PR linked below, but not in my own project. So it's probably an issue on our end rather than a missing/broken capability in the framework.

That said, I was able to build off the existing stream sample and opened a PR for it here https://github.com/spring-cloud/spring-cloud-stream-samples/pull/240. I think this might be useful to add, due to lack of existing samples on the web.

StevenPG commented 1 year ago

Closed and merged back in Feb