Skip to content

Question: Do I have to do any work to optimize sending multiple messages. #96

@macchmie3

Description

@macchmie3

Hi, my question is simple - Let's assume I want to send 10000 messages, while being in a message handler already. Can I do optimization in any way? I see no API methods for sending a collection of messages and I was wondering if there are any ways to optimize work in such case. Current code would be something of a sort:

foreach (var message in messages)
{
     await _bus.Send(message);
}

I'm not sure if it helps, but I use SqlServer in leased mode as transport layer.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions