Linkage between microbial shift and ecosystem functionality