What kind of wastewater treatment can be recommended for homes where septic tanks cannot be installed?

What kind of treatment is to be adopted where a conventional septic tank cannot be provided ? (in case of water logged area, where the houses are very close to water bodies, space constraint problems etc).

Thank you for your suggestions!