Comprehensive Guide to Nginx Web Service Architecture

HTTP Protocol Request and Response Process Perform a simple HTTP request to observe the process: curl -v www.baidu.com HTTP Request Message Request Line Request Method: GET (read/retrieve) or POST (write/submit) Request Resource: e.g., index.html, oldboy.jpg Protocol Version: HTTP/1.0 (short-lived TCP connections), HTTP/1.1 (persistent TCP ...

Posted on Fri, 24 Jul 2026 16:54:56 +0000 by rakuci

Applying Weighted Round Robin Algorithm to Solve Rate Limiting Challenges in Data Processing

Problem Scenario Consider the following scenario: There's a batch of data that needs to query a downstream system through a unified interface. Since this data belongs to different platforms, the query request specifies which platform each data item belongs to (Platform A, Platform B, etc.). In this scenario, the final query results are returned ...

Posted on Wed, 22 Jul 2026 16:59:03 +0000 by Full-Demon

Nginx Configuration and Management Guide

Nginx Basics 1. Common Commands nginx -v # Show version ps -ef | grep nginx # List nginx processes nginx # Start nginx nginx -s reload # Reload configuration nginx -s stop # Stop nginx nginx -t # Test configuration f ...

Posted on Wed, 22 Jul 2026 16:27:50 +0000 by slayer22

Using MySQL Proxy for Read-Write Splitting

MySQL Proxy is an official middleware solution from MySQL that provides load balancing, read-write splitting, and failover capabilities. It acts as a connection pool between the application and the data base servers, forwarding frontend requests to the appropriate backend databases. By using Lua scripts, it can implement complex connection cont ...

Posted on Wed, 22 Jul 2026 16:03:06 +0000 by Nixon

Eureka Service Registration and Discovery

Currrent Project Architecture Issues Introducing Eureka In a typical project, the member center is often deployed as a cluster to handle high concurrency and large loads. For instance, if the member center runs on a single host that can only handle 10,000 requests, many concurrent requests would overwhelm it. By using a cluster (multiple serve ...

Posted on Tue, 21 Jul 2026 16:04:28 +0000 by whitepony6767

LVS Load Balancing: NAT and DR Mode Implementation

Introduction to LVS LVS (Linux Virtual Server) is an open-source project initiated by Wensong Zhang, primarily designed to achieve load balancing at the Linux kernel level. It enables the creation of a high-availability, high-performance server cluster by distributing client requests among backend servers according to load balancing algorith ...

Posted on Mon, 20 Jul 2026 17:40:42 +0000 by soulroll

Dynamic Programming Solutions for Three Algorithmic Problems

Ehab and the Expected GCD Problem The key insight is that the first element should have the maximum number of prime factors, and subsequent elements should remove at most one prime factor per step for optimality. The smallest prime factors are 2 and 3, and using 3 more than once is suboptimal (e.g., 5 can be replaced by 2² for better results). ...

Posted on Fri, 17 Jul 2026 17:02:09 +0000 by RossC0

Introduction to Nginx – Summary of Learning

Introduction to Nginx Main Functions: Reverse Proxy, Load Balancing, Static/Dynamic Separation Installlation and startup of Nginx Common commands for Nginx, navigate to /usr/local/nginx/sbin ./nginx -- start Nginx ./nginx -s stop -- stop Nginx ./nginx -s quit -- graceful shut down Nginx ./nginx -s reload -- reload configuration, useful after ...

Posted on Mon, 06 Jul 2026 17:26:27 +0000 by thebluebus

Building a High Availability Cluster with HAProxy and Keepalived

Setting up a highly available load balancing cluster requires two primary components: HAProxy for traffic distribution and Keepalived for failover management. This setup uses two virtual machines running CentOS 7.Environment PreparationInstall the EPEL repository and required packages on both nodes:yum install -y epel-release yum install -y hap ...

Posted on Sat, 27 Jun 2026 16:14:40 +0000 by xenoalien

Deploying an EMQX Cluster with HAProxy Load Balancing

Prerequisites Dowlnoad the required installation packgaes and upload them to your servers. Prepare three CentOS 7 virtual machines or physical servers. Configuring the EMQX Cluster On each of the three nodes, navigate to the etc directory inside the extracted EMQX folder and edit emqx.conf: cluster.discovery = static cluster.static.seeds = em ...

Posted on Fri, 26 Jun 2026 16:45:21 +0000 by Fly