Skip to content

V4 Connectors usage pattern is too intrusive #1310

@macsux

Description

@macsux

Problem

As part of Steeltoe v4, it seems there's been a change in how connectors must be consumed. Instead of being able to inject native connection objects of libraries with preconfigured connection strings (how it was done traditionally), it now requires consumers to inject something similar to ConnectorFactory<RabbitMQOptions, IConnection>. This is very intrusive as it would
a) require major refactoring to existing apps in potentially hundreds of classes
b) hinder adoption, as customers are reluctant to take on intrusive dependencies. Previously one could argue that steeltoe inclusion was only 1-2 lines of code in startup code that only preconfigures default parameters on objects they already use throughout their code.

Proposed solution

While I suspect the motivation is to support multiple named instances of the same service bindings, both syntaxes should be supported. Easy by default for simple scenarios, - advanced syntax for complex use cases. I would expect to be able to inject raw library connection objects with preconfigured connection strings.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component/ConnectorsIssues related to Steeltoe connectorsReleaseLine/4.xIdentified as a feature/fix for the 4.x release lineType/enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions