Rheology of colloidal and metallic glass formers