Tag

source-code-analysis

0 views collected around this technical thread.

Sohu Tech Products
Sohu Tech Products
Jan 8, 2025 · Databases

Analysis of MySQL Deadlock Issues in Multi-threaded Scenarios

The article investigates a MySQL deadlock that arises when multiple threads concurrently execute INSERT … ON DUPLICATE KEY UPDATE for logistics cancellations, reproduces the issue on MySQL 5.7 and 8.0, analyzes InnoDB lock handling and internal mini‑transactions, and explains how batch processing of each value leads to the deadlock.

DatabaseLocking MechanismMulti-threading
0 likes · 18 min read
Analysis of MySQL Deadlock Issues in Multi-threaded Scenarios
DeWu Technology
DeWu Technology
May 31, 2024 · Artificial Intelligence

In-depth Analysis of Prophet Time Series Forecasting Model

The article offers a thorough examination of Facebook’s Prophet forecasting model, detailing its additive decomposition of trend, seasonality, holidays and regressors, the underlying Bayesian inference via Stan, the full training‑and‑prediction pipeline, data‑normalization tricks, uncertainty estimation, and practical source‑code insights for e‑commerce applications.

Bayesian inferenceProphet modelStan framework
0 likes · 21 min read
In-depth Analysis of Prophet Time Series Forecasting Model
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Mar 27, 2024 · Fundamentals

Deep Dive into Go's context Package: Structure, Interfaces, and Cancellation Mechanism

This article provides a comprehensive analysis of Go's context package, explaining its purpose, the key interfaces and structs, the back‑trace chain and tree architecture, and how cancellation, deadlines, and value propagation are implemented in the standard library source code.

CancellationContextGo
0 likes · 26 min read
Deep Dive into Go's context Package: Structure, Interfaces, and Cancellation Mechanism
vivo Internet Technology
vivo Internet Technology
Mar 6, 2024 · Databases

Sharding-JDBC Source Code Analysis and Custom Development

The article dissects Sharding‑JDBC’s five core engines—parsing, routing, rewriting, execution, and merging—highlights production pain points, and details custom extensions such as skipping sharding for specific tables, forcing master routing, runtime configuration refresh, batch‑update handling, sharding‑condition deduplication, full‑route validation, and a simplified component wrapper to ease integration and improve performance.

Custom DevelopmentDatabase MiddlewareExecution Engine
0 likes · 55 min read
Sharding-JDBC Source Code Analysis and Custom Development
政采云技术
政采云技术
Dec 5, 2023 · Fundamentals

Java SPI vs Dubbo SPI: Service Provider Interface Mechanisms Compared

This article explains Java's Service Provider Interface (SPI) mechanism and compares it with Dubbo's enhanced SPI implementation, highlighting how Dubbo addresses the limitations of native Java SPI through configuration format changes and lazy loading.

Dubbo SPIFramework ExtensionJava SPI
0 likes · 19 min read
Java SPI vs Dubbo SPI: Service Provider Interface Mechanisms Compared
Sohu Tech Products
Sohu Tech Products
Oct 25, 2023 · Backend Development

Deep Analysis of Netty FastThreadLocal: From Production Issue to Source Code Implementation

The article traces a production bug where unreleased JDK ThreadLocal data corrupted user info, then compares JDK ThreadLocal with Netty’s FastThreadLocal, detailing their source‑code implementations, performance trade‑offs (O(n) vs O(1) access), memory‑leak risks, and recommends explicit remove() calls to avoid leaks.

JavaMemory ManagementNetty
0 likes · 15 min read
Deep Analysis of Netty FastThreadLocal: From Production Issue to Source Code Implementation
Practical DevOps Architecture
Practical DevOps Architecture
Oct 8, 2023 · Backend Development

Comprehensive RocketMQ Course: Source Code Deep Dive, Advanced Features, Performance Tuning, and Real‑World Projects

This course provides an in‑depth study of RocketMQ, covering its fundamentals, source‑code analysis, advanced features such as transactional and ordered messages, performance optimization, operational monitoring, and hands‑on projects that guide learners through installation, configuration, clustering, and integration with Spring Boot.

Message QueuePractical Projectsbackend development
0 likes · 4 min read
Comprehensive RocketMQ Course: Source Code Deep Dive, Advanced Features, Performance Tuning, and Real‑World Projects
政采云技术
政采云技术
May 24, 2023 · Frontend Development

LocatorJS Source Code Analysis: Architecture, Chrome Extension Integration, and Runtime Mechanics

This article provides a detailed walkthrough of LocatorJS, covering how to clone the repository, set up the development environment, explore the Chrome extension code, and dissect the runtime implementation that leverages React fiber, SolidJS components, and Babel plugins to enable precise code‑to‑UI mapping.

Babel PluginChrome ExtensionLocatorJS
0 likes · 11 min read
LocatorJS Source Code Analysis: Architecture, Chrome Extension Integration, and Runtime Mechanics
Aikesheng Open Source Community
Aikesheng Open Source Community
Apr 24, 2023 · Databases

MySQL Source Code Analysis: How a Record Is Determined to Match a WHERE Clause

This article walks through MySQL 8.0.32 source code to explain how the server builds a tree for a WHERE clause, evaluates each condition using classes such as Item_cond_and, Item_cond_or, Item_func_gt, and Item_func_eq, and ultimately decides whether a row satisfies the query.

Database InternalsMySQLSQL
0 likes · 19 min read
MySQL Source Code Analysis: How a Record Is Determined to Match a WHERE Clause
Aikesheng Open Source Community
Aikesheng Open Source Community
Mar 27, 2023 · Databases

Root Cause Analysis of MySQL sha256_password Deprecation Warning Triggered by Non‑existent Users

The article investigates why MySQL 8.0.27 repeatedly logs a deprecation warning for the sha256_password plugin, tracing the issue to authentication attempts with non‑existent users, analyzing source code, and proposing configuration and code‑level fixes.

AuthenticationDatabase AdministrationDeprecation Warning
0 likes · 11 min read
Root Cause Analysis of MySQL sha256_password Deprecation Warning Triggered by Non‑existent Users
vivo Internet Technology
vivo Internet Technology
Mar 22, 2023 · Mobile Development

DropBoxManagerService Source Code Analysis and Client Log File Management Design

The article examines Android's DropBoxManagerService architecture, its configurable file retention policies, naming conventions, atomic operations, and broadcast mechanisms, then applies these patterns to propose a client‑side log management system using a producer‑consumer model with prioritized temporary storage, rename‑based reporting, and FileObserver‑driven collection respecting network, data, timing, priority, and battery constraints.

AndroidDropBoxManagerServiceFile System
0 likes · 14 min read
DropBoxManagerService Source Code Analysis and Client Log File Management Design
vivo Internet Technology
vivo Internet Technology
Jan 30, 2023 · Backend Development

Dubbo ZooKeeper Registry Implementation Principle Analysis

The article dissects Dubbo’s ZooKeeperRegistry by tracing its inheritance from AbstractRegistry through FailbackRegistry to CacheableFailbackRegistry, detailing local memory‑disk caching, retry logic via a timing wheel, URL‑push optimizations, and the ZooKeeper‑based ephemeral node and watcher mechanisms that enable dynamic service discovery, while also covering core ZooKeeper concepts.

DubboRPC frameworkService Registry
0 likes · 20 min read
Dubbo ZooKeeper Registry Implementation Principle Analysis
DaTaobao Tech
DaTaobao Tech
Sep 26, 2022 · Backend Development

Deep Dive into Node.js CJS Module Loading Process

The article dissects Node.js v17’s source to reveal how the CommonJS `require` system is bootstrapped, how native modules are loaded, how `Module._load` resolves, caches, and executes user files, and how the overall CJS loading pipeline operates step‑by‑step.

