A balancing act between immunity and longevity