Tag

Connection Management

0 views collected around this technical thread.

Code Mala Tang
Code Mala Tang
May 27, 2025 · Backend Development

Mastering Database Connections in FastAPI: Best Practices and Code Samples

Learn how to efficiently configure and manage database connections in FastAPI, covering synchronous and asynchronous setups, dependency injection, session handling, and testing strategies, to prevent leaks, boost performance, and ensure scalable, reliable applications.

AsyncConnection ManagementDatabase
0 likes · 8 min read
Mastering Database Connections in FastAPI: Best Practices and Code Samples
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Apr 27, 2025 · Databases

Why MySQL Memory Stays High and How to Optimize It

This article explains MySQL's memory architecture, why memory usage often stays high after spikes, and provides practical steps—including connection checks, slow query analysis, workload scaling, and switching to jemalloc—to diagnose and reduce memory consumption on 360's internal cloud platform.

Connection ManagementDatabase PerformanceMemory Optimization
0 likes · 7 min read
Why MySQL Memory Stays High and How to Optimize It
macrozheng
macrozheng
Feb 6, 2025 · Databases

How KeyDB Transforms Redis into a Multi‑Threaded Database

KeyDB, a Redis fork, replaces the single‑threaded architecture with a multi‑threaded model using a main thread and worker I/O threads, SO_REUSEPORT, per‑thread connection management, fastlock spin‑lock mechanisms, and active‑replica support, enabling concurrent data access and improved performance.

Connection ManagementDatabaseKeyDB
0 likes · 9 min read
How KeyDB Transforms Redis into a Multi‑Threaded Database
Java Captain
Java Captain
Feb 16, 2024 · Fundamentals

Understanding TCP: Concepts, Operation, and Key Features

TCP (Transmission Control Protocol) is a connection-oriented, reliable, byte-stream transport layer protocol that ensures ordered, error-free data delivery through mechanisms such as three-way handshake, four-way termination, flow control, and congestion control, making it essential for web browsing, email, and online gaming.

Connection Managementnetworkingreliability
0 likes · 4 min read
Understanding TCP: Concepts, Operation, and Key Features
Top Architect
Top Architect
May 8, 2023 · Backend Development

WebSocket Load Balancing Library for Microservice Architecture

This article introduces a Spring Boot library that uses a configuration annotation to enable WebSocket load balancing across microservice instances, explains its abstract design, connection management, message routing, and provides usage examples with code snippets while also mentioning related promotional content.

Connection ManagementJavaMicroservices
0 likes · 14 min read
WebSocket Load Balancing Library for Microservice Architecture
IT Services Circle
IT Services Circle
Mar 12, 2022 · Fundamentals

Comprehensive Guide to TCP: Header Structure, Handshakes, Connection Management, and Socket Programming

This article provides an in‑depth tutorial on TCP, covering its header structure, three‑way handshake, reasons for three handshakes, four‑way termination, TIME_WAIT, SYN attacks, Linux kernel parameters, and practical socket programming examples, all illustrated with diagrams and code snippets.

Connection ManagementSocket Programminghandshake
0 likes · 43 min read
Comprehensive Guide to TCP: Header Structure, Handshakes, Connection Management, and Socket Programming
Zhuanzhuan Tech
Zhuanzhuan Tech
Jan 12, 2022 · Backend Development

Connection Management in ZhiZhi RPC Framework SCF

This article explains how the ZhiZhi RPC framework SCF handles connection lifecycle, including establishment timing, connection pooling versus multiplexing, keep‑alive mechanisms, automatic recovery, and graceful shutdown, providing practical guidance for designing robust RPC protocols.

Connection ManagementKeep-AliveNetty
0 likes · 11 min read
Connection Management in ZhiZhi RPC Framework SCF
Top Architect
Top Architect
Jan 5, 2021 · Fundamentals

Understanding HTTP: Characteristics, Connection Management, and Performance Optimizations

This article explains the core characteristics of the HTTP protocol—including its flexibility, reliability, application‑layer nature, request‑response model, and statelessness—and then details short and long connection management, related header fields, head‑of‑line blocking, and practical performance‑enhancing techniques such as concurrent connections and domain sharding.

Connection ManagementLong Connectionhttp
0 likes · 17 min read
Understanding HTTP: Characteristics, Connection Management, and Performance Optimizations
Full-Stack Internet Architecture
Full-Stack Internet Architecture
Nov 10, 2019 · Fundamentals

Understanding HTTP over TCP: Connection Process, Handshake, and Management

This article explains how HTTP relies on TCP/IP, describes the browser's steps to open a TCP connection, details TCP segment and IP packet structures, outlines socket API calls, and discusses TCP handshake, slow start, and HTTP connection techniques such as parallel, persistent, and pipelined connections.

Connection Managementhttpnetworking
0 likes · 13 min read
Understanding HTTP over TCP: Connection Process, Handshake, and Management
Aikesheng Open Source Community
Aikesheng Open Source Community
Aug 23, 2019 · Backend Development

In-depth Analysis of DBLE Backend Connection Module Design and Implementation

This article provides a comprehensive examination of DBLE's backend connection module, detailing its design philosophy, data structures, initialization process, connection acquisition logic, and release mechanisms, while walking through key Java source code snippets to clarify how connections are managed within the middleware.

Connection ManagementDBLEDatabase Middleware
0 likes · 23 min read
In-depth Analysis of DBLE Backend Connection Module Design and Implementation
Architecture Digest
Architecture Digest
Jun 28, 2018 · Backend Development

Architecture and High‑Concurrency Optimization Practices of NetEase IM Cloud Service

This article explains the layered architecture, connection management, high‑availability design, security mechanisms, and performance‑boosting techniques of NetEase's instant‑messaging cloud platform, illustrating how the system handles massive concurrent connections and ensures stable, fast, and secure message delivery.

Cloud ServicesConnection ManagementInstant Messaging
0 likes · 18 min read
Architecture and High‑Concurrency Optimization Practices of NetEase IM Cloud Service
360 Zhihui Cloud Developer
360 Zhihui Cloud Developer
Aug 22, 2017 · Databases

Mastering MongoDB Connection, Authentication, and Query Optimization

This article explains common MongoDB connection problems, authentication mechanisms, read‑preference tuning, index types and creation, query‑plan analysis, pagination techniques, and array handling, offering practical tips to improve performance and reliability for developers.

AuthenticationConnection ManagementIndex Optimization
0 likes · 9 min read
Mastering MongoDB Connection, Authentication, and Query Optimization