When mains electricity supply is within specification, an electrical generator with a mass functions as motor to store kinetic energy in an electro-mechanical flywheel.
Optical networks use light to transmit information, though the increase in use of such a practice is set to put a strain on the world's electricity supply.
When mains electricity supply fails, stored energy in the flywheel is released to drive the electrical generator, which continues to supply power without interruption.