-
Notifications
You must be signed in to change notification settings - Fork 4
Clarify usage #20
Comments
The In other words, this is not a generic batch for Azure Storage Queues but rather specific, for formats that can deal with binary data. I hope this clarifies the purpose of this project @EricAndreas. If yes, feel free to close the issue. |
That's great, I was not aware of that purpose (maybe state that and provide a usage example? I know it would have helped me...) I found this project when looking for batching options (rather than scale out) with queue triggers and this seemed like a perfect fit - if it also has better performance it's even better! Would you say QueueBatch.Tests/IntegrationTests.cs shows "formats that can deal with binary data"? I got usage from that but not quite sure what (other?) usage this project aims for (any samples)? But (more importantly), great work! |
If your serialization supports reading in zero-copy mode, or something similar, you could allocate an instance once, and use it for all the cases. Or if every message in a batch represents an array, you could read it one after another. Thinking about it as loop (batch) over loop (array) of items. These would be scenarios. If you agree, let's keep this issue open @ErikAndreas. I don't promise to address this within a week, but it'll be at least visible. |
I struggled a bit to figure out how to actually get a hold of my queued message. Maybe clarify in docs (not sure if what I got is the best way...) what to do with a Memory<byte> object? Maybe my lack of c# knowledge but I think a clarification might be useful?!
so I 'd add a message as usual:
and then consume it in my trigger
using BatchQueueTrigger
is there a better way?
The text was updated successfully, but these errors were encountered: