The relative chinese remainder theorem says that for any ring $R$ with two ideals $I,J$ we have an iso $R/(I\cap J)\cong R/I\times_{R/(I+J)}R/J$.
Let's take $R=\Bbbk [x_1,\dots ,x_n]$ for $\Bbbk $ algebraically closed. If $I,J$ are radical, the standard dictionary tells us $R(I\cap J)$ is the coordinate ring of the variety $\mathbf V(I)\cup \mathbf V(J)$. Furthermore, if $I+J$ is radical then $R/(I+J)$ is the coordinate ring of the intersection $\mathbf V(I)\cap\mathbf V(J)$. Now the elements in the pullback are just pairs of functions which are consistent on the intersection, and the isomorphism tells us we can glue them to get a function defined on the union.
This has a very sheafy feel to it, yet I find the need for $I,J$ to be radical somewhat disconcerting. I don't know any scheme theory, and I'm not sure exactly how to phrase my question except:
What's the underlying sheaf here and in what context is it most natural?
I guess what I'm hoping for is a setting in which every ideal of a ring has some geometric analog, not just radicals.