Today, live attenuated vaccines and dead inactivated vaccines compete,
whether they are viral or bacterial.
A live vaccine is cheaper and results in a more durable immunity, but is riskier;
a dead vaccine is safer but requires multiple doses or boosters.
See also in The book of science:
Readings on wikipedia: