Itinerant spin dynamics in iron-based superconductors and cerium-based heavy-fermion antiferromagnets