Attaining optimal batch performance via distributed processing over networks