HTTP Response Compression in Go: Implementing Gzip Middleware with Adaptive Compression Strategy

HTTP Response Compression in Go: Implementing Gzip Middleware with Adaptive Compression Strategy

Click the “blue text” above to follow us Yesterday, a novice asked me: “Brother Feng, why does our Go service always run out of network bandwidth during peak times?” I smiled and said, isn’t this the classic “naked running” problem? Your HTTP response isn’t wearing a “compression coat”, and the data is like a fat … Read more

High-Performance HTTP Client with asyncio and aiohttp: Implementing Asynchronous Requests

High-Performance HTTP Client with asyncio and aiohttp: Implementing Asynchronous Requests

▼ Click the card below to follow me ▲ Click the card above to follow me High-Performance HTTP Client with asyncio and aiohttp: Implementing Asynchronous Requests Recently, I’ve been enjoying asynchronous programming, and today I want to share something interesting – using asyncio and aiohttp to implement asynchronous HTTP requests. In simple terms, it allows … Read more

HTTP Connection Management in Go: Strategies for Long and Short Connections | Keep-Alive Optimization

HTTP Connection Management in Go: Strategies for Long and Short Connections | Keep-Alive Optimization

Click the “blue text” above to follow us Have you ever encountered a situation where the server inexplicably cannot handle the traffic? Despite having sufficient configuration, it keeps dropping connections. After checking for a long time, you find that the issue lies in HTTP connection handling. Think about it, HTTP connections are like tables in … Read more

Can HTTP/2 + SSE Completely Replace WebSocket?

Can HTTP/2 + SSE Completely Replace WebSocket?

Hello everyone, it’s great to see you again. I am Advancing Frontend Technology, and I will guide everyone to focus on cutting-edge frontend topics and delve into the underlying technologies, so we can all improve together. Please feel free to follow, like, bookmark, and share! 1. What is SSE (Server-Sent Events) Server-Sent Events (SSE) is … Read more

The Dangers of HTTP Proxies: Five Key Points Not to Ignore

The Dangers of HTTP Proxies: Five Key Points Not to Ignore

HTTP proxies are widely used for enhancing network security and efficiency. However, many users focus solely on the convenience they offer, overlooking the potential risks. Five Hidden Risks of HTTP Proxies ① Abuse of Proxy Servers Employees may access illegal websites through proxies, exposing the company to legal risks. For instance, some employees might use … Read more

Common Application Layer Protocols: Analyzing HTTP from a Traffic Perspective (Part 3)

Common Application Layer Protocols: Analyzing HTTP from a Traffic Perspective (Part 3)

Introduction In the previous article, “Common Application Layer Protocols: Analyzing HTTP from a Traffic Perspective (Part 2),” we introduced the concept, principles, development history, traffic decoding, and simple analysis methods of the HTTP protocol from a traffic analysis perspective. We also discussed two important metrics: request methods and status codes. Today, we bring you the … Read more

How to Choose Serialization Protocols in MQTT Messaging: Text Serialization vs. Binary Serialization

How to Choose Serialization Protocols in MQTT Messaging: Text Serialization vs. Binary Serialization

Serialization of String Messages In the previous article, we used the <span>MQTTnet</span> framework to implement an MQTT server, an MQTT publisher process, and an MQTT subscriber process. During the messaging process, we directly passed the string from the console. Since MQTT is an application layer protocol, it is based on TCP for data transmission. We … Read more

Exploring the MQTT Protocol | From Basics to Applications

Exploring the MQTT Protocol | From Basics to Applications

MESSAGE QUEUING TELEMETRY TRANSPORTWhat is the “MQTT” Protocol? MQTT (Message Queuing Telemetry Transport) is a standard (ISO/IEC PRF 20922) based on the publish-subscribe paradigm. It operates on top of the TCP/IP protocol and is designed for remote devices with limited hardware capabilities and poor network conditions, making it a publish/subscribe messaging protocol that is lightweight, … Read more

C++ Network Programming: Implementation of TCP/IP Protocol

C++ Network Programming: Implementation of TCP/IP Protocol

C++ Network Programming: Implementation of TCP/IP Protocol In modern computer networks, the TCP/IP protocol is one of the most important communication protocols. It provides a reliable way for data transmission between different devices. In this article, we will implement a simple TCP client and server using C++ to help beginners understand the basic concepts and … Read more