Skip to content

ReceiverSettingsValidation and poison queue fallback logic might need a closer look #1139

@danielmarbach

Description

@danielmarbach

Describe the suggested improvement

ASQ validates early on the settings for the poison queue

ValidateReceiversSettings(receiversSettings);

but later then has sane fallback strategies to discover sensible defaults

https://github.com/Particular/NServiceBus.AzureStorageQueues/blob/a7de739961f1a87552a78f4c2bee37eefe30b76d/src/Transport/AzureStorageQueueTransport.cs#L231C1-L233

those sensible defaults though are not using the Core error queue fallbacks by leveraging https://github.com/Particular/NServiceBus/blob/master/src/NServiceBus.Core/Recoverability/Faults/ErrorQueueSettings.cs#L19. Furthermore, from a lower level transport seam implementation each receiver is allowed to have their own error queue but the fallback logic does a FirstOrDefault which could lead to inconsistent or surprising behavior.

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions