Tagged articles
46 articles
Page 1 of 1
MaGe Linux Operations
MaGe Linux Operations
May 16, 2026 · Operations

How to Cut Nginx Response Time from 500 ms to 50 ms: A Practical Optimization Guide

By establishing baselines, methodically profiling logs, and applying layered tweaks—such as keepalive connections, gzip compression, proxy caching, worker tuning, HTTP/2, kernel parameters, and backend caching—this guide demonstrates how to reduce Nginx’s total response time from 500 ms to under 50 ms with measurable results.

GzipHTTP/2Keepalive
0 likes · 25 min read
How to Cut Nginx Response Time from 500 ms to 50 ms: A Practical Optimization Guide
Tech Musings
Tech Musings
Apr 13, 2026 · Operations

Does Upgrading Nginx → Upstream to HTTP/2 Really Boost Performance?

This article details a systematic performance test of Nginx 1.29.x’s new HTTP/2 upstream support, comparing HTTP/1.1, HTTP/2 with keep‑alive, and HTTP/1.0 baselines across various payload sizes, connection‑pool settings, and large‑header scenarios to determine when protocol upgrades yield real throughput or latency gains.

HTTP2KeepaliveNginx
0 likes · 22 min read
Does Upgrading Nginx → Upstream to HTTP/2 Really Boost Performance?
Architect's Guide
Architect's Guide
Mar 3, 2026 · Fundamentals

Mastering TCP & HTTP Keepalive: Preventing Half-Open Connections

This article explains the concepts, purposes, and mechanisms of TCP keepalive and HTTP keepalive, detailing kernel parameters, timing intervals, and how they prevent half‑open connections, along with practical commands, configuration tips for servers like Nginx and Gunicorn, and the interaction between the two layers.

HTTPKeepaliveServer
0 likes · 10 min read
Mastering TCP & HTTP Keepalive: Preventing Half-Open Connections
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 4, 2025 · Frontend Development

How React Compiler Ends Four Years of Manual Optimization

This article reviews recent React developments—including the React 19.2 release, new Activity and useEffectEvent APIs, the stable 1.0 release of babel‑plugin‑react‑compiler—and explains how automatic compiler‑based optimizations replace manual memo, useCallback, and useMemo patterns, while also covering KeepAlive challenges and code examples.

KeepaliveReactReact Compiler
0 likes · 9 min read
How React Compiler Ends Four Years of Manual Optimization
Lin is Dream
Lin is Dream
May 30, 2025 · Backend Development

What’s the Real Difference Between NGINX keepalive and HTTP keep‑alive?

Explain that “keepalive” is a concept used in both NGINX and HTTP protocol but with different meanings. In HTTP, keep‑alive (or persistent connection) is a header that allows a TCP connection to be reused for multiple requests, reducing latency. In NGINX, keepalive refers to the connection‑pool settings for upstream servers, controlling how many persistent connections are kept and their timeout.

HTTPKeepaliveperformance
0 likes · 8 min read
What’s the Real Difference Between NGINX keepalive and HTTP keep‑alive?
FunTester
FunTester
May 24, 2025 · Backend Development

How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive

This article presents advanced WebSocket testing techniques—including asynchronous connection creation, result statistics, price verification, latency measurement, TPS modeling—and demonstrates a Netty‑WebSocket subscription test for 10,000 users plus Java‑ and Netty‑based keepalive implementations for high‑concurrency scenarios.

JavaKeepaliveNetty
0 likes · 7 min read
How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive
Sohu Tech Products
Sohu Tech Products
Mar 12, 2025 · Mobile Development

Riverpod Annotations Explained: Code Generation and Advanced Usage in Flutter

Riverpod annotations streamline Flutter state management by using build_runner to generate provider code, where @riverpod on functions creates Provider, FutureProvider, or StreamProvider based on return type, on classes creates NotifierProvider, supports Family‑pattern parameters, keepAlive, dependencies, and produces helper classes for auto‑dispose and scoped overrides.

Code GenerationFamilyFlutter
0 likes · 13 min read
Riverpod Annotations Explained: Code Generation and Advanced Usage in Flutter
Open Source Linux
Open Source Linux
Dec 5, 2024 · Fundamentals

