While corrosion will always remain a threat, there are many barriers that can be deployed to protect a system against the environment corrosion severity.
The first barrier is awareness and the tool to create awareness is through education and training
The second barrier is to do it right in the first place. Metals are naturally more stable in their nonmetal states such as oxides and sulfides. Given a chance they will revert back spontaneously to the comfortable states. Designers often forget this basic law of nature.
The third barrier is through management. Corrosion can be managed if the right decisions are based from the start on the full life cycle of a system. Buying systems and components without considerations for subsequent maintenance is flawed and can be very expensive.