Maxim Mironjuk
-
October 22, 2025
Once a Magento shop scales across several application servers with cron jobs running on each of them, the same indexer can in theory be triggered by two processes at once. Magento's built-in, database-based locking prevents that reliably within a single MySQL instance, but hits practical limits once coordination is needed across several independent cron workers with their own process management, such as containerized deployments with multiple equivalent worker pods. Redis offers itself as a fast, already-present infrastructure component for implementing distributed locks following the Redlock algorithm's principle, reliably avoiding indexer collisions.