A compensator is a function that takes an arbitrary address metadata map and computes a latency compensation.
A compensator is a function that takes an arbitrary address metadata map and computes a latency compensation. This compensation can be added to connection and request timeouts. Latency compensation is exposed to the stack via a Stack.Param LatencyCompensation.Compensation.
If configured, overrides the default Compensator used in all un-configured clients.
If configured, overrides the default Compensator used in all un-configured clients. If a caller configures a Compensator, the override value will not be used in favor of the caller-configured value.
Latency compensation enables the modification of connection, request, and session acquisition timeouts on a per-endpoint basis. For instance, if a client has both network-local and trans-continental endpoints, a reasonable latency compensator might add the speed-of-light penalty when communicating with distant endpoints.