laveeshb / azure-function-extensions-net

Extensions for Azure Functions
MIT License
4 stars 7 forks source link

Concurrent processing #41

Closed juanmjacobs closed 4 years ago

juanmjacobs commented 4 years ago

Hi! I've made a little tweak on the listener. Currently a client can specify MaxNumberOfMessages to get several messages from the queue, but then those messages are processed sequentally, slowing the overall process.

I rewrote the part that calls the executor to use await Task.WhenAll instead of foreach + await. This way, the messages are processed concurrently.

Let me know if you have any thoughts!

laveeshb commented 4 years ago

@juanmjacobs I published a new package with the latest changes. Here are the release notes -- https://github.com/laveeshb/azure-function-extensions-net/releases/tag/amazon.sqs-v1.3.0

juanmjacobs commented 4 years ago

@laveeshb That's great, thank you very much! I'll probably be adding some more functionality regarding having access to the message attributes (receive count, sender, etc) from the workers. I'll let you know when I get around to it!

laveeshb commented 4 years ago

@juanmjacobs sounds good. Please feel free to open issues for stuff that you think needs to be improved or added. It will help tracking the work.