CJSNode.jsRequire
0 likes · 15 min read
Deep Dive into Node.js CJS Module Loading Process
Tencent Cloud Developer
Tencent Cloud Developer
Sep 23, 2022 · Backend Development

Deep Dive into Go Context Package: Source Code Analysis and Design Patterns

An in‑depth examination of Go’s compact context package reveals its core interface, internal implementations like emptyCtx, cancelCtx, timerCtx, and valueCtx, the propagation and cancellation mechanisms, and practical design patterns, concluding with essential best‑practice guidelines for passing, canceling, and using context values safely.

CancellationGoconcurrency
0 likes · 18 min read
Deep Dive into Go Context Package: Source Code Analysis and Design Patterns
Sohu Tech Products
Sohu Tech Products
Apr 6, 2022 · Mobile Development

Complete Guide to Updating UI from Background Threads in Android

This article explains why Android forbids UI updates from background threads, analyzes the underlying framework source code to trace the view hierarchy and thread checks, and presents several techniques—both general and view‑specific—to safely modify UI without triggering exceptions.

AndroidBackground ThreadUI Thread
0 likes · 17 min read
Complete Guide to Updating UI from Background Threads in Android
Top Architect
Top Architect
Feb 27, 2022 · Backend Development

Analyzing Redis' Single‑Threaded Model and Event Loop from Source Code

This article examines Redis's single‑threaded architecture by walking through its source code, detailing the main function initialization steps, the event‑loop implementation, and how file and time events are processed, while also noting the promotional messages interspersed throughout.

C languageEvent LoopRedis
0 likes · 12 min read
Analyzing Redis' Single‑Threaded Model and Event Loop from Source Code
Sanyou's Java Diary
Sanyou's Java Diary
Jan 25, 2022 · Cloud Native

Inside Nacos NamingService: Service Registration and Heartbeat Source Code Explained

This article dissects Nacos 1.4.1's NamingService implementation, detailing how services are registered via HTTP, the construction of registration parameters, the heartbeat mechanism that periodically confirms instance health, and the underlying code flow, including request handling, retry logic, and task scheduling.

JavaNacosheartbeat
0 likes · 9 min read
Inside Nacos NamingService: Service Registration and Heartbeat Source Code Explained
Sohu Tech Products
Sohu Tech Products
Jan 5, 2022 · Fundamentals

Source Code Analysis – Suspension and Resumption of Kotlin Coroutines

This article dissects the Kotlin coroutine implementation by decompiling a simple coroutine, explaining how the compiler transforms suspend functions into state‑machine classes, how launch creates an AbstractCoroutine, how the dispatcher intercepts and schedules execution, and how the coroutine is suspended and later resumed through Continuation mechanisms.

Kotlinconcurrencycoroutines
0 likes · 16 min read
Source Code Analysis – Suspension and Resumption of Kotlin Coroutines
Tencent Database Technology
Tencent Database Technology
Dec 29, 2021 · Databases

In-Depth Analysis of Hash Join Implementation and Execution Flow in MySQL 8.0

The article explores MySQL's Hash Join algorithms, comparing Basic, On-disk, Grace, and Hybrid variants, while detailing rule-based optimizer decisions, memory management, disk spilling mechanisms, and outer join execution strategies through source code analysis.

Database InternalsHash JoinMySQL
0 likes · 21 min read
In-Depth Analysis of Hash Join Implementation and Execution Flow in MySQL 8.0
php中文网 Courses
php中文网 Courses
Nov 12, 2021 · Backend Development

Laravel Framework Core Source Code Analysis Course

This course introduces learners to the Laravel framework's core source code, covering topics such as container optimization, the decorator pattern, request proxying, environment loading, and exception mechanisms, and provides an online link for self‑paced study.

Laravelbackend developmentframework
0 likes · 2 min read
Laravel Framework Core Source Code Analysis Course