When Can I Spay My Kitten?

My kitten is almost 2 years old. I am just wondering, when can i spay my kitten? She has two menses per year and they are extremely painful for her . Is it safe to have her spayed at the age of 2 ? Can she have kittens later on if I wait till she goes through menopause?