I was wondering when exactly we can recover the topological space, $X$, from its ring of continuous functions into $\mathbb C$ (or some sort of sufficient topological group).
For any topological space, $X$, we can define $\mathcal O_X :=\{f:X\to \mathbb C |f \text { is continuous} \}$, which is a ring with pointwise addition and multiplication. Then we can look at the affine scheme $\text {Spec}_{\mathcal O_X}$.
My question is: can we always recover the space $X$ from this scheme? I feel like the answer should be no, because there can be some really weird topological spaces. (I know my question is fairly vague, but I hope it can be received well)