Microcavity Emitters and Detectors