Understanding HTTP Long Connections in Nginx

Understanding HTTP Long Connections in Nginx

In Nginx, the HTTP module uses configurations related to HTTP long connections (mainly the keepalive directive) and explains the principles of HTTP long connections. 1. HTTP Long Connections 1.1 Prerequisites Connection management is a key topic in HTTP: opening and maintaining connections greatly affects the performance of websites and web applications. In HTTP/1.x, there are … Read more

Why Does HTTPS Return Large Data While HTTP Returns Line by Line?

Why Does HTTPS Return Large Data While HTTP Returns Line by Line?

Background: Recently, while debugging a ChatGPT dialogue website, I encountered issues with large data responses, leading me to use stream reading. The initial HTTP calls worked without any problems, but when switching to HTTPS in production, I kept facing errors. After struggling with this issue for two days, I finally resolved it with the help … Read more

Automate Operations with Python and Ansible!

Automate Operations with Python and Ansible!

Why do operations engineers at large companies always seem so relaxed? They don’t have to manually deploy applications or manage servers every day, and they can even enjoy coffee leisurely in a café while the system continues to run stably. The secret lies in automated operations. Today, we will discuss how to use Python and … Read more

Key Factors Affecting HTTP Performance

Key Factors Affecting HTTP Performance

The discussion of HTTP performance here is based on the simplest model, which is the HTTP performance of a single server. Of course, this also applies to large-scale load-balanced clusters, as such clusters are composed of multiple individual HTTP servers. Additionally, we exclude scenarios where the client or server itself is under heavy load or … Read more

Dr. An’s Lecture | Tencent Arm Cloud Instance Performance Evaluation – Web Applications

Dr. An's Lecture | Tencent Arm Cloud Instance Performance Evaluation - Web Applications

Dr. An is here! We are pleased to introduce “Dr. An”, who is backed by a top-notch technical expert team from Ampere Computing, dedicated to sharing cutting-edge technical analyses, application insights, and trend observations in the cloud-native field with you. Let’s welcome “Dr. An” to shine on stage and bring the first exciting sharing! 【Follow】 … Read more

No Public IP Needed! Access Local Sites Anytime with Raspberry Pi and Nginx

No Public IP Needed! Access Local Sites Anytime with Raspberry Pi and Nginx

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the 1000-member technical exchange QQ group Note: [Public Account] for faster access 1. Installing Nginx Installing Nginx on the Raspberry Pi is also quite simple. You can install it directly using the apt command. First, update the repository. sudo apt update Install … Read more

9 Tips to Optimize Linux Server Efficiency

9 Tips to Optimize Linux Server Efficiency

Linux servers in a normal operating environment require precision, stability, efficiency, and security, and there are many tips for optimization. This article shares nine experiences for optimizing Linux servers, covering email servers, web servers, network configuration, memory management, and more. 1 Time Synchronization Servers in a normal operating environment require precise time. My email server’s … Read more

Dockerfile Guide: Easily Create Your Own Docker Image!

Linux | Red Hat Certified | IT Technology | Operations Engineer 👇 Join the technical exchange QQ group with 1000 members, remark 【Official Account】 for faster approval 1. Basic Structure and Common Instructions of Dockerfile FROM – Specify Base Image FROM ubuntu:20.04 This instruction sets Ubuntu 20.04 as the base image. RUN – Execute Command … Read more