Bacterial cells are equipped with a variety of immune strategies to fight bacteriophage infections. Such strategies include unspecific mechanisms directed against any phage infecting the cell, ranging from the identification and cleavage of the viral DNA by restriction nucleases (restriction-modification systems) to the suicidal death of infected host cells (abortive infection, Abi). In addition, CRISPR-Cas systems generate an immune memory that targets specific phages in case of reinfection. However, the timing and coordination of different antiviral systems in bacterial cells are poorly understood. Here, we use simple mathematical models of immune responses in individual bacterial cells to propose that the intracellular dynamics of phage infections are key to addressing these questions. Our models suggest that the rates of viral DNA replication and cleavage inside host cells define functional categories of phages that differ in their susceptibility to bacterial anti-phage mechanisms, which could give raise to alternative phage strategies to escape bacterial immunity. From this viewpoint, the combined action of diverse bacterial defenses would be necessary to reduce the chances of phage immune evasion. The decision of individual infected cells to undergo suicidal cell death or to incorporate new phage sequences into their immune memory would be determined by dynamic interactions between the host’s immune mechanisms and the phage DNA. Our work highlights the importance of within-cell dynamics to understand bacterial immunity, and formulates hypotheses that may inspire future research in this area.