This question was closed fairly quickly as opinion based by users much higher rated than I, but I don't see where the opinion part is. Would anyone who downvoted care to explain?
It's probably off-topic for TWP, but I'm sure that this question has a very concrete economics answer based on past recessions (of which there have been at least 2 pops and a bubbles that I know of since software became more mainstream).
I imagine that a solid answer would look like:
Study X shows that in recessions, A,B,C industries are hit harder than D,E,F industries. Additionally, the SO annual survey shows that employment rates for software engineers with G,H,I skillsets have shown increased amounts of unemployment during the J, K periods, but higher salaries during the L,M periods.
Note: I have edited the question in hopes of reopening, so here is the original text.
Is there any general consensus on the more in demand fields of software engineering to pick up during a recession? I can see small business websites getting hit badly, so web dev is out. But is embedded facing the same headwinds?