Page 329 - Maxim Mironjuk
-
Maxim Mironjuk
-
February 09, 2025
For a simple autocomplete on brand or category names, a full-fledged completion suggester with its own suggest index and dedicated mapping is often overkill. The terms enum API offers a considerably lighter alternative: it reads the unique values already present in a field's term index directly and returns prefix matches, without running a complete search request with scoring, relevance calculation, or document retrieval. That makes it well suited for fast suggestion lists on low-cardinality keyword fields such as brand or category names. How the terms enum API works technically, how it differs from the completion suggester, and how a practical brand autocomplete can be built on top of it is what this article covers.
-
Maxim Mironjuk
-
February 08, 2025
Named volumes are the standard way to keep persistent data out of containers, yet without a solid backup strategy they remain a blind spot in operations. Snapshot containers, tar archives and deduplicating tools like restic protect volumes consistently, efficiently and traceably, with retention policies and regular restore tests instead of unverified trust.
-
Maxim Mironjuk
-
February 08, 2025
An entrypoint script with arrays and process substitution runs fine locally and fails inside an Alpine container with exec format error. The reason is BusyBox ash, which serves as /bin/sh in the default Alpine image instead of Bash and offers only a fraction of the familiar feature set.
-
Maxim Mironjuk
-
February 08, 2025
PHP-FPM processes every request in its own synchronous worker process, which only becomes available for the next request once the current one has fully completed. Blocking Redis commands such as BLPOP, BRPOP, or XREAD BLOCK actively wait for an event before returning, which fundamentally clashes with this model: a single such call inside a Magento controller or plugin can tie up an entire PHP-FPM worker for seconds or even minutes, while other visitors wait for a free worker. This article shows why these commands are problematic in web processes, where they tend to end up by accident in practice, and which alternatives for event-driven flows actually work within a synchronous PHP architecture.
-
Maxim Mironjuk
-
February 08, 2025
In project discussions, E2E tests and penetration tests occasionally get treated as though a sufficiently comprehensive E2E test suite could eventually make a dedicated penetration test unnecessary, which rests on a basic misunderstanding of each test type's actual intent: an E2E test checks whether an application works as expected along known, previously defined user paths, while a penetration test deliberately tries to abuse the application through paths no development team considered while writing the test cases. This fundamentally different direction of thinking makes both test types valuable, complementary building blocks of a quality assurance strategy, but neither can structurally replace the other.
-
Maxim Mironjuk
-
February 08, 2025
Some tests fail not because the tested code is broken, but because they depend on factors outside the test's control: network latency, timing windows, or external services with occasional hiccups. Retry plugins automatically rerun a failed test before marking it definitively red, and can stabilize an unstable CI pipeline in the short term. But treating retry as a permanent fix instead of a time-boxed stopgap only pushes real problems into a comfortable gray zone.
-
Maxim Mironjuk
-
February 07, 2025
A typography scale system defines every font size in a project through a fixed mathematical ratio instead of arbitrarily chosen pixel values. Combined with CSS Custom Properties and clamp(), this becomes a single system of semantic tokens that computes responsive sizes automatically and stays consistent across the entire design system.
-
Maxim Mironjuk
-
February 07, 2025
A tooltip that only appears on mouse movement stays invisible to keyboard users and screen readers. Accessible tooltips with Tailwind CSS connect supplementary information via aria-describedby, respond to hover and focus alike, and close reliably with Escape.
-
Maxim Mironjuk
-
February 07, 2025
The Origin Private File System is an isolated, high performance file store per origin that reaches direct file system speed through synchronous read and write handles inside web workers. It powers Wasm databases, image editors and offline tools that clearly outperform classic IndexedDB based solutions in throughput and latency.
-
Maxim Mironjuk
-
February 07, 2025
composite, references, and tsc --build replace a full recompile with incremental, parallelizable per-package builds.
-