A computer-implemented method routes service requests to services in a
service framework provided by a plurality of hosts. The method comprises
receiving a service request for a service in the service framework and
discovering a plurality of candidate hosts that host the service. The
plurality of candidate hosts are a subset of the plurality of hosts. The
method further comprises selecting a candidate host from the plurality of
candidate hosts based on measured latencies for the plurality of
candidate hosts and routing the service request to the selected candidate
host.