What is the difference between an ignition switch and an ignition barrel?

The ignition barrel is the mechanical lock cylinder that you insert the key into. The ignition switch (starter switch) is the electrical component attached to the back of the barrel that makes and breaks the electrical circuits when you turn the key. They are separate components - the barrel can wear mechanically while the switch contacts are still good, or the switch contacts can fail while the barrel operates correctly. Both can be replaced independently on most vehicles.