regarding Europe, for Germany at least, if you have a tech job offer you can apply directly for an "EU Blue Card". It will get approved in a few months with basically no hassle. Then you can become a permanent resident within 21 months. I have done this and it was quite easy