You would need to look at all of the specifics in the equasion - foreign tax liabilities, Irish tax liabilities and income stream - sorry can't be more specific - but it depends on so many things - and what would be right for you would not necessarily be right for everyone - would depend on personal circumstances also.
If you returned to live in Ireland, you would be likely to be Irish resident from the date of your return - but you may not actually break residnece at all, depending on dates involved.
Similar with overseas country - depends if you visit afterwards, amounts of visits etc.
This is a very complex area, and you need to consider all options - and take professionald advice.