Русский flag Русский

All Posts

Network Troubleshooting for Beginners: Check Under Your Feet

2025-09-13

Introduction

In the previous article, we learned how to reach out to remote servers using ping and trace the path of packets with traceroute. But what if ping google.com doesn’t work, and traceroute stops right at the first step?

That’s a clear sign that the problem is nearby: on your computer, in the network cable, or in your home router. Before calling tech support, let’s check our own local network.

104 | Real-Time Revolution: Diving into the World of WebSockets and Long Polling

2025-09-12

Introduction

Modern users expect web applications to work as fast and responsive as native software. Chats, stock quotes, collaborative document editing — all these scenarios require instant data exchange. In this article, we’ll break down how Long Polling works, why it was replaced by WebSockets, and how to properly configure these technologies on popular web servers.


The Real-Time Problem and the First Solution: Long Polling

HTTP was originally designed for the request-response model: the client contacts the server, the server replies, and the connection closes. For dynamic applications, this is inconvenient.

102 | Caddy vs. Traefik vs. HAProxy vs. Nginx vs. Apache: Comparing Web Servers and Proxies

2025-09-06

Introduction

Choosing a web server and reverse proxy today depends on tasks and infrastructure. Caddy, Traefik, HAProxy, Nginx, and Apache are five popular solutions, each with its strengths and weaknesses.

In this article, we’ll compare them by key criteria: philosophy, installation, SSL, CI/CD, and complexity.


Comparison by Key Criteria

CriterionCaddyTraefikHAProxyNginxApache
PhilosophySimplicity, automatic SSLDynamic routing and Service DiscoveryHigh-performance load balancerUniversal web server and proxyClassic web server, static approach
InstallationSingle binaryContainer, requires setupSingle binary, manual configurationOS package, easy installationOS package, easy installation
SSL AutomationBuilt-in, main advantageBuilt-in, part of ecosystemNo (requires external integration, e.g., certbot)Partial (via certbot or modules)Partial (via certbot or modules)
CI/CDVery easy integrationIdeal for microservicesUsed for high-load balancingRequires manual steps, integration possibleRequires manual steps, integration possible
ComplexityLow, beginner-friendlyMedium/high, requires orchestrator knowledgeMedium, more complex configsMedium, rich ecosystemMedium, often bloated configs
PerformanceGood, but not top-tierGoodExcellent, optimized for load balancingExcellentAverage
Best Use CaseLocal development, quick MVPsDocker/Kubernetes, microservicesHigh-load systems, load balancingUniversal choice for web and proxyStatic site hosting, legacy systems

Who Is It For?

🔹 Caddy

Ideal for:

101 | Traefik: A Dynamic Router for the Container Era

2025-09-05

Introduction

Unlike Caddy, which focuses on simplicity, Traefik (pronounced Traffic) was built to solve one specific task: routing traffic in dynamic environments.

It is a reverse proxy and load balancer designed specifically for Docker, Kubernetes, and other orchestrators. The main difference from Nginx is not static configuration, but the ability to automatically discover and serve services.


Key Concepts: Dynamic Configuration

The philosophy of Traefik is built on the principle of Service Discovery.

Logrotate and Docker: Why and How?

2025-09-05


Introduction

Logrotate is a powerful tool for log management in Linux, but its interaction with Docker has its own specifics. This guide explains how to properly use logrotate with Docker containers and when it’s better to rely on Docker’s built-in log management tools.


Docker Containers and Logs

Docker collects logs from the standard output streams (stdout and stderr) of containers and, by default, stores them as JSON files:


/var/lib/docker/containers/\<container\_id>/\<container\_id>-json.log

If a container generates a lot of logs, these files can take up gigabytes and quickly consume all available disk space.

100 | Caddy: A Web Server That Just Works and SSL Out of the Box

2025-09-04

Introduction

In a world where setting up a web server often requires studying complex configuration files, Caddy offers a radically different approach. It is a modern, multifunctional web server, reverse proxy, and certificate authority in one package.

Caddy was created with a single goal: to provide maximum simplicity. If you are tired of the redundancy of Nginx or Apache, then Caddy is what you’re looking for. Its main “killer feature” is fully automatic SSL certificate management, making it an indispensable tool for developers.

MTU Issue on reg.ru and Its Solution via iptables

2025-08-05


Introduction: A Hidden Network Issue

Developers and system administrators using servers on the OpenStack platform (for example, the C*-M*-D* hosting plans from reg.ru) sometimes encounter mysterious network problems. The internet seems to work, but when trying to transfer large amounts of data or establish connections to certain services, requests may hang or fail due to timeouts.

The provider explains this issue as a feature of their infrastructure:

Servers on the OpenStack platform use VxLAN technology, which reserves 50 bytes for service information. Because of this, the maximum transmission unit (MTU) on the server’s main network interface (ens3) is 1450 bytes.

059 | Loki + Grafana: A Lightweight and Cost-Effective Logging Solution for the Cloud

2025-07-21

Loki + Grafana: A Lightweight and Cost-Effective Logging Solution for the Cloud

We’re wrapping up our series on centralized logging with a modern and innovative solution: Loki together with Grafana. Developed by Grafana Labs, this stack reimagines how logging works — making it simple, efficient, and especially appealing for those already using Prometheus.


What Is Loki and How Does It Work?

Loki is a log aggregation system designed to minimize resource usage. It indexes only metadata (labels), while the log messages themselves are stored in compressed form — following the same philosophy as Prometheus, but for logs.

058 | Graylog: A Flexible and User-Friendly Log Management Solution

2025-07-20

Graylog: A Flexible and User-Friendly Log Management Solution

We’ve already covered ELK Stack and OpenSearch — powerful logging tools with scalable architectures. Now let’s take a look at Graylog — a dedicated log management platform offering convenience, powerful processing, and flexible alerting.


What Is Graylog and How Does It Work?

Graylog is a centralized log management system designed for ease of use and rich capabilities. Unlike the ELK Stack, Graylog was built from the ground up as a unified platform.

057 | OpenSearch (Formerly Open-Source ELK): A Community-Driven Alternative

2025-07-19

We’ve explored the ELK Stack, its power — and, unfortunately, its licensing changes. These changes sparked debate within the open-source community and led to the creation of a worthy alternative — OpenSearch.

OpenSearch is a fully open-source fork of the last open versions of Elasticsearch and Kibana, released under the Apache 2.0 license. The project was initiated by Amazon Web Services (AWS) in 2021 and has since evolved as an independent open-source initiative under the OpenSearch Project.