# Difference between Pearson residuals and Deviance [duplicate]

I have a problem complete figuring out the difference between Deviance and Pearson residuals. So what I have intepreted both deviance and Pearson residuals are kind off a distance measurement between the y and the mean in generalized linear models. But then how can we extinct one from the other?