Residence visas differ long. Most last a long time to a couple of years. You can then renew your visa or apply for permanent residency. Check the laws of your country.