Maxim Mironjuk | Page 324
Posts by Maxim Mironjuk
-
Feb 23, 2025
Without additional protective measures, GraphQL APIs are vulnerable to overloaded queries, introspection attacks, batching DoS, and data leaks through resolvers that are too permissive. This security review shows concrete attack scenarios and the matching countermeasures.
-
Feb 22, 2025
With debug_backtrace(), a PHP script can inspect its own call stack at runtime and find out who called a function from where. This form of metaprogramming is the foundation of custom deprecation warnings, automatic loggers with file and line info, and simple access controls for internal APIs.
-
Feb 22, 2025
Postman, Insomnia, and curl become optional the moment PhpStorm has a full-featured HTTP client built in. GraphQL queries, REST endpoints, bearer-token authentication, and environment variables for different stages, all right inside the IDE, versioned in the repository, with no tool switching required.
-
Feb 22, 2025
A version number that just keeps climbing without a recognizable pattern is worthless to other developers, because nobody knows anymore whether an update can be applied safely. SemVer turns a number into a promise: MAJOR, MINOR and PATCH tell consumers of a Magento module precisely what changed, before they even glance at the code.
-
Feb 22, 2025
The MutationObserver is the modern, efficient alternative to DOMSubtreeModified and polling-based approaches to watching the DOM. It reacts asynchronously to attribute, child-node and text changes in the DOM, without the rendering-thread blocking that the old mutation events caused.
-
Feb 22, 2025
Classic alerting rules fire once a threshold is exceeded, but many real problems announce themselves as a quiet shift in the error pattern, long before any limit is breached. Claude reads large log volumes with contextual understanding and recognizes anomalies that stay invisible on a rule basis, such as a new error combination or a suspicious clustering at atypical times. This article shows the practical workflow from raw log file to an enriched alert message.
-
Feb 21, 2025
An API endpoint without rate-limiting is an open invitation for abuse, whether from misbehaving clients, aggressive scrapers or targeted attacks. Redis provides INCR, EXPIRE and Lua scripts as the building blocks for fixed window, sliding window and token bucket limiters that stay correct and atomic even under heavy load.
-
Feb 21, 2025
Partitioning promises faster deletes and better maintainability for very large tables, but it is not a universal performance tool. RANGE, LIST and HASH partitioning solve different problems and bring their own restrictions around foreign keys, unique keys and query planning that need to be understood before adoption.
-
Feb 21, 2025
Anyone who sees free -h for the first time often mistakes their system for being short on memory, because buff/cache appears as used. This article explains how the page cache puts idle RAM to work for performance, why swap is an overflow mechanism rather than primary memory, and how to read proc meminfo for an accurate picture of the real memory state.
-
Feb 21, 2025
After a deployment, the full page cache is empty. The first real visitors experience load times that have nothing to do with actual shop performance. An automated warmup job in GitLab CI fills the cache with the most important pages before the first human ever opens the homepage.