This guide walks through installing Squid on Linux, configuring it as a transparent and reverse proxy, setting up internal and external hosts, adjusting routing and firewall rules, and applying common ACL parameters to control access and improve performance.
This article explains how to diagnose and fix common CORS problems when a front‑end site on port 8080 accesses a back‑end service on port 59200 by configuring Nginx as a proxy, detailing the required response headers, handling preflight requests, and providing complete example configurations.
This article reviews nine widely used design patterns—Singleton, Builder, Factory, Strategy, Template Method, Chain of Responsibility, Proxy, Adapter, and Observer—explaining their concepts, common implementations in open‑source projects such as Spring, Dubbo, MyBatis, and providing concrete code examples and visual diagrams to help readers understand and apply them when reading source code.
This article explains how WebSocket upgrades work over HTTP, shows the ws/wss URI formats, details the handshake process, and provides step‑by‑step Nginx configurations—including proxy settings and troubleshooting tips—to reliably run secure WebSocket connections behind a reverse proxy.
This article introduces a web‑integrated proxy tool that requires no installation or configuration, enabling developers to share URLs or QR codes for remote HTTP debugging, mock rule sharing, and seamless integration into web pages or mobile apps, while comparing it with traditional proxy solutions.
This guide explains why Go commands like go get fail to download golang.org/x packages, and provides step‑by‑step solutions using HTTP/HTTPS proxy settings, manual repository cloning, go.mod replace directives, and the GOPROXY environment variable to reliably fetch dependencies.
This article explains the relationship between JavaScript's Proxy and Reflect objects, demonstrates their basic syntax and practical code examples, compares their performance, and outlines various real‑world scenarios where combining them leads to cleaner, more maintainable frontend code.
This guide explains how to configure and run a Workerman‑based PHP forward proxy that forwards MySQL connections, enabling smooth access to internal databases via Navicat Premium or other clients, with detailed code snippets, startup commands, and Windows usage instructions.
This guide explains proxy server types, shows how to configure Linux curl for HTTP, HTTPS, and SOCKS4/4A/5 proxies with authentication options, provides concrete command examples, and demonstrates a method for testing the anonymity of each proxy type using a PHP script.
This article dissects MyBatis's source code, revealing how more than ten classic design patterns—such as Factory, Singleton, Builder, Adapter, Proxy, Composite, Decorator, Template, Strategy, and Iterator—are applied to decouple complex scenarios, improve extensibility, and streamline ORM operations.
This article explains the principles and implementation of a Java RPC framework, covering service registration with Zookeeper, serialization, compression, network communication via Netty, dynamic proxy generation using reflection and Javassist, and performance considerations, providing extensive code examples for each component.
This article presents a Kafka‑Proxy solution that enhances cluster availability, traffic governance, seamless cluster switching, near‑source production/consumption, non‑disruptive offset resetting, and message flow control through metadata sharing and a lightweight proxy layer.
This guide explains proxy classifications, shows how to configure HTTP, HTTPS, and SOCKS proxies with Linux curl—including authentication options—and provides step‑by‑step examples and test results to evaluate the anonymity level of each proxy type.
This article explains the CORS mechanism, the four essential response headers, how preflight requests work, and provides detailed Nginx proxy configurations with multiple real‑world scenarios to eliminate cross‑origin errors when a front‑end site accesses a back‑end service.
Learn how to conceal your IP using Linux curl by configuring various HTTP and SOCKS proxy types, understanding their anonymity levels, applying appropriate curl parameters—including authentication options—and testing proxy effectiveness with a PHP script that reveals server‑side IP and header information.
This guide explains how to make an internal IDC server reachable from the public Internet for both HTTP and HTTPS by deploying two public servers with Squid proxies and configuring stunnel on the client, including detailed command‑line steps for Linux and Ubuntu.
This guide explains proxy server types, how to configure HTTP and SOCKS proxies with Linux curl—including authentication options—and provides step‑by‑step examples and testing methods to evaluate proxy anonymity levels.
This guide shows how to set up a flexible Webpack devServer proxy that supports multiple test environments, allows switching configurations via npm scripts, and updates target and cookie values on the fly without restarting the server.
This tutorial explains how to install and start Whistle, configure browser proxy plugins, set up HTTPS certificates, capture mobile traffic, and leverage advanced features such as Weinre console, response/request tampering, CORS handling, JavaScript injection, and domain mapping to improve development efficiency.
This article explains why browsers block cross‑origin requests, details the four CORS response headers, demonstrates common error scenarios, and provides step‑by‑step Nginx configuration examples—including handling pre‑flight OPTIONS requests and header inheritance—to reliably solve CORS problems.
This article explains why browsers block cross‑origin requests, details the four CORS response headers, demonstrates common error scenarios, and provides a series of Nginx configuration examples—including handling preflight OPTIONS requests, custom headers, and method restrictions—to reliably solve CORS problems during development.
This article benchmarks Vue3's Proxy-based reactivity against the traditional Object.defineProperty approach across initialization, read, write, multiple object creation, and nested‑object scenarios, revealing where each technique excels and why Vue3 ultimately prefers Proxy despite nuanced performance trade‑offs.
The article shows how to fix CORS errors when a front‑end on http://localhost:8080 accesses a back‑end via Nginx by adding proper Access‑Control‑Allow‑* headers for normal and OPTIONS preflight requests, using an always flag correctly, and avoiding common misconfigurations that block cross‑origin calls.
Advanced interception techniques—such as overriding browser APIs, using ServiceWorkers, employing MutationObservers, creating Proxy‑based sandboxes, and configuring server‑side gateways—provide a flexible middle layer for error reporting, request monitoring, micro‑frontend isolation, and remote debugging, while demanding careful adherence to security policies.
This article walks through the complete lifecycle of a request handled by Envoy, covering terminology, network topology, configuration details, listener and filter chain processing, TLS transport sockets, HTTP/2 encoding/decoding, routing, load balancing, and post‑request cleanup, illustrated with diagrams and sample YAML configuration.
This article introduces several popular internal network penetration tools—including nps, frp, EW, and ngrok—explains their core principles, lists key features, and provides step‑by‑step installation and configuration commands for exposing services such as RDP, SSH, HTTP, and file sharing to the public internet.
This guide walks you through installing the Envoy proxy on Ubuntu, creating a YAML configuration with listeners, filters, clusters, and routes, running the service, and testing it with curl and a simple Python HTTP server to verify traffic forwarding.
This article explains how Spring's @Configuration annotation triggers CGLIB proxy generation to manage @Bean methods, ensuring that internal calls return the same singleton instance, and contrasts this behavior with using @Component for configuration classes.
This guide explains why and how to set up HTTP/HTTPS proxy settings for Kubernetes pods in enterprise environments, covering use cases, two configuration methods (ConfigMap and direct environment variables), parameter details, testing procedures, and best practices for reliable outbound traffic.
This article walks through setting up and debugging a CORS‑handling proxy in a React 18 project with create‑react‑app, using http‑proxy‑middleware to forward /api requests, configure logging, and verify the real request paths.
This article explains how to overcome browser Same-Origin Policy restrictions in PHP by using a proxy server with cURL for request forwarding or by setting appropriate Access-Control-Allow-Origin response headers, including code examples and security considerations.
This article explains Spring's control flow pointcuts, compares them with AspectJ cflow pointcuts, walks through a complete Java example with nested service classes, shows how to configure a ControlFlowPointcut and proxy, and discusses performance implications and usage scenarios.
This article explains the fundamentals of Vue's reactivity system, comparing Vue2's Object.defineProperty approach with Vue3's Proxy-based implementation, and walks through building a custom dependency-collection model with code examples, key-level tracking, and branch-aware cleanup to achieve precise reactive updates.
This article explains how a large‑scale recommendation system built with tRPC‑Go microservices was refactored into a single‑process monolith to cut network overhead, reduce CPU usage by over 60%, and retain the benefits of microservice development while minimizing code changes.
This article introduces core frontend design patterns—including Singleton, Proxy, Strategy, and Observer—explains their underlying principles such as Single Responsibility and Open/Closed, and provides practical code examples and visual illustrations to help developers apply them effectively.
A Chrome proxy plugin was built to intercept micro‑frontend requests and map online URLs to local development servers, eliminating the need to launch both parent and child apps, restoring hot‑module replacement speed, offering one‑click rule configuration, and achieving full coverage and faster development for DeWu’s team.
Cloudflare abandoned Nginx for its home‑grown Rust‑based proxy Pingora, detailing architectural limits of Nginx, design choices, multithreaded scheduling, connection‑reuse improvements, and how these changes deliver faster, more efficient, and safer traffic handling at massive scale.
This article explains core object‑oriented concepts such as encapsulation, abstraction, inheritance and polymorphism, then details common design principles and a wide range of design patterns—including factory, builder, bridge, singleton, strategy, adapter, and proxy—illustrated with complete Java code examples and usage guidelines.
This article explains how Cloudflare built Pingora, a Rust‑based HTTP proxy that outperforms NGINX in scalability, connection reuse, and security, detailing the architectural limits of NGINX, design decisions behind Pingora, and the measurable performance and efficiency gains achieved in production.
This guide explains why Docker image pulls are slow or throttled in China, then provides practical solutions such as configuring domestic registry mirrors, setting up self‑hosted mirrors or proxies (including Cloudflare Workers), adjusting Docker daemon proxy settings, and logging into various registries to bypass rate limits.
This article explains the concept of cross‑origin requests, the same‑origin policy that restricts them, and presents three practical frontend solutions—JSONP, a server‑side proxy using Nest.js, and Webpack dev‑server proxy configuration—along with code examples and security considerations.
This article explains how to securely expose a MySQL server behind an Nginx stream proxy, covering required modules, configuration directives, IP‑based access control, and complete example setups for both single‑instance and clustered environments.
The article examines how MyBatis applies a variety of creational, structural, and behavioral design patterns—such as Factory, Singleton, Builder, Adapter, Proxy, Composite, Decorator, Template, Strategy, and Iterator—to decouple its over‑twenty‑thousand‑line codebase, improve modularity, and handle complex ORM tasks efficiently.
This article explains how to configure Nginx as a stream proxy to securely connect to MySQL servers, covering required modules, stream, server, listen directives, IP access restrictions, and provides complete configuration examples for both single‑instance and clustered environments.
This guide walks through the two most typical Nginx HTTP‑to‑HTTPS redirection setups—direct client access and proxy‑mediated access—showing why the simple 301 rule works in the first case, why it fails with an upstream proxy, and how to correctly use request headers and Nginx variables to achieve reliable redirects.
This article explains how to configure Nginx's stream module to proxy MySQL connections, including building Nginx with the required module, setting up stream, server, and listen directives, and using allow/deny rules to restrict access by IP, followed by a complete configuration example.
This guide explains how to use Nginx’s stream module as a jump‑host to securely proxy MySQL connections, covering module compilation, core directives, configuration examples for single and clustered servers, and IP‑based access restrictions to protect database traffic.
This article describes how a development team addressed TAPD API latency, security, and availability issues by introducing a proxy layer, storing TAPD data locally via webhook notifications, and implementing a custom rate‑limiter to ensure stable, fast access for multiple business lines.
This article explains why retry mechanisms are essential for remote service calls, compares several implementation approaches—including manual loops, static and dynamic proxies, AOP, Spring Retry annotations, and Guava‑Retry—provides complete Java code examples, and discusses the advantages and drawbacks of each method.
This article walks through seven retry implementations for Java services—manual loops, static proxy, JDK dynamic proxy, CGLib proxy, custom AOP, Spring Retry annotations, and Guava‑retry—showing code examples, analyzing their pros and cons, and recommending the best fit for different project contexts.
Learn how to safely expose MySQL on a private network by configuring Nginx as a stream proxy, including building the required modules, setting up stream, server, and listen directives, and restricting access with allow/deny rules for specific IP ranges.
The ambassador pattern introduces an external sidecar proxy that offloads common client‑side networking concerns such as routing, resilience, logging, and security, enabling legacy or hard‑to‑modify applications to gain cloud‑native capabilities without changing their code.
An in‑depth case study explains how a single Proxy machine’s message‑queue backlog was traced to a stuck HTTP download thread caused by an HttpClient bug, detailing the step‑by‑step investigation, root‑cause analysis, and the final fix that eliminated the issue.
This article explains why retry mechanisms are essential for remote service calls in Java applications and demonstrates six practical implementations—from simple while‑loop retries to static proxies, JDK and CGLib dynamic proxies, custom AOP, Spring Retry annotations, and the Guava‑retry library—complete with code examples and usage tips.
This article explains how Nginx can be used to achieve various load‑balancing strategies—including round‑robin, least‑connections, IP hash, generic hash, least‑time, and random—provides detailed configuration examples, shows how to integrate Nginx with SpringBoot services, and outlines testing and deployment steps.
This article examines the false empty response issue caused by long‑polling coupling in RocketMQ 5.0 SimpleConsumer, analyzes existing approaches, and presents an adaptive, stateless proxy solution that decouples client and broker polls, adds notification, and includes metrics and configuration guidance.
This guide explains how to quickly capture network traffic from a mobile app using the Stream proxy, export the data as a HAR file, and then decode and parse the compressed responses with a short Python script to extract the desired JSON information.
This article provides a complete Nginx configuration example that proxies requests to an Alibaba Cloud OSS domain, adds the client’s real IP via the X-Real-IP header, enables gzip compression, and includes detailed comments and logging settings.
This article walks through the root causes of CORS errors when a front‑end site on port 8080 calls a back‑end service on port 59200, explains the four essential CORS response headers, demonstrates common error scenarios, and provides complete Nginx configuration snippets—including handling pre‑flight OPTIONS requests, custom headers, and method allowances—to reliably eliminate cross‑origin problems.
cURL 8.1 introduces three main changes: support for HTTP/2 over HTTPS proxies via the –proxy-http2 option, rejection of hostnames ending with .onion during DNS resolution, and an expanded set of variables for the -w option to output URL components.
This tutorial explains how to set up Nginx Proxy Manager using Docker, covering its key features, Docker‑Compose installation, login credentials, configuring a reverse proxy for a backend interface, obtaining Let’s Encrypt SSL certificates, and enabling HTTPS access.
This article explains what a VPN is, how it works, its legal status across countries, common misconceptions about privacy, its role as a proxy, and tips for choosing a trustworthy VPN provider.
Learn how to implement a functional HTTP/HTTPS proxy in Go, covering proxy concepts, forward and reverse types, protocol specifics, header transformations, and a complete, runnable code example that listens on TCP, parses requests, connects to target servers, and forwards traffic.
This tutorial introduces Nginx Proxy Manager, a visual reverse‑proxy management interface, and provides step‑by‑step instructions for installing it via Docker‑Compose, configuring domains, setting up SSL with Let’s Encrypt, and managing proxy hosts through its web UI.
This article examines the sandbox mechanisms employed by the micro‑frontend framework Qiankun, detailing three implementations—SnapshotSandbox, LegacySandbox, and ProxySandbox—explaining their principles, code structures, advantages, and drawbacks, and illustrating how they isolate JavaScript global state across micro‑applications.
This article examines the architecture of distributed databases, identifies the challenges of global sorting across shards, and presents both in‑memory and disk‑based proxy sorting solutions, detailing buffer configuration, merge‑sort and priority‑queue techniques, performance trade‑offs, and practical constraints for large‑scale queries.
This article curates key frontend topics—including how CommonJS and ES modules handle circular dependencies, why Proxy must be paired with Reflect, practical bug‑recording and source‑code navigation, building guide pages without third‑party libraries, plus a look at clustering algorithms and a powerful CRUD code generator—offering concise insights for modern web developers.
Cloudflare engineers have rewritten a core Nginx module in Rust, creating the Pingora proxy to replace Nginx, improve performance and safety, and pave the way for a future backend infrastructure without Nginx, highlighting Rust’s security benefits for complex, high‑scale services.
This article walks through creating a JavaScript reactive system for front‑end development, covering the classic Object.defineProperty approach, dependency tracking, Proxy‑based deep reactivity, integration with React hooks, performance tweaks, and advanced considerations such as async queues and compile‑time helpers.
This comprehensive guide walks you through Nginx fundamentals, from installing and configuring load balancing, static asset handling, compression, buffering, caching, IP access control, cross‑origin support, anti‑hotlinking, large file handling, SSL setup, high‑availability with Keepalived, and performance tuning techniques for robust backend services.
This article explains the differences between static and dynamic proxies in Java, provides complete code examples for static proxy, JDK native dynamic proxy, and CGLib dynamic proxy, shows their execution results, and compares their usage scenarios, especially in backend development.
This article explains the fundamental concepts of Redis cluster architecture, covering high‑availability with Sentinel, data partitioning methods, proxy‑based sharding techniques, the mechanics of Redis Cluster without a central node, and practical considerations for multi‑key operations in a distributed environment.
This article provides a practical guide to essential Vite configuration options—including CSS preprocessor settings, PostCSS plugins, path aliases, server host and proxy, build output directories, and plugin usage—offering concise code examples to help frontend developers quickly set up and optimize Vite projects.
This article walks through building a lightweight Qiankun JS sandbox by first explaining sandbox principles, then creating a snapshot sandbox, a singular proxy sandbox that records changes via ES6 Proxy, and finally a multiple‑proxy sandbox that isolates each micro‑frontend with its own fake window, complete with test cases and setup instructions.
This comprehensive guide walks you through Spring's core concepts—including IOC, DI, bean lifecycle, static and dynamic proxy patterns, AOP with annotations, and essential Spring annotations—while providing clear Java code examples and practical use‑cases for backend development.
Cloudflare has swapped Nginx for its home‑grown Rust proxy Pingora, claiming trillion‑request capacity, up to 70% lower CPU and memory usage, dramatically reduced latency, higher connection reuse, and improved security, though the new system remains closed‑source.
This guide explains what residential proxy IPs are, their advantages, how to obtain them from services like IPIDEA, and provides step‑by‑step Python code examples for integrating proxies into web‑scraping tasks such as extracting Amazon product data.
This article presents a comprehensive guide to Python web scraping, covering basic GET and POST requests with urllib2, using proxy IPs, managing cookies, disguising as a browser via custom headers, handling gzip-compressed responses, and accelerating crawls with a simple multithreaded worker pool.
This comprehensive guide explains why monitoring is essential, describes reliability metrics, walks through Zabbix installation, web UI configuration, custom monitoring, trigger creation, alert integration, distributed monitoring, SNMP support, and large‑scale server monitoring using scripts, APIs, and auto‑discovery.
This article explains Spring's @Transactional annotation, detailing the various transaction propagation options, the default rollback behavior for unchecked exceptions, common pitfalls such as self‑invocation and non‑public methods, and how to use AOP proxies like AopContext.currentProxy and @EnableAspectJAutoProxy to ensure proper transaction management.
This article explains Spring's @Transactional annotation, detailing propagation behaviors, rollback rules, common pitfalls such as self-invocation and non‑public methods, and provides practical solutions using AOP proxies and AopContext to ensure proper transaction management in Java backend applications.
This article walks through a real‑world case of a private‑cloud service experiencing 504 and 499 errors due to cross‑continent latency, detailing step‑by‑step troubleshooting, log analysis, Nginx timeout parameter tuning, SLB configuration changes, and key concepts behind Nginx error codes and proxy settings.
This article explains how Vue 3 replaces Vue 2’s Object.defineProperty reactivity with JavaScript’s Proxy, covering Proxy fundamentals, handler traps, the relationship with Reflect, internal methods and slots, and the distinction between ordinary and exotic objects, providing code examples and visual diagrams.
This article demonstrates how to set up an Nginx location block that proxies image requests to a PHP watermark service, provides a complete PHP Watermark class implementation, and shows a usage example for applying watermarks to images on the fly.
This article introduces mitmproxy, explains its proxy modes and MITM operation, and demonstrates how to use Python scripts with mitmproxy to automate multi‑field validation and encryption handling in mobile advertising testing, offering a flexible alternative to traditional capture tools.
This article walks through the implementation of Vue's reactive system step by step, starting with simple effect functions, then introducing dependency collection with Set, Map, and WeakMap, and finally using Proxy to automate tracking and triggering of updates for both primitive and object values.
This article walks through the root causes of CORS errors, explains the four essential response headers, demonstrates how to test with Postman, and provides a series of Nginx configuration examples that progressively fix preflight, header, method, and credential problems for a local development environment.
This article explains how the Austin Java backend project applies several classic design patterns—including Chain of Responsibility, Template Method, Builder, Strategy, Producer‑Consumer, Singleton, and Proxy—detailing their benefits, drawbacks, and specific code locations for each pattern.
This article explains how the NetEase Cloud Music team built a custom React Native debugging tool by extending Chrome DevTools, covering the devtools frontend module loading, React Native Debugger internals, Chrome DevTools Protocol, and a proxy-based solution to display network requests within the inspector.
This article explains how to diagnose and fix common CORS problems between a localhost frontend and backend by configuring Nginx as a reverse proxy, covering preflight requests, required response headers, multiple error scenarios, and complete Nginx configuration examples.
Learn how to configure Charles and the Postern VPN tool to intercept Android app traffic, including environment setup, proxy configuration, SSL certificate handling, and a comparison with Fiddler, enabling reliable packet capture even when apps disable proxy settings.
The article explains several typical situations—such as not configuring HTTPS proxies, using server IPs, non‑anonymous proxies, polluted IP pools, and lack of HTTP/2 support—that cause websites to easily detect that a request is made through a proxy, even for beginner Python scrapers.
This article examines the architecture of distributed databases, identifies challenges in sorting large result sets across shards, and presents step-by-step memory‑based, disk‑based, and incremental proxy sorting techniques, including buffer sizing, priority‑queue merging, and trade‑offs to avoid OOM and excessive I/O.
This article provides a detailed source‑code walkthrough of Envoy's outbound request processing, explaining how the proxy receives client data, parses HTTP requests, selects routes and clusters, forwards traffic upstream, handles retries and shadowing, and finally returns responses to downstream clients.
This article explains how Nohost extends the Whistle packet‑capture tool into a multi‑process, multi‑user remote proxy platform, detailing its architecture, interaction flow, master‑process logic, environment injection, user‑state recording, and Whistle process management for developers and operations teams.