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

Support multi-instance configuration as a legacy feature #161

Merged
merged 2 commits into from
Feb 24, 2016

Conversation

tmasternak
Copy link
Member

Those are changes based on @justabitofcode multi-instance spike. I did following things:

  • Re-based it over newest develop
  • Changed naming to reflect that this is legacy mode of operation
  • Split legacy mode code into dedicated classes in Legacy.MultiInstance folder

PoA:

  • Add Acceptance Tests for Legacy Multi-Instance feature

Connects to: #139

@tmasternak tmasternak changed the title [WIP] Added extension point for customers to provide multiple connection st… [WIP] Add extension points to support custom multi-db implementation Feb 17, 2016
@mauroservienti mauroservienti mentioned this pull request Feb 17, 2016
14 tasks
@tmasternak
Copy link
Member Author

This one is can continue when #162 is ready

@tmasternak tmasternak force-pushed the multiple_connection_string_spike branch from 6e75a7a to 6d86643 Compare February 19, 2016 14:47
@tmasternak
Copy link
Member Author

@justabitofcode please review. I've moved code into separate classes because otherwise sql connection management in normal mode of operation and in legacy multi-instance mode made MessagePump, MessageDispatcher and Receiver too complex.

@tmasternak tmasternak changed the title [WIP] Add extension points to support custom multi-db implementation Add extension points to support custom multi-db implementation Feb 19, 2016
@tmasternak tmasternak changed the title Add extension points to support custom multi-db implementation Support multi-instance configuration as a legacy feature Feb 22, 2016
{
c.UseTransport<SqlServerTransport>()
.UseSpecificSchema(queueName => queueName.Contains("Receiver") ? "receiver" : "sender")
.EnableLagacyMultiInstanceMode(async address =>
Copy link
Contributor

Choose a reason for hiding this comment

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

I think calling it "Legacy" gives the impression that you don't need to do anything. This is more like backwards compatibility, but handled in a new way. Would calling it "MultiInstanceCompatMode" or something like that be more precise?

Copy link
Member Author

Choose a reason for hiding this comment

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

The reason why "Legacy" has been used is to indicate that we users should avoid it as there are better ways to do it and that in v4 we will not support it any more. I'm not sure "Legacy" is the best word here though :/.

@weralabaj
Copy link
Contributor

OK, no more comments, but @justabitofcode should have a close look too.

@@ -82,5 +82,20 @@ public static TransportExtensions<SqlServerTransport> TransactionScopeOptions(th
transportExtensions.GetSettings().Set<SqlScopeOptions>(new SqlScopeOptions(timeout, isolationLevel));
return transportExtensions;
}

/// <summary>
/// Specifies connectionString lookup to be used by sql transport.
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we have an extra line of summary to indicate that this is for backwards compatibility and point customers to the new version?

Copy link
Member Author

Choose a reason for hiding this comment

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

👍 I've obsoleted the extension point and extended description.

@tmasternak tmasternak force-pushed the multiple_connection_string_spike branch from a7db109 to 4206da4 Compare February 24, 2016 08:20
weralabaj pushed a commit that referenced this pull request Feb 24, 2016
Support multi-instance configuration as a legacy feature
@weralabaj weralabaj merged commit 35acc85 into develop Feb 24, 2016
@weralabaj weralabaj deleted the multiple_connection_string_spike branch February 24, 2016 12:47
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.

5 participants