You will need two cooking stoves simultaneously for the preparation of mysore pak. Heat ghee continuously on one of them.
Heat 1tsp ghee in a thick pan and sauté the besan flour in it. Do not allow to change the colour of the flour.
Boil the sugar with the water until it becomes a thick syrup. Add 1/2cup of hot ghee into it. Add the besan flour in it slowly and stir continuously. Occasionally, add the hot ghee into the mixture. When the ghee separates and mixture thickens, add soda powder. Stir well and pour it immediately to a greased vessel in a thick layer (11/2 inch thickness). It will get even on its own. You can see lot of bubbles forming in the mixture. Cut into desired shapes when it is still hot.