CyanLite3
Here's an actual quote from the article:
"...unless you are operating at the size of Reddit, you will not need 'stateless sessions'." So for the rest of 99% of the technology world, you don't need stateless session because TFA says so.
1) Company knows they are going to eliminate a team within XX months. I'd take a huge counter (3x salary) to stay on to help shutdown a project or sell the company. 2-3x salary in these cases are fairly normal when a company gets sold and they just need help transitioning to the new parent company.
2) Company offers a severance package along with it. E.g., we'll give you a salary bump and a 12-month severance if we let you go without cause, within one year.
However, I've been on both sides, and I've offered a counteroffer to anyone who is leaving and I wanted to keep. Any company who doesn't do that probably doesn't have good developers who are constantly getting recruited on LinkedIn.