Regarding Shanghai, there are numerous possibilities to live in f.ex lakeside villas in neighbouring cities like Kunshan and Suzhou. I have come to view the whole Yangtze delta and Shanghai as one unseparable entity and prefer commuting from greener pastures to the big city to enduring the everyday stress related to it.