Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pass multi message to handler using batchSize #165

Open
ryukato opened this issue Aug 31, 2022 · 1 comment
Open

Pass multi message to handler using batchSize #165

ryukato opened this issue Aug 31, 2022 · 1 comment
Assignees
Labels
enhancement New feature or request

Comments

@ryukato
Copy link

ryukato commented Aug 31, 2022

Is your feature request related to a problem? Please describe.
For now we're able to fetch multi messages using batchSize, and single message will be passed to executor.

Describe the solution you'd like
We want a new feature to passing the batched messages to executor. In other words, we want to execute like below.

@RqueueListener(value = ["email-queue"], concurrency="1", batchSize = "3")
fun handleEmailMessage(messages: Collection<GenericMessage<Any>>) {
  println("received email message: $messages")
}

I appreciate if you let me know a way with current implementation or any thought about my request.

@sonus21
Copy link
Owner

sonus21 commented Sep 3, 2022

This can be implemented but this will have specific issues like when one of the messages fails, should we retry the entire batch, or what to do? What's the advantage of using Batched listener?

@sonus21 sonus21 added the enhancement New feature or request label Sep 3, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants