Skip to content

Conversation

@spencergibb
Copy link
Member

Allows service discovery systems to register more than one instance.

Automatic registration will still take place.

fixes gh-9

/cc @dsyer @adriancole @marcingrzejszczak

import org.springframework.beans.BeansException;
import org.springframework.boot.context.embedded.EmbeddedServletContainerInitializedEvent;
import org.springframework.cloud.client.discovery.event.InstanceRegisteredEvent;
import org.springframework.cloud.client.serviceregistry.Registration;
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 don't like how this is mixed up here. How about I move *Lifecycle to it's own package?

Copy link
Member Author

@spencergibb spencergibb Jul 2, 2016

Choose a reason for hiding this comment

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

In fact, DiscoveryLifecycle doesn't even make sense anymore. Maybe AutoRegistration? It's not a function of discovery at all.

@marcingrzejszczak
Copy link
Contributor

Can you explain in a few words how do you see it work? Like what the flow is cause I don't quite follow it ATM :/

Allows service discovery systems to register more than one instance.

Automatic registration will still take place.

fixes gh-9
Created AbstractAutoServiceRegistration with new methods and reference to ServiceRegistry.

It extends AbstractDiscoveryLifecycle.
@yidongnan
Copy link

Is there any plan to merge and release it?

@spencergibb
Copy link
Member Author

Closed via bf4b6e3

@yidongnan see spring-cloud-release milestones for tentative release dates.

@spencergibb spencergibb closed this Dec 9, 2016
@spencergibb spencergibb deleted the service-registry branch November 28, 2017 03:26
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.

Create ServiceRegistry interface with register/unregister

5 participants