This package contains interfaces and classes used to define connection parameters
Important points
- A Discovery is a service that stores a registry of various end-points.
- There are two types of discovery:
- Static discovery: all services have static IP addresses that are configured from the start and don’t change along the way. As of lately, it is used more often than dynamic, because it is simpler to use and more reliable.
- Dynamic discovery: every time a service starts, it registers its address in the discovery service. Clients then ask to resolve the address by which the requested service can be reached. The service has a general name, by which other services can resolve it.
Interfaces
IDiscovery
Interface for discovery services which are used to store and resolve connection parameters to connect to external services.
Classes
CompositeConnectionResolver
Helper class that resolves connection and credential parameters, validates them and generates connection options.
ConnectionParams
Contains connection parameters to connect to external services. They are used together with credential parameters, but usually stored separately from more protected sensitive values.
ConnectionResolver
Helper class to retrieve component connections.
ConnectionUtils
A set of utility functions to process connection parameters
DefaultDiscoveryFactory
Class used to retrieve connections for HTTP-based services and clients
MemoryDiscovery
Discovery service that keeps connections in memory.