Command pattern – command queue, undo/redo, Magento 2 MessageQueue
The Command pattern encapsulates a request as an object, allowing operations to be parameterised, queued, logged and undone. In Magento 2 this pattern is the foundation of the MessageQueue system – each message is a Command executed asynchronously by a consumer. I show the implementation from the classic version through to integration with the Magento queue.
- Published in Wzorce projektowe
Red flags in a Magento agency offer: what to watch out for before signing
Choosing an agency for a Magento implementation is a decision that affects several years of business. A bad choice is not just overpaying – it is a project that does not reach completion, a store that does not work as it should, and running from agency to agency to fix a predecessor’s mistakes. Below are signals to watch out for before signing a contract.
- Published in E-commerce
Magento 2 custom module not loading after deployment – DI compilation error
A new module version deployed to production caused a 500 error across the whole shop. DI compilation ended with an error about a missing interface. The problem was a constructor signature change without updating di.xml. Fix time: 1 hour.
- Published in Magento / Adobe Commerce
Magento 2 cart loss – Redis session and eviction policy
Customers were losing their cart contents and getting logged out randomly during shopping. The problem intensified on weekends with high traffic. Fix time: 2 hours.
- Published in Magento / Adobe Commerce
