Ehhh, that one's self-regulating. Have you seen what happens to houses next to the beach? They disintegrate at alarming rates. Maintenance is a nightmare.
That said, removed from market forces, there a lot of ways to allocate housing, such as some form of segmented lottery or waitlist.