JasperFx / wolverine

Supercharged .NET server side development!
https://wolverinefx.net
MIT License
1.17k stars 126 forks source link

Support Message Batching #936

Open jeremydmiller opened 1 week ago

jeremydmiller commented 1 week ago

It comes up often enough.

So if you have a handler like:

public static void Handle(Message[] messages), and you publish await bus.PublishAsync(new Message()), Wolverine does the aggregation for you. Needs to be able to track the success/failure of each message, plus the batched message. For right now, only support this for local queues.

cc @BrianVallelunga

BrianVallelunga commented 1 week ago

I'll add the comment that I think the aggregation needs to be by Tenant, also.

jeremydmiller commented 1 week ago

Oh, good point