Skip to content

Validate DispatchConsumersAsync from ConnectionFactory #16

@luizcarlosfaria

Description

@luizcarlosfaria

When user ignore DispatchConsumersAsync boolean property of ConnectionFactory, consumer never will be called.

--
Users do not configure ConnectionFactory properly, ignoring DispatchConsumersAsync property (by default is false).

The way to make consistence guarantee is requesting the user ConnectionFactory to do my validations but by design handle the ConnectionFactory is not Oragon.RabbitMQ business.

ConnectionFactory and Connection is handled by user code, the Oragon.RabbitMQ job is to use a valid connection to create a consumer.

The effect is that consumer never be called.

This approach enables user code to handle connection lifecycle and granularity.

Is user responsible to choose between:

  • A shared connection for all consumers (per process)
  • A exclusive connection per consumer (per process)
  • A mix of shared and exclusive connections choosing by user (per process)

A pull request was created on rabbitmq/rabbitmq-dotnet-client, but this PR was closed.

Metadata

Metadata

Labels

enhancementNew feature or request

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions