You kind of hit the nail on the head. If you don’t want to constantly be on the treadmill, don’t focus on the front end. The further down the stack you go, the slower technology moves and the easier it is to stay relevant. Besides, just from looking around, front end pays less and it’s easy for most companies to find cheap “good enough” front end developers. As far as being “lucky”, it’s not luck. If I see my employe…
Now, there are some levels that haven't changed as much in the past decade. The kernels of today's most widely used operating systems are still written in C, and x86-64 still remains the dominant instruction set despite an increased challenge by ARM64 and the possibility of RISC-V. Someone writing kernel-level code in 2010 would feel at home today in 2020, notwithstanding the natural kernel code changes that have always happened. However, the job markets for kernel developers, compiler developers, and those writing low-level system software are much smaller than the job market for backend programmers overall, and it's possible that a laid-off low-level systems software engineer would have to get up to speed in all of the advances that happened in higher levels of the stack in order to more easily find another job.