Package-level declarations
Types
The endpoints of a me.ahoo.wow.client.WowClient in an application that is no Wow service, each context's service named lb://<service> and its instance chosen by Spring Cloud LoadBalancer on every attempt, so a retry may reach another one: a context's public routes at the chosen instance's URI, its internal port at the internal address its WowInstanceMetadata names, which a node of a service with wow-spring-cloud registers.
wow.peer.discovery=spring-cloud: a peer service's nodes are the instances the application's Spring Cloud service registry (Consul, Eureka, Nacos, Zookeeper, through their starters) has of the service, each at the internal address its WowInstanceMetadata names. It reads them through the application's ReactiveDiscoveryClient, Spring Cloud's composite one by default; it declares no setting of its own.
The metadata a Wow node's instance carries in a Spring Cloud service registry: the SERVICE it is a node of, and the INTERNAL_HOST and INTERNAL_PORT of the address it advertises to the nodes of its service, where its internal port takes its peers' calls, so the registry and the node's membership name one address. The keys have dashes, not dots: Consul takes no dot in a metadata key.
Gives the registration of this node in the application's service registry its WowInstanceMetadata: its service and the address it advertises to its members (ServiceNode.address), so a peer that looks the service up there reaches its internal port. Spring Cloud announces the registration (InstancePreRegisteredEvent) just before it registers it, once the public server is up, so after the node has bound its internal port, a port the system chose included.
Wires a Wow service to the application's Spring Cloud service registry, when it runs a node (the runtime is on the class path): its registration carries the node's internal address (WowRegistrationMetadata), and wow.peer.discovery=spring-cloud finds its peers there (SpringCloudPeerDiscovery), the host taking every me.ahoo.wow.spi.peer.PeerDiscovery bean. A node that keeps another discovery is told once, at startup, how to switch. This module lists it in META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports and imports no Spring Boot type. An application that is no Wow service takes LoadBalancedEndpoints alone.