Optimization Strategies for HttpClient in High Concurrency Scenarios, Significantly Increasing QPS!

Optimization Strategies for HttpClient in High Concurrency Scenarios, Significantly Increasing QPS!

One memorable instance was a week before the Double Eleven shopping festival when one of our APIs was overwhelmed. At that time, the business logic of the API was quite simple, just calling a few external services to fetch data and then assembling the results. Logically, CPU and memory usage were not high, so the … Read more

Practical Implementation of Database Connection Pooling with Rust and PostgreSQL: deadpool and diesel

Practical Implementation of Database Connection Pooling with Rust and PostgreSQL: deadpool and diesel (Part 4) The idea behind developing RTMate in Rust is to create a platform that provides WebSocket connection services, eliminating the need for users to set up their own WebSocket services. In this process, it is essential to manage different tenants and … Read more

Rust Axum Backend Series: Practical Implementation of Docker, Database, and Connection Pool

Introduction As the Rust language becomes increasingly popular in backend development, Axum, a high-performance and type-safe web framework, is gaining favor among developers. This article will guide you on how to integrate Docker and PostgreSQL database into an Axum project, and provide an in-depth understanding of how database connection pools work, which are fundamental elements … Read more

.NET Development: Pitfalls and Best Practices of HttpClient

.NET Development: Pitfalls and Best Practices of HttpClient

In .NET project development, HttpClient is almost an essential tool for calling external APIs. It is easy to use, but if you do not understand its internal mechanisms, you may encounter pitfalls that can lead to serious issues such as service avalanche and port exhaustion. Today, we will review common pitfalls in HttpClient and their … Read more

Optimizing Go HTTP Client: A Detailed Guide on Connection Pooling, Timeouts, and Retry Strategies

Optimizing Go HTTP Client: A Detailed Guide on Connection Pooling, Timeouts, and Retry Strategies

Click the “blue text” above to follow us “The program was running fast when it first launched, but why is it crawling like a snail now?” I received a request for help from a student a few days ago. After investigation, I found that he was using the default HTTP client from the Go standard … Read more

HTTP Client Pooling in Go: Connection Reuse Technology and TCP Keep-Alive Mechanism

HTTP Client Pooling in Go: Connection Reuse Technology and TCP Keep-Alive Mechanism

Click the “blue text” above to follow us Have you ever encountered a situation where, during peak service hours, a large influx of users causes the system response speed to slow down to a crawl? The code logic seems fine, so why does it struggle under high concurrency? It’s likely that the issue lies not … Read more

urllib3: A Powerful HTTP Client for Easy Network Requests in Python!

urllib3: A Powerful HTTP Client for Easy Network Requests in Python!

📖 A New Choice for Network Requests In today’s internet era, network requests have become an indispensable part of application development. Whether it’s scraping web data, calling REST APIs, or interacting with remote servers, a reliable HTTP client is essential. However, many developers often feel confused when handling network requests: How to manage connection pools, … Read more