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

Storage Queue Batch Binder #625

Open
Bio2hazard opened this issue Jan 25, 2016 · 23 comments
Open

Storage Queue Batch Binder #625

Bio2hazard opened this issue Jan 25, 2016 · 23 comments
Labels
Milestone

Comments

@Bio2hazard
Copy link

Hey,

the lack of a batch binder for storage queues is problematic for us when it comes to doing some vendor integrations, so I wanted to ask if there are any plans to add that functionality in the near future.

As an example, our email provider gives us a rate limit of 200 calls per minute, but a single call can contain a payload of up to 200 email addresses in an array. The provider responds by returning a Key-Value-Pair of failed sends, with the key being the position in the submitted array, and the value being the error message.

I saw that a few months back support was added to receive blobs as a IEnumerable, and it would be wonderful if something similar could be done for storage queues.

To clarify, what I need is not a "wait until we have X messages before processing them", but rather a "process up to X messages if they are available".

I have built this functionality out in a Worker Role before, but would prefer to leverage the web jobs SDK moving forward.

If I can, I would like to contribute on making this happen.

What do you think?

@mathewc
Copy link
Member

mathewc commented Jan 25, 2016

Note that for the IEnumerable Blob bindings, those are only supported for the non-trigger input/output bindings. None of the input trigger bindings trigger on batches. However, a community member recently wrote a batching Queue trigger (see https://github.com/ealsur/WebJobs.Extensions.GroupQueueTrigger) using the extensibility model. You might give that a try.

If there is enough interest I do think this is something that would make sense to be added as part of the core triggers.

@Bio2hazard
Copy link
Author

I hadn't seen the Batching Queue Trigger, but yeah, that's basically the functionality I was looking for.

I will work with the extension for now, and of course would be thrilled to see the functionality make it's way into the core.

Thank you!

@agnauck
Copy link

agnauck commented Feb 17, 2016

I am also looking for such a feature. Taking a look at the batching Queue trigger linked above now.

Thanks,
Alex

@SeanFeldman
Copy link

👍 for this binder to be added.

Scenario I'm in - periodic work that could be requested multiple times, but shouldn't be executed multiple times. All requests are collected as messages and received in a bacth. Let's say webjob received 20 messages, only 1 work item will be executed, saving 19 other ones from been executed.

@koverda
Copy link

koverda commented Dec 5, 2016

I too am looking for a feature such as this.

@BrianVallelunga
Copy link

BrianVallelunga commented Feb 15, 2017

I'd love something like this for Azure Service Bus queues as well.

@tezizzm
Copy link

tezizzm commented Mar 2, 2017

I too am looking for a feature such as this.

@alexsorokoletov
Copy link

+1 for this feature, glad to see it is available as an extension

@mikhailshilkov
Copy link

Would be useful for Azure Functions too, and custom triggers aren't supported there

@jeremy001181
Copy link

Any updates please? Is it still sitting in the backlog?

@snympi
Copy link

snympi commented Apr 22, 2019

Any update please?

@czb182
Copy link

czb182 commented Jun 27, 2019

I agree this would be useful. I'm dealing with millions of messages potentially, and to use storage queue trigger, I would need to batch them up, otherwise I would overwhelm other services processing one at a time at the throughput level i need.

@hibearpanda
Copy link

This would be an important feature for us as well.

@onionhammer
Copy link

This would be extremely valuable, definitely a big thumbs up!

@nagarjunacspeaks
Copy link

nagarjunacspeaks commented Oct 22, 2020

Looks like this is pending since long time. Though the one with service bus batch trigger got implemented. Azure/azure-functions-servicebus-extension#15
Any idea if this is going to implemented in near future?

@loopjockey
Copy link

👍 this would be great

@adriennn
Copy link

@SeanFeldman
Copy link

@adriennn, it would be better to consolidate the effort and have upvotes on the issue instead of monitoring two different sources. I would suggest doing the opposite and directing from user feedback site here.

@snympi
Copy link

snympi commented Jan 31, 2021

@adriennn @SeanFeldman I voted at both locations.

@adriennn
Copy link

@SeanFeldman thanks for the headsup, it's always difficult to judge which of the feedback platforms are used to take decisions.

btw, for these developping with old sdk, there's QueueBatch
https://github.com/Scooletz/QueueBatch

@Herman-Wu
Copy link

This feature is very useful in our project too.

@SamambaMan
Copy link

Would like this feature as well, specially for Python worker

@shishirpy
Copy link

Need this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests