Given a variable $a$ and a prime number $q$, we want to securely compute $a \text{ mod } q$.
The Barrett reduction is usually used in addition.
The Montgomery reduction is usually used in multiplication and reduction.