Bacterial And Viral Adaptation In Ecologically Complex Systems