Just like the commutator measures the degree of noncommutativity, the associator measures the degree of nonassociativity of a nonassociative ring or algebra. It is identically zero for an associative ring or algebra.
The associator in any ring obeys the identity
The associator is alternating precisely when is an alternative ring.
In higher-dimensional algebra, where there may be non-identity morphisms between algebraic expressions, an associator is an isomorphism