UpdateHandler
Magento\Catalog\Model\Product\Gallery\UpdateHandler
What it does
This class handles updating product gallery images when a product is saved in Magento 2.
It manages the lifecycle of product images including removing deleted images from the database and filesystem, creating new gallery entries, and cleaning up image cache.
Developers interact with this class indirectly when saving products with modified media galleries through the catalog product save process.