Depends on your country as to solutions ? in Australia, I go with a $30 per annum esim plan with Amysim SMS and calls only) and $20 international per annum roaming pack for international SMS 2FA. When i go back to Aus. I just change to a data plan on Amysim.
I always get a local plan wherever I go, I do have a Roam esim data plan as a back I have only used it once to test it, it's PAYG so there's a small credit balance.