Nitrogen cycle microbial resilience