-
Notifications
You must be signed in to change notification settings - Fork 16
Strict Metadata Matcher
Nadim Benabdenbi edited this page May 22, 2018
·
3 revisions
Strict metadata matcher is designed to target servers with a specific set of metadata info. It does a round robin balancing when multiple servers have the desired set of metadata info.
@RibbonClients(defaultConfiguration = RibbonClientsConfig.class)
@SpringBootApplication
public class Application{
...
}
@Configuration
@EnableRibbonStrictMetadataMatcher
public class RibbonClientsConfig {
}
ribbon.extensions.rule.strict-metadata-matcher.enabled=true
ribbon.extensions.client.my-client-name.rule.strict-metadata-matcher.enabled=true
Where my-client-name is the ribbon client name
Where current() refers to ExecutionContextHolder.current()