Mastering TCP State Machine: From LISTEN to TIME_WAIT Explained

This article provides a comprehensive guide to TCP connection states, common Linux commands for monitoring them, detailed explanations of each state transition, three‑way handshake, four‑way termination, flag meanings, keep‑alive mechanisms, and practical sysctl tuning to troubleshoot network issues.

KeepaliveSocketTCP
0 likes · 29 min read
Mastering TCP State Machine: From LISTEN to TIME_WAIT Explained
Liangxu Linux
Liangxu Linux
Dec 1, 2024 · Fundamentals

Mastering TCP: Understanding All Connection States and Their Transitions

This article provides a comprehensive guide to TCP connection states, Linux commands for monitoring them, the three‑way handshake, four‑way termination, flag meanings, common pitfalls like SYN floods, and practical keep‑alive and sysctl tuning techniques for reliable network troubleshooting.

KeepaliveLinuxNetworking
0 likes · 30 min read
Mastering TCP: Understanding All Connection States and Their Transitions
Open Source Linux
Open Source Linux
Oct 22, 2024 · Fundamentals

Mastering TCP: Understanding States, Handshakes, and Common Pitfalls

This article explains TCP connection states, the three-way handshake and four-way termination processes, provides essential Linux commands for monitoring connections, and offers practical tips for diagnosing network issues, handling SYN floods, TIME_WAIT problems, and implementing keepalive mechanisms to maintain reliable communication.

Connection StatesKeepaliveLinux
0 likes · 29 min read
Mastering TCP: Understanding States, Handshakes, and Common Pitfalls
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 10, 2024 · Backend Development

Master Spring Boot 3 Virtual Threads: Prevent Daemon Issues & Keep Apps Alive

This guide explains how Spring Boot 3.2+ leverages JDK 21 virtual threads, demonstrates common pitfalls in non‑web applications—especially daemon thread termination—and shows how to enable keep‑alive configuration to ensure your tasks keep running, complete with code examples and performance insights.

KeepaliveSpring BootVirtual Threads
0 likes · 9 min read
Master Spring Boot 3 Virtual Threads: Prevent Daemon Issues & Keep Apps Alive
Liangxu Linux
Liangxu Linux
Jan 16, 2024 · Operations

How to Prevent SSH Session Freezes: Keep Your Remote Connections Alive

Learn why SSH connections drop due to TCP timeout settings and follow step‑by‑step Linux, Windows (PuTTY), and server‑side configurations—including tcp_keepalive and ServerAlive options—to keep remote sessions active and avoid idle‑disconnects for developers.

KeepaliveLinuxPutty
0 likes · 8 min read
How to Prevent SSH Session Freezes: Keep Your Remote Connections Alive
JavaScript
JavaScript
Nov 28, 2023 · Frontend Development

How to Ensure HTTP Requests Complete When Users Leave a Page

This article explains why browsers cancel pending requests during navigation, the risks of lost data, and demonstrates reliable solutions using JavaScript—first by awaiting fetch, then leveraging the fetch keepalive option—to guarantee logs reach the server without delaying page loads.

HTTPJavaScriptKeepalive
0 likes · 3 min read
How to Ensure HTTP Requests Complete When Users Leave a Page
Java Architect Essentials
Java Architect Essentials
Sep 30, 2023 · Backend Development

Optimizing Apache HttpClient for High Concurrency: Pooling, Keep‑Alive, and Configuration

This article explains how to dramatically improve the performance of a high‑traffic Java service by reusing a singleton HttpClient, enabling connection pooling and keep‑alive, tuning timeout and retry settings, and adding an idle‑connection monitor to reduce average request latency from 250 ms to about 80 ms.

BackendConnectionPoolingHttpClient
0 likes · 13 min read
Optimizing Apache HttpClient for High Concurrency: Pooling, Keep‑Alive, and Configuration
Efficient Ops
Efficient Ops
Sep 20, 2023 · Backend Development

Master Nginx: Multi-Domain, Auth, Autoindex, and Reverse Proxy Tricks

This guide walks through practical Nginx configurations—including serving multiple domains, setting up basic authentication, enabling directory listings, defining default sites, blocking unwanted IP access, handling verification files, configuring upstream reverse proxies, enabling keepalive, and redirecting 404 errors—to help operators and developers optimize their web server setups.

Basic AuthKeepaliveVirtual Host
0 likes · 8 min read
Master Nginx: Multi-Domain, Auth, Autoindex, and Reverse Proxy Tricks
MaGe Linux Operations
MaGe Linux Operations
Aug 7, 2023 · Fundamentals

Short vs Long TCP Connections: When to Use Each and How to Keep Them Alive

TCP connections can be either short-lived, closing after a single request‑response cycle, or long-lived, staying open for multiple exchanges; this article explains their handshake processes, advantages, drawbacks, typical use cases, reasons long connections drop, and practical strategies such as keepalive and reconnection to maintain reliability.

HandshakeKeepaliveTCP
0 likes · 10 min read
Short vs Long TCP Connections: When to Use Each and How to Keep Them Alive
Liangxu Linux
Liangxu Linux
Jul 16, 2023 · Backend Development

Ensuring TCP Connections Stay Alive for 60 Seconds During Unstable Networks

This article explains how TCP/IP heartbeat and retransmission mechanisms work, shows how to configure Windows keep‑alive parameters, demonstrates using libwebsockets’ keep‑alive settings, and provides non‑blocking socket + select code to detect connection failures and enforce a 60‑second reconnection window for video conferencing applications.

KeepaliveNetwork programmingSocket
0 likes · 22 min read
Ensuring TCP Connections Stay Alive for 60 Seconds During Unstable Networks
MaGe Linux Operations
MaGe Linux Operations
Jul 1, 2023 · Fundamentals

Ensuring 60‑Second TCP Keep‑Alive During Unstable Networks

Facing frequent packet loss and network jitter that disrupts video conferences, this article examines TCP/IP stack heartbeat and retransmission mechanisms, demonstrates how to configure Windows keepalive parameters, and provides code examples for custom socket options and non‑blocking connect timeouts to maintain session continuity within 60 seconds.

KeepaliveTCPWindows
0 likes · 22 min read
Ensuring 60‑Second TCP Keep‑Alive During Unstable Networks
Liangxu Linux
Liangxu Linux
May 14, 2023 · Operations

How to Keep SSH Sessions Alive and Prevent Timeout

This tutorial explains why SSH connections close, shows how to configure both client and server settings—including creating the .ssh/config file, setting ServerAliveInterval, ServerAliveCountMax, and adjusting /etc/ssh/sshd_config—to keep sessions alive until you intentionally close the terminal.

ClientAliveIntervalKeepaliveLinux
0 likes · 7 min read
How to Keep SSH Sessions Alive and Prevent Timeout
Architect's Guide
Architect's Guide
Apr 13, 2023 · Fundamentals

Understanding TCP Keepalive and HTTP Keepalive Mechanisms

This article explains the concepts, purposes, and inner workings of TCP keepalive and HTTP keepalive, compares their roles in maintaining network connections, and provides practical guidance on configuring related parameters and handling socket lifecycles in server environments.

HTTPKeepaliveNetworking
0 likes · 8 min read
Understanding TCP Keepalive and HTTP Keepalive Mechanisms
政采云技术
政采云技术
Sep 13, 2022 · Fundamentals

Understanding TCP Keepalive Mechanism and Its Parameters

This article explains the TCP keepalive mechanism, its purpose, default parameters, how to configure and verify it on Linux, its drawbacks, and the distinction between TCP keepalive and HTTP Keep-Alive, providing practical code examples and network analysis steps.

KeepaliveLinuxNetworking
0 likes · 11 min read
Understanding TCP Keepalive Mechanism and Its Parameters
Open Source Linux
Open Source Linux
Aug 17, 2022 · Operations

Mastering TCP States: Diagnose Network Issues with Linux Tools

This guide explains TCP connection states, essential Linux commands, three‑way handshake, four‑way termination, simultaneous open/close, flag meanings, common error codes, and keep‑alive techniques to help you troubleshoot and secure network services effectively.

KeepaliveLinuxSocket
0 likes · 31 min read
Mastering TCP States: Diagnose Network Issues with Linux Tools
IT Services Circle
IT Services Circle
Feb 13, 2022 · Fundamentals

Does a TCP Connection Persist After Unplugging the Network Cable?

Unplugging a network cable does not immediately terminate a TCP connection; the kernel’s socket state remains ESTABLISHED, and the connection’s fate depends on data transmission, retransmission limits, TCP keepalive settings, and whether either side detects a failure.

KeepaliveLinuxSocket
0 likes · 10 min read
Does a TCP Connection Persist After Unplugging the Network Cable?
JD Tech
JD Tech
Jun 7, 2021 · Operations

Configuring Nginx Reverse Proxy for Persistent (Keep‑Alive) Connections and Performance Optimization

This article explains how to configure Nginx as a reverse proxy to maintain long‑lived HTTP/1.1 keep‑alive connections between client and Nginx and between Nginx and upstream servers, covering required directives, upstream and location settings, performance implications for high QPS workloads, and advanced WebSocket handling.

ConfigurationHTTPKeepalive
0 likes · 9 min read
Configuring Nginx Reverse Proxy for Persistent (Keep‑Alive) Connections and Performance Optimization
Laravel Tech Community
Laravel Tech Community
Mar 28, 2021 · Backend Development

v0.0.7 Update: Adding Keepalive Timeout to TCP RPC Server

Version v0.0.7 introduces a configurable keepalive timeout for the TCP RPC server, automatically closing idle client connections after a set period, reducing resource usage and preventing memory leaks while allowing the client to transparently reconnect when needed.

KeepaliveRPCServer
0 likes · 3 min read
v0.0.7 Update: Adding Keepalive Timeout to TCP RPC Server
Open Source Linux
Open Source Linux
Jan 6, 2021 · Operations

Boost Nginx Performance: Essential Linux System Parameter Tweaks

This guide explains how to optimize Linux kernel parameters and Nginx settings—such as file descriptor limits, TCP queue lengths, temporary ports, worker processes, KeepAlive, and log buffering—to significantly improve server performance and handle high traffic loads.

KeepaliveLinuxNginx
0 likes · 8 min read
Boost Nginx Performance: Essential Linux System Parameter Tweaks
Efficient Ops
Efficient Ops
Jan 13, 2020 · Operations

How Nginx Keepalive Works: Experiments on HTTP and TCP Timeouts

This article experimentally explores Nginx's keepalive settings—HTTP keepalive_timeout, proxy_read_timeout, and TCP so_keepalive—showing how different browsers, upstream delays, and TCP probes affect connection lifetimes and what practical steps administrators can take to troubleshoot unexpected disconnects.

KeepaliveProxyTCP
0 likes · 15 min read
How Nginx Keepalive Works: Experiments on HTTP and TCP Timeouts
Efficient Ops
Efficient Ops
Dec 8, 2019 · Fundamentals

Mastering TCP: Understanding States, Handshakes, and Common Issues

This article explains TCP state definitions, Linux commands for monitoring connections, the three‑way handshake, four‑way termination, common pitfalls like SYN‑Flood attacks, and practical tips such as keepalive configuration to diagnose and resolve network or socket problems.

HandshakeKeepaliveLinux
0 likes · 30 min read
Mastering TCP: Understanding States, Handshakes, and Common Issues
Efficient Ops
Efficient Ops
May 26, 2019 · Operations

Master Nginx: Multi-Domain Sites, Auth, Autoindex, and Advanced Proxy Tricks

This guide walks through practical Nginx configurations—including serving multiple domains from one server block, per‑site root setups, basic authentication, directory listing tweaks, default site handling, IP blocking, custom verification files, upstream reverse proxy nuances, keepalive tuning, and automatic 404 redirection—providing ready‑to‑use code snippets for each scenario.

Basic AuthenticationKeepaliveVirtual Host
0 likes · 8 min read
Master Nginx: Multi-Domain Sites, Auth, Autoindex, and Advanced Proxy Tricks