Evolution of microbial markets