During the 2007-2009 recession, I worked for a software development company that provided custom software development services to local and state governments. My understanding was that their sales rose during the recession because replacing government agency staff with our software was a cost saving measure.