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.
Latency compensation enables the modification of connection and request 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.