What technologies, solutions and practices for residential and commercial buildings can result in little or zero water water discharge?

While zero water discharge for industries has been implemented successfully in many countries, what about residential and commercial buildings? What innovative concepts and solutions can make zero water discharge for these buildings a reality?