What is the difference between a relay and opto-isolator? Answered
I've looked around a bit and I don't really understand how opto-isolators and relays differ in terms of application (I understand that one uses magnets and one uses light). Can somebody shed some light on the differences, if any?
(P.S Bonus imaginary internet points for creative analogies)