Batch Size Greater than 10? #397
Replies: 2 comments 2 replies
-
There is an item in the At the moment, I would consider if it's better to just open up the poll functionality and let users build concurrency in themselves, however, what you suggest also sounds like a viable thing to look at. Ultimately, we're open to look at suggestions, but we'd preferably like to implement it in a way that's maintainable and doesn't require additional third parties. |
Beta Was this translation helpful? Give feedback.
-
FWIW, we've been using the implementation from my PR in production for quite some time with no issues. I'm not sure I'd agree that you could achieve the same thing by opening up the polling implementation. Apart from requiring a somewhat tedious amount of boilerplate to write, you still wouldn't be able to have local concurrency control, or the ability to schedule when the poller gets called (both of which are important for my use-case). I will say that I have not tested my implementation against FIFO queues. (I think it should work, given the semantics of those queues, but I'd want to validate that assumption!) |
Beta Was this translation helpful? Give feedback.
-
Background
Has there been any thought given to allowing a batch size greater than 10 to be specified? I appreciate that the library currently maps 1:1 with the actual ReceiveMessage SDK operation, which has a limit of 10, but it seems to me that the code could be modified to perform
n
number of ReceiveMessage calls, concatenate together the responses, and continue on as normal with the same strategy employed at the end when it comes time to calldeleteMessageBatch
.What do the maintainers think of this idea? This library is a fantastic way to interact with SQS and enabling larger batches to be received out of the box would be a huge boon to a lot of its consumers.
Objectives
Beta Was this translation helpful? Give feedback.
All reactions