In light of the overlapping characteristics between TEX and TRM by CD8 T cells in the setting of persistent viral infections in nonlymphoid tissues, this review will focus on TRM and TEX during persistent infections and discuss how CD4 T cell-derived IL-21 helps CD8 T cells belonging to these subsets maximize functionality and minimize collateral tissue damage. This evidence concerns the gene CD8A and viral infectious disease.