Chips don't suddenly get obsoleted though, they get put in "not recommended for new designs" for at least a year or two beforehand, and when the chip maker plans to phase the chip out they typically give a "last time buy" notice at least a month or two before it gets discontinued.