What aspects/criteria should I consider when it comes to staying in a company vs switching companies vs switching teams internally? (Keeping in mind of How often is switching companies healthy?
Follow up: How hard/easy it becomes as and when we grow further in career (keeping in mind about senior roles in next company/family etc.)
Switching And Seniority
This is a good question, and I think it just gets weird/interesting with all the different cases:
Company quality is really important here. Getting the "FAANG glow" on your resume does unlock lots of opportunities later on, so I'd optimize for that.
As you become more senior, I'd be more careful about switching (i.e. talk to more people, be certain you're ok with the risk), since the expectation is that you'll stay at the company longer.