This doesn't work at all for people who move around. I might have an assignment one year in Berlin then another for two years in Bangkok, then another three years in Singapore.
If you're on your own, you presumably have to hire an appropriate accountant.
This comes up even internally in the US if you're spending a lot of time in a number of states as a non-resident.