Running Magento 2 in production with Docker Compose requires more than just copying the development setup. Secrets management, health checks, zero-downtime deployment, and log aggregation are the gaps between “works on my machine” and “runs reliably in production”. I show a complete production-grade docker-compose configuration with all these pieces in place.

(more…)

A Bloom Filter is a probabilistic data structure that answers “is this element in the set?” with two possible answers: “definitely not” or “probably yes”. False positives are possible, false negatives are not. This makes it perfect for negative caching, token blacklists, and spam detection – cases where you need to quickly eliminate non-members before doing an expensive lookup.

(more…)

PHP 8.4 final RC is here with three features that did not get enough attention in the preview posts. Lazy Objects let the DI container defer expensive object construction until first use – without manually writing Proxy classes. BcMath\Number finally gives PHP a clean API for arbitrary precision arithmetic. Dom\HTMLDocument brings proper HTML5 parsing to PHP’s DOM extension. I show all three in code.

(more…)

OpenTelemetry is the emerging standard for distributed tracing, metrics, and logs. Where Blackfire shows you what is slow within a single PHP process, OpenTelemetry shows you what happens across multiple services – from the Magento web server through Redis, MySQL, and external APIs, to the queue consumer. I show auto-instrumentation setup, Jaeger in DDEV for viewing traces, and adding custom spans to your own code.

(more…)

TOP