This is awfully reductive of "government." State unemployment offices are shit because no one cares. There are plenty of military and IC data processing web applications that scale just as big and just as reliably as Facebook and Google. It's a matter of priorities. There is nothing inherent about public funding that dooms you to a poor implementation.