A nice thick layer of anodising, then paint, with corrosion inhibitor on top (LPS3). Then keep it away from things that will damage the coatings (chains!) and electrolytes (sweat and road salt) and cow and sheep shit.Is there anything that can be done to prevent or slow it down?
In reality keeping it washed & lubed is about all you can do.