Professor J. Rufus Fears taught me that a "career" is a French word that means "path." He says it's a path to get from graduation into a retirement home. I have tried to internalize this concept, and it helped me take risks with quitting multiple career-type jobs to open up my own businesses. Roll the dice, and see how they land. Have an adventure, not a career.
One business of mine is a software development company. This is my primary means of livelihood. Right now, I mostly contract out development services to small-to-medium sized organizations that have trouble staffing programmers. The vast majority of my clients are not large enough to hire a full time, on staff, programmer to help do what I (literally me programming, most of the time) do for them. I've developed a relationship with a programmer in Kazakhstan, where I can take advantage of the lower costs to get things developed cheaper than here. However, now I am working primarily with a MUCH more expensive local programmer, since his efficiency is higher, the Kazakh guy isn't as available and finding a new one is a ton of work, and on some projects the local presence far outweighs the cost savings by outsourcing. Plus, the American is my friend, an early mentor that taught me about web programming when we were both employees, and things are slow with him now so I wanted to get started working together (on a relatively small project for a client.) I'm also working on developing a software product for passive income, but that takes a LOT longer, and is much riskier than contracting.
Another business I have is rental property close to the local university. That business is, by definition, tied to my geographical area. When software is slow, rents come in and I can work on home improvement projects. When software is busy, rents still come in and I can pay someone else to do emergency repairs, and put off improvements until a slow time.
The concept of relying on a single employer for all my income is extremely scary to me. I would much rather diversify my software earnings across multiple clients to mitigate risk. Similarly, I'd rather have multiple one-bedroom apartments to rent out as compared to a big house to rent so that when one of the college students decides he cannot pay his rent this summer, and that he's leaving two months early (despite his two, international, trips setup...) I still have rents coming in. I have two companies which provide me with income, in terms of about seven clients/customers/renters. Both the Albuquerque software industry (most of my business is serving local customers) and the Albuquerque university rental market would have to collapse, simultaneously, for me to be majorly screwed. If anything, I'm pretty tied to Albuquerque and should try and diversify geographically more! I love Albuquerque though...
I do not have a family to provide for. I'm working on changing that, with trying to be as good of a boyfriend as I can be, with the goal of getting married someday. I am not saying that you should throw away all sense of security for your family (if you have one) and become a hustler overnight. "Look kids, we get to have the BLUE Ramen noodles for dinner tonight! Insurance? Who needs it?!? Jesus is my insurance!" No, that's not what I'm talking about... My local, subcontractor, friend (that I am just starting to work together with) took the plunge about three months ago and went into business for himself. He has a wife and two kids. He prepared extremely well, and setup enough contracts to be making about 1.7x his salary for the first three months from basically day one. This is his first slow two week period, so we are working together. My local community has all sorts of people that are interested in promoting entrepreneurial activities, helping you get started, and providing free advice. I am extremely grateful for my earliest mentors in being a landlord, and the Albuquerque entrepreneurial ecosystem mentors now for the support.
To conclude, don't seek a career where someone else will provide for your safety. You're the only person that can do that. Otherwise, you'll still have these risks in your life (outsourcing, economic/business downturns, technological change and obsolesce) but you won't be as aware of them, and able to mitigate the risks. Try to diversify while you're doing it, since it will be safer and you won't be tied to a single person or organization.
I hope that this helps provide my viewpoint as an answer to your question, even if I think you might be asking the wrong question.