The devshirme system

What was the devshirme system and how did it contribute to the successful running of the empire? What was the millet system and why was it a novel approach to governing multi-sectarian societies?