Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add stream-based rabbit mq bus #484

Closed
wants to merge 0 commits into from

Conversation

sarmis
Copy link
Contributor

@sarmis sarmis commented Aug 8, 2023

This commit introduces a new messaging bus based on RabbitMQ streams. Using RMQ streams is more efficient for installations with a large number of nodes.

/// <summary>
/// Gets or sets the name of the queue.
/// </summary>
/// <value>The name of the queue.</value>
public string QueueName { get; set; } = "";
public Action<string> _logger { get; set; } = null;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why we need this?


_subConnection.ConnectionShutdown += (_, e) =>
{
_options._logger?.Invoke($"ERROR: ConnectionShutdown: {e.ReplyText}");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using ILogger directly may be better here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants