A space is realcompact if its a closed subspace of an arbitrary product of real lines, with product topology.
A cardinal $\kappa$ is called measurable if there exists a (countably additive) $\{0, 1\}$-valued measure $\mu:\kappa\to \{0, 1\}$ with $\mu(\kappa) = 1$ and $\mu(\{x\}) = 0$ for $x\in \kappa$. This is not the standard meaning of what set theorists call a measurable cardinal. Apparently the proper terminology is "$\sigma$-measurable cardinal".
Its known that a discrete space is realcompact if and only if it has non-measurable cardinality. The proof of this result basically follows trivially from definitions. Its also known that a metrizable space of non-measurable cardinality must be realcompact.
For discussion on above see Rings of continuous functions by Gillman and Jerison.
In the same book, they never question if realcompactness is equivalent to non-measurable cardinality also for metric spaces. Is that true?
Also see this post for some previous discussion of whetever every metrizable space is realcompact.