Shanghai’s status as an emerging tech hub is bringing with it problems related to overcrowding experienced by US cities like San Francisco and certain parts of New York City – namely out-of-control rents and home prices.

But now, the cities’ mid-tier office drones, some of whom may not have enough cash saved to “commit” to an apartment, have a new low-cost housing alternative. They're called shared compartments, and they're are popping up in office buildings around Shanghai. Users pay to sleep in the compartments for a set amount of time. They’re given disposable bedding to make sleeping more comfortable, and the compartments are disinfected automatically by ultraviolet light after each use.

Photos of these compartments have been circulating on Chinese media:

People can enjoy a rest in the compartment by scanning the QR codes for payment.

A man experiences a shared compartment in Shanghai...

The inside of a shared compartment...

The disposable bedding...

They have been rising precipitously now for at least a decade, with an average 1,000 square foot apartment in Shanghai going for $725,000, or around five million yuan. Shanghai's average salary per month is 7,108 yuan ($1,135) or 85,300 yuan a year. That puts local property in Shanghai at about 50 times median salaries in the city, according to Forbes. By comparison, housing prices in New York City are 32 times salaries of average New Yorkers.

With those figures in mind, showering at the company gym doesn’t sound so bad.