I don't think you're going to be seeing the U.S. employing large army divisions to deal with small terrorist groups again. I don't think they're going to be occupying foreign nations in order to dry up terrorist groups within them. I think that lesson has been learned.
Democracy, it appears, is a bit chancy. But its chances also depend on what we do ourselves.