According to the classical Krull–Schmidt Theorem, any module of finite composition length decomposes as a direct sum of indecomposable modules in an essentially unique way, that is, unique up to isomorphism of the indecomposable summands and a permutation of the summands. Modules that do not have finite composition length can have completely different behaviors. In this survey, we consider in particular the case of the modules M R whose endomorphism ring E := End(M R ) is a semilocal ring, that is, E/J(E) is a semisimple artinian ring. For instance, modules of finite composition length have a semilocal endomorphism ring, but several other classes of modules also have a semilocal endomorphism ring, for example artinian modules, finite direct...