Best matching processes in distributed systems