Tagged articles

concurrency

2234 articles · Page 22 of 23
Java Backend Technology
Java Backend Technology
Mar 3, 2018 · Backend Development

Essential Java Interview Questions Every Backend Developer Should Master

A comprehensive collection of Java interview questions covering fundamentals, common collections, concurrency, JVM internals, design patterns, data structures, networking, databases, caching, messaging, frameworks, distributed systems, and micro‑service architecture to help developers prepare for junior to mid‑level positions.

Design PatternsJavaconcurrency
0 likes · 19 min read
Essential Java Interview Questions Every Backend Developer Should Master
Architecture Digest
Architecture Digest
Jan 21, 2018 · Databases

Common MySQL Concurrency Issues: Table Locks, Metadata Locks, Deadlocks, and Lock Waits

This article examines typical MySQL concurrency problems—including table lock‑induced slow queries, metadata lock blocking during online schema changes, deadlock scenarios, and lock‑wait timeouts—provides step‑by‑step reproductions, analysis of lock behavior, and practical mitigation strategies such as using InnoDB, online DDL tools, and monitoring techniques.

DeadlockInnoDBLocks
0 likes · 15 min read
Common MySQL Concurrency Issues: Table Locks, Metadata Locks, Deadlocks, and Lock Waits
Java Captain
Java Captain
Jan 11, 2018 · Fundamentals

Understanding Java's synchronized(this) Object Lock and Thread Interaction

This article explains how Java's synchronized(this) keyword creates an object lock that allows only one thread to execute a synchronized block at a time, demonstrates various scenarios with code examples, and shows how non‑synchronized sections remain concurrent while all synchronized sections on the same object are blocked.

concurrencymultithreadingobject lock
0 likes · 9 min read
Understanding Java's synchronized(this) Object Lock and Thread Interaction
Qunar Tech Salon
Qunar Tech Salon
Dec 27, 2017 · Backend Development

Understanding the Implementation and Optimization of Java synchronized

This article explains how Java's synchronized keyword works internally, covering its implementation via monitorenter/monitorexit, the role of object headers and monitors, and the various lock optimizations introduced in JDK 1.6 such as spin locks, biased locks, lightweight locks, lock elimination, and lock coarsening.

JavaPerformanceconcurrency
0 likes · 17 min read
Understanding the Implementation and Optimization of Java synchronized
Tencent Database Technology
Tencent Database Technology
Dec 7, 2017 · Databases

Implementation and Optimizations of Percona 5.7 Thread Pool

This article explains how Percona Server 5.7 implements a thread‑pool model for MySQL, detailing the activation parameters, internal architecture, functional threads, timer mechanisms, and several performance optimizations such as priority scheduling and special handling for long‑running commands.

Database PerformanceMySQLPercona
0 likes · 13 min read
Implementation and Optimizations of Percona 5.7 Thread Pool
MaGe Linux Operations
MaGe Linux Operations
Dec 6, 2017 · Fundamentals

Master Python Multiprocessing and Coroutines: From Queues to Async Efficiency

This article explains Python's inter-process communication methods, including process creation, queues, pipes, locks, and pools, and introduces coroutines as lightweight alternatives, detailing their creation with gevent, practical web crawling, and socket server implementations, highlighting performance benefits and appropriate use cases.

Pythonconcurrencycoroutine
0 likes · 6 min read
Master Python Multiprocessing and Coroutines: From Queues to Async Efficiency
JD Retail Technology
JD Retail Technology
Nov 29, 2017 · Operations

iOS Thread Synchronization Mechanisms and Lock Implementations

This article explains various iOS thread synchronization tools—including NSLock, NSRecursiveLock, NSConditionLock, NSCondition, @synchronized, dispatch_semaphore, pthread_mutex, and the deprecated OSSpinLock—detailing their internal implementations, usage patterns, code examples, and performance considerations for developers seeking safe concurrent programming on Apple platforms.

LocksNSLockThread Synchronization
0 likes · 22 min read
iOS Thread Synchronization Mechanisms and Lock Implementations
Alibaba Cloud Infrastructure
Alibaba Cloud Infrastructure
Nov 29, 2017 · Databases

Case Study: Resolving a One‑Cent Discrepancy Caused by Distributed‑Lock Timeout and Concurrency Issues in Alibaba’s Financial System

This article analyzes a real Alibaba internal financial‑system incident where a one‑cent accounting error arose from concurrent database writes after a distributed‑lock timeout, details the root‑cause investigation, and presents two remediation strategies—adjusting timeout settings and strengthening idempotent controls—to prevent similar issues.

Alibabaconcurrencydistributed lock
0 likes · 7 min read
Case Study: Resolving a One‑Cent Discrepancy Caused by Distributed‑Lock Timeout and Concurrency Issues in Alibaba’s Financial System
Alibaba Cloud Developer
Alibaba Cloud Developer
Nov 27, 2017 · Backend Development

How a 0.01‑Yuan Mistake Exposed Distributed Lock Flaws in Alibaba’s Backend

A tiny 0.01‑yuan discrepancy in an Alibaba product revealed duplicate settlement records, exposing a distributed‑lock timeout and concurrency issue that led to double commits, and the article walks through the root‑cause analysis, reverse engineering of the process, and two remediation strategies focusing on timeout adjustments and idempotency controls.

Alibabaconcurrencydistributed lock
0 likes · 8 min read
How a 0.01‑Yuan Mistake Exposed Distributed Lock Flaws in Alibaba’s Backend
21CTO
21CTO
Nov 17, 2017 · Fundamentals

Master Java Concurrency: Threads, Thread Pools, and Synchronization

This article provides a comprehensive overview of Java concurrency, covering thread creation methods, thread pools, thread models, the Future and Fork/Join frameworks, volatile and CAS mechanisms, AQS, synchronized locks, and various concurrent queue implementations, with practical code examples and references for deeper study.

JavaThreadPoolconcurrency
0 likes · 38 min read
Master Java Concurrency: Threads, Thread Pools, and Synchronization
Architecture Digest
Architecture Digest
Nov 17, 2017 · Backend Development

A Comprehensive Overview of Java Concurrency Programming

This article provides a high‑level summary of Java concurrency, covering thread creation methods, thread models, thread pools, Future and CompletableFuture, the Fork/Join framework, volatile, CAS, AQS, synchronized locks, and concurrent queue implementations, with code examples and reference links for deeper study.

AQSCASFuture
0 likes · 39 min read
A Comprehensive Overview of Java Concurrency Programming
Java Backend Technology
Java Backend Technology
Nov 6, 2017 · Backend Development

Mastering Java’s Future Pattern: From CountDownLatch to Callable

This article explains Java’s asynchronous call mechanisms, reviews thread counters like CountDownLatch, introduces the Future pattern with its core roles and structure, provides a step‑by‑step code implementation, and shows how the JDK implements Future using Callable and FutureTask.

FutureJavabackend development
0 likes · 8 min read
Mastering Java’s Future Pattern: From CountDownLatch to Callable
Architecture Digest
Architecture Digest
Nov 6, 2017 · Backend Development

Understanding Concurrency, Synchronization, and Locking Mechanisms in Java and Hibernate

This article explains the concepts of synchronous and asynchronous execution, common concurrency problems such as dirty reads and non‑repeatable reads, and presents practical solutions using Java synchronized blocks, database pessimistic and optimistic locks, Hibernate lock modes, and performance‑optimizing techniques for high‑traffic web applications.

DatabaseJavaconcurrency
0 likes · 25 min read
Understanding Concurrency, Synchronization, and Locking Mechanisms in Java and Hibernate
Java Backend Technology
Java Backend Technology
Oct 31, 2017 · Backend Development

Unlock High-Performance Java with Lock-Free Concurrency and Atomic Classes

This article explains how lock-free techniques such as Compare-And-Swap (CAS) and Java's atomic classes—including AtomicBoolean, AtomicInteger, AtomicReference, and their array and field updaters—provide optimistic concurrency control, reduce context switches, and improve performance compared to traditional locking mechanisms.

CASJavaLock-Free
0 likes · 11 min read
Unlock High-Performance Java with Lock-Free Concurrency and Atomic Classes
21CTO
21CTO
Oct 24, 2017 · Backend Development

Mastering Java Concurrency: Key Concepts, Thread Lifecycle, and JMM Explained

This article explains essential Java concurrency concepts—including synchronous vs. asynchronous execution, concurrency vs. parallelism, critical sections, blocking and non‑blocking operations—covers thread states, creation methods, priorities, common thread APIs, and the Java Memory Model’s guarantees on atomicity, visibility, and ordering.

Javaconcurrencyjmm
0 likes · 22 min read
Mastering Java Concurrency: Key Concepts, Thread Lifecycle, and JMM Explained
Java Backend Technology
Java Backend Technology
Oct 24, 2017 · Fundamentals

ThreadLocal OOM? Exploring Singleton Pitfalls in Java Multithreading

This article examines common Java singleton implementations—including eager, thread‑safe lazy, double‑checked locking, and static inner‑class approaches—explaining their requirements, potential memory‑leak pitfalls such as ThreadLocal‑induced OOM, and how improper usage in multithreaded environments can lead to unexpected instance creation and performance issues.

Design PatternsJavaOOM
0 likes · 6 min read
ThreadLocal OOM? Exploring Singleton Pitfalls in Java Multithreading
Architecture Digest
Architecture Digest
Oct 24, 2017 · Backend Development

Understanding Java Thread Concurrency: Concepts, Lifecycle, and the Java Memory Model

This article explains key Java concurrency concepts—including synchronization, parallelism, critical sections, blocking vs non‑blocking, thread lifecycle, priority, common thread methods, interrupt handling, and the Java Memory Model’s guarantees of atomicity, visibility, ordering, and happens‑before relations—providing practical examples and code snippets for backend developers.

Javaconcurrencyjmm
0 likes · 24 min read
Understanding Java Thread Concurrency: Concepts, Lifecycle, and the Java Memory Model
Java Backend Technology
Java Backend Technology
Oct 12, 2017 · Backend Development

Mastering Java’s ReentrantReadWriteLock: When to Use Read/Write Locks

This article explains Java’s ReentrantReadWriteLock, detailing its shared read lock and exclusive write lock behavior, comparing it to ReentrantLock and concurrent collections, and provides clear code examples demonstrating read‑read sharing, write‑write exclusion, and read‑write mutual exclusion.

JavaLockReentrantReadWriteLock
0 likes · 3 min read
Mastering Java’s ReentrantReadWriteLock: When to Use Read/Write Locks
Java Backend Technology
Java Backend Technology
Oct 10, 2017 · Fundamentals

Mastering Java Thread Communication: Wait/Notify Explained with Real Code

This article introduces Java's wait/notify thread communication mechanism, explains its principles with analogies, details the behavior of wait and notify methods, provides step‑by‑step code examples—including a simple producer‑consumer queue—and highlights important considerations such as lock handling and thread states.

JavaThread Communicationconcurrency
0 likes · 9 min read
Mastering Java Thread Communication: Wait/Notify Explained with Real Code
Java Backend Technology
Java Backend Technology
Sep 27, 2017 · Fundamentals

Unlocking ThreadLocal: How Java Gives Each Thread Its Own Variable

This article explains the purpose of Java's ThreadLocal class, shows a practical example with code and output images, compares it to synchronized locking, and demonstrates how ThreadLocal provides each thread with an independent variable copy for safe concurrent access.

JavaProgramming FundamentalsThreadLocal
0 likes · 3 min read
Unlocking ThreadLocal: How Java Gives Each Thread Its Own Variable
Java Backend Technology
Java Backend Technology
Sep 16, 2017 · Backend Development

Mastering Java’s Synchronized Reentrant Lock: Features, Pitfalls, and Best Practices

This article explains Java’s synchronized keyword’s reentrant lock capability, demonstrates how nested synchronized methods acquire the same lock without deadlock, explores additional features such as automatic lock release on exceptions, using arbitrary objects as monitors, and illustrates the double‑checked locking pattern for singleton implementation.

JavaReentrantLockconcurrency
0 likes · 5 min read
Mastering Java’s Synchronized Reentrant Lock: Features, Pitfalls, and Best Practices
Meituan Technology Team
Meituan Technology Team
Sep 14, 2017 · Backend Development

Java Concurrency Q&A: Akka, Locks, ThreadPoolExecutor, and More

The article answers twelve Java concurrency questions, covering Meituan’s simple Akka use, when to prefer ReentrantLock or synchronized, queue rejection policies, Java 8 ConcurrentHashMap internals, ThreadPoolExecutor workflow, read‑write locks and Conditions, interview preparation, beginner resources, volatile ordering nuances, and notes on unclear flash‑sale overselling safeguards.

AkkaJavaLocks
0 likes · 10 min read
Java Concurrency Q&A: Akka, Locks, ThreadPoolExecutor, and More
Meituan Technology Team
Meituan Technology Team
Aug 25, 2017 · Backend Development

Java and JVM Q&A: Performance, Tools, and Best Practices

This article compiles a Java club’s Q&A covering backend development essentials—from network bandwidth checks and static‑method hooking to JNI choices, OSGi modularity, plugin performance, CPU‑heavy thread analysis, ConcurrentHashMap improvements, micro‑service frameworks, cross‑data-center protocols, JVM GC mechanisms, inheritance alternatives, ThreadLocal pitfalls, career advice, cloning, generics erasure, JVM tuning, multithreading strategies, lock upgrades, monitoring tools, database failure handling, Spring Data JPA design, and distributed transaction practices.

JVMJavaPerformance
0 likes · 16 min read
Java and JVM Q&A: Performance, Tools, and Best Practices
Java Captain
Java Captain
Aug 22, 2017 · Fundamentals

Comparison of synchronized and Lock in Java: Limitations, Advantages, and Usage

This article explains the limitations of Java's synchronized keyword, introduces the Lock framework from java.util.concurrent.locks, compares their features, and demonstrates practical usage through multiple code examples covering ReentrantLock, tryLock, lockInterruptibly, ReadWriteLock, and fairness concepts.

Lockconcurrencymultithreading
0 likes · 25 min read
Comparison of synchronized and Lock in Java: Limitations, Advantages, and Usage
21CTO
21CTO
Aug 10, 2017 · Backend Development

How to Build a High‑Concurrency Flash‑Sale (SecKill) System in Java

This article explains how to design and implement a Java‑based flash‑sale (seckill) system that can handle tens of thousands of concurrent requests, covering entity modeling, DAO methods, service logic, controller handling, a concurrency simulation test, and an improved locking strategy to prevent overselling.

DatabaseJPAJava
0 likes · 9 min read
How to Build a High‑Concurrency Flash‑Sale (SecKill) System in Java
Baidu Waimai Technology Team
Baidu Waimai Technology Team
Jul 11, 2017 · Backend Development

Handling Hotspot Accounts in Baidu Waimai Financial Accounting System: Challenges and Solutions

The article examines the upgrade to a balance‑based financial accounting system, defines hotspot accounts, explains why they pose concurrency challenges, and evaluates several technical solutions—including optimistic locking, asynchronous processing, and account splitting—to guide appropriate strategy selection for different business scenarios.

account splittingasynchronous processingbackend
0 likes · 9 min read
Handling Hotspot Accounts in Baidu Waimai Financial Accounting System: Challenges and Solutions
Qunar Tech Salon
Qunar Tech Salon
May 11, 2017 · Operations

Designing Performance Test Scenarios: Models, Metrics, and Strategies

This article explains how to design performance testing scenarios, covering test models, metrics, script preparation, concurrency calculations, pressure strategies, run times, delay settings, user termination, monitoring methods, and various typical scenario types such as baseline, load, mixed, capacity, large‑concurrency, stability and scalability tests.

Scenario DesignTPSconcurrency
0 likes · 24 min read
Designing Performance Test Scenarios: Models, Metrics, and Strategies
Architecture Digest
Architecture Digest
May 7, 2017 · Backend Development

Design and Implementation of a Java-Based Flash Sale (Seckill) System

This article explains the architecture and Java code for a high‑concurrency flash‑sale system, covering request distribution, pre‑processing, queue selection, transaction handling, and database interaction to efficiently manage limited‑stock purchases under massive traffic.

Javaconcurrencydistributed system
0 likes · 7 min read
Design and Implementation of a Java-Based Flash Sale (Seckill) System
21CTO
21CTO
May 2, 2017 · Backend Development

How Toutiao Scaled to Millions of QPS with Go‑Powered Microservices

This article chronicles Toutiao’s evolution from a monolithic Python/C++/PHP stack to a large‑scale Go‑based microservice architecture, detailing the reasons for adopting Go, the design of the kite framework, concurrency models, timeout control, performance tuning, monitoring, and a reusable DAO component for efficient RPC aggregation.

Performancebackendcloud native
0 likes · 27 min read
How Toutiao Scaled to Millions of QPS with Go‑Powered Microservices
ITPUB
ITPUB
May 2, 2017 · Databases

Understanding Oracle Lock Mechanisms: DML, DDL, and Row‑Level Locks Explained

This article explains how Oracle uses various lock types—including DML, DDL, and internal locks—to protect shared resources, details the lock manager workflow, describes the three lock components and lock modes, and shows practical SQL examples of transaction handling and blocking detection.

DatabaseLocksOracle
0 likes · 13 min read
Understanding Oracle Lock Mechanisms: DML, DDL, and Row‑Level Locks Explained
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Apr 9, 2017 · Backend Development

Mastering Distributed Locks and Idempotency for High‑Concurrency Systems

This article explores the challenges of mutual exclusion and idempotency in distributed environments, explains the underlying principles of locks in multi‑threaded and multi‑process contexts, and presents practical implementations using Zookeeper, Redis, Tair, and the Cerberus and GTIS frameworks to ensure reliable, scalable operations.

RedisZookeeperconcurrency
0 likes · 35 min read
Mastering Distributed Locks and Idempotency for High‑Concurrency Systems
ZhiKe AI
ZhiKe AI
Feb 23, 2017 · Fundamentals

Why volatile Is Not Thread‑Safe: A Java Increment Test

The article presents a Java program where 100 threads each increment a volatile int 1,000 times, showing that the final value may be less than the expected 100,000, and explains that volatile only guarantees visibility, not atomicity, making it unsuitable for concurrent modifications.

AtomicityJavaThread Safety
0 likes · 2 min read
Why volatile Is Not Thread‑Safe: A Java Increment Test
ZhiKe AI
ZhiKe AI
Feb 22, 2017 · Fundamentals

Understanding Java’s java.util.concurrent Package and Thread Pools

This article introduces the java.util.concurrent package introduced since JDK 5, explains the five thread‑pool creation methods, demonstrates how to use Runnable and Callable, details BlockingQueue operations and implementations, and summarizes best practices for building robust, high‑concurrency Java applications.

BlockingQueueJavaJava Util Concurrent
0 likes · 10 min read
Understanding Java’s java.util.concurrent Package and Thread Pools
Qunar Tech Salon
Qunar Tech Salon
Jan 21, 2017 · Backend Development

Message Consumption Patterns and Best Practices in Qunar's QMQ

This article shares Qunar's practical experiences with message-driven architecture, detailing consumer handling of duplicate messages, ordering, concurrency control, asynchronous processing, and batch strategies, and presents concrete solutions such as idempotent checks, deduplication tables, versioning, and QMQ's built‑in executors.

Batch ProcessingOrderingasynchronous ack
0 likes · 18 min read
Message Consumption Patterns and Best Practices in Qunar's QMQ
Qunar Tech Salon
Qunar Tech Salon
Dec 19, 2016 · Backend Development

Asynchronous Refactoring of an HTTP Service Using a Graph‑Based Execution Engine

This article describes how a Java‑based HTTP service was transformed from a synchronous, thread‑blocking design to a fully asynchronous architecture by evaluating coroutine, Actor model, and Rx approaches, and ultimately implementing a Graph‑Based Execution Engine integrated with Servlet 3.0 and Spring MVC to improve stability, performance, and throughput.

AsynchronousServletconcurrency
0 likes · 12 min read
Asynchronous Refactoring of an HTTP Service Using a Graph‑Based Execution Engine
Architects Research Society
Architects Research Society
Nov 23, 2016 · Databases

ScyllaDB Architecture and Performance Optimizations: Design Insights

ScyllaDB, a Cassandra‑compatible NoSQL database, achieves over tenfold performance improvements through a thread‑per‑core design, asynchronous I/O, custom caching, self‑tuning schedulers, a user‑space TCP/IP stack, and LLVM‑JIT query execution, making it a compelling study for high‑performance database engineering.

Cache DesignDatabase PerformanceNoSQL
0 likes · 5 min read
ScyllaDB Architecture and Performance Optimizations: Design Insights
Meituan Technology Team
Meituan Technology Team
Nov 18, 2016 · Backend Development

Understanding the Disruptor: High‑Performance Java Queue and Its Implementation

The Disruptor library provides a lock‑free, CAS‑driven ring‑buffer queue that eliminates lock contention and false sharing, delivering 4–7× higher throughput and nanosecond‑level latency compared to Java’s built‑in queues, and is employed by systems such as Log4j 2, Apache Storm, and Meituan‑Dianping.

DisruptorJavaLock-Free
0 likes · 21 min read
Understanding the Disruptor: High‑Performance Java Queue and Its Implementation
ITFLY8 Architecture Home
ITFLY8 Architecture Home
Nov 16, 2016 · Operations

Calculate System Throughput: QPS, TPS, Concurrency & Response Time

This article explains key performance testing concepts such as system throughput, QPS/TPS, concurrency, response time, and their interrelationships, provides practical calculation examples, shows how daily PV relates to TPS for different platforms, and outlines essential metrics and formulas for evaluating software performance.

QPSResponse TimeThroughput
0 likes · 11 min read
Calculate System Throughput: QPS, TPS, Concurrency & Response Time
dbaplus Community
dbaplus Community
Nov 10, 2016 · Backend Development

Why Distributed Systems Are Essential for Scaling Modern Web Services

The article explains why distributed systems are fundamental for handling massive web traffic, detailing concepts such as high throughput, concurrency, low latency, load balancing, layered architectures, concurrency models, caching, NoSQL storage, fault tolerance, scaling, deployment, and monitoring, while highlighting practical techniques and challenges.

NoSQLconcurrencydistributed systems
0 likes · 23 min read
Why Distributed Systems Are Essential for Scaling Modern Web Services
ITPUB
ITPUB
Oct 17, 2016 · Databases

Why Some MySQL Inserts Are Blocked: Decoding Next‑Key Lock Ranges

This article examines MySQL InnoDB's next‑key lock behavior by creating a test table, running concurrent transactions, and analyzing how the lock range is determined across primary and secondary index columns, revealing why certain insert statements are blocked while others succeed.

Gap LockInnoDBMySQL
0 likes · 9 min read
Why Some MySQL Inserts Are Blocked: Decoding Next‑Key Lock Ranges
ITPUB
ITPUB
Oct 11, 2016 · Databases

How a Simple MySQL UPDATE Solved a Multi‑Threaded Counting Problem

A developer recounts how a seemingly trivial MySQL UPDATE statement—‘UPDATE table_name SET sum = sum + 5 WHERE id = 1’—proved thread‑safe for aggregating file counts across a multi‑threaded module, highlighting the importance of knowledge reserves and cautious evaluation before implementing complex synchronization solutions.

DatabaseMySQLSQL
0 likes · 5 min read
How a Simple MySQL UPDATE Solved a Multi‑Threaded Counting Problem
ITPUB
ITPUB
Sep 5, 2016 · Backend Development

Why a Barrier‑Based Config Swap Still Crashed: Uncovering a Shallow Copy Bug

A seemingly safe configuration swap using barriers caused a crash because a shallow copy duplicated resource pointers, leading to premature freeing of the active configuration; the article explains the bug, shows the faulty code, and presents a corrected approach.

BarrierC programmingbug fix
0 likes · 5 min read
Why a Barrier‑Based Config Swap Still Crashed: Uncovering a Shallow Copy Bug
ITPUB
ITPUB
Aug 31, 2016 · Databases

Lock‑Free Transactions and Cache Switching: MVCC Techniques for Key‑Value Stores

This article explains how traditional ACID transactions fall short for modern large‑scale systems and presents lock‑free transaction methods, atomic and partial cache‑switch techniques, and a PostgreSQL‑style MVCC model for key‑value databases, including practical rules and trade‑offs.

CacheDatabaseKey-Value
0 likes · 10 min read
Lock‑Free Transactions and Cache Switching: MVCC Techniques for Key‑Value Stores
Qunar Tech Salon
Qunar Tech Salon
Aug 3, 2016 · Backend Development

Optimizing Write‑Heavy High‑Concurrency Cache: Lock Granularity, Horizontal Sharding, and Lock‑Free Strategies

The article analyzes write‑mostly, read‑light cache scenarios such as driver location updates and counter increments, discusses lock bottlenecks, proposes horizontal sharding and per‑record locking, explores lock‑free approaches with data‑integrity signatures, and summarizes practical optimization techniques for high‑concurrency back‑end systems.

CacheLock-Freeconcurrency
0 likes · 8 min read
Optimizing Write‑Heavy High‑Concurrency Cache: Lock Granularity, Horizontal Sharding, and Lock‑Free Strategies
Architecture Digest
Architecture Digest
Jul 11, 2016 · Backend Development

Implementing a High‑Performance RPC Server with Netty in Java

This article explains the principles of RPC, evaluates performance‑critical factors such as I/O models and transport protocols, and provides a step‑by‑step guide to building a high‑throughput, Netty‑based RPC server in Java, including design, code structure, testing, and possible enhancements.

JavaNettyRPC
0 likes · 14 min read
Implementing a High‑Performance RPC Server with Netty in Java
Architect
Architect
Jun 14, 2016 · Backend Development

Custom Rejection Policies and Blocking Strategies for Java ThreadPoolExecutor

The article explains how to design a producer‑consumer model using Java's BlockingQueue, customize ThreadPoolExecutor's rejection policies—especially replacing the default AbortPolicy with a blocking strategy via a custom RejectedExecutionHandler—to safely handle full queues and improve concurrency control.

BlockingQueueJavaRejectedExecutionHandler
0 likes · 5 min read
Custom Rejection Policies and Blocking Strategies for Java ThreadPoolExecutor
Liulishuo Tech Team
Liulishuo Tech Team
Jun 3, 2016 · Backend Development

Understanding Ruby Multithreading and Multiprocessing

This article explains the differences between Ruby threads and processes, when to use each for performance gains, illustrates practical scenarios, and provides code examples for simple multithreading, multiprocessing, and using the Parallel gem.

GILParallelRuby
0 likes · 11 min read
Understanding Ruby Multithreading and Multiprocessing
dbaplus Community
dbaplus Community
May 31, 2016 · Backend Development

How High-Watermark Throttling Saves MySQL in Flash‑Sale Scenarios

The article explains MySQL high‑watermark throttling, a technique that limits concurrent updates on hot rows to protect database performance during extreme flash‑sale traffic, and demonstrates its effectiveness with real‑world Alibaba Cloud RDS metrics.

Alibaba Cloud RDSMySQLconcurrency
0 likes · 5 min read
How High-Watermark Throttling Saves MySQL in Flash‑Sale Scenarios
Qunar Tech Salon
Qunar Tech Salon
May 9, 2016 · Backend Development

Comprehensive Overview of Java Locks: Fair, Unfair, Spin, Reentrant, Biased, Lightweight, Heavyweight, and More

This article provides a detailed explanation of various Java lock mechanisms—including fair and unfair locks, spin locks, lock elimination, lock coarsening, reentrant, class and object locks, biased, lightweight, heavyweight, pessimistic and optimistic locks—as well as practical code examples and a lock state table to help developers understand concurrency control in the JVM.

JVMJavaLocks
0 likes · 16 min read
Comprehensive Overview of Java Locks: Fair, Unfair, Spin, Reentrant, Biased, Lightweight, Heavyweight, and More
Qunar Tech Salon
Qunar Tech Salon
May 4, 2016 · Backend Development

Proactive Cache Refresh Strategies for Memcached to Prevent Cache Stampede

This article examines various techniques for proactively refreshing Memcached entries before they expire, including dual‑key schemes, timestamp‑based checks, and lock‑based updates, and presents a preferred Java implementation that minimizes cache‑stampede and reduces memory overhead.

Cache invalidationJavaMemcached
0 likes · 7 min read
Proactive Cache Refresh Strategies for Memcached to Prevent Cache Stampede
ITPUB
ITPUB
Apr 26, 2016 · Databases

Why Deleting a Single Row by Unique Index Can Still Cause MySQL Deadlocks

This article analyzes a puzzling MySQL deadlock scenario where concurrent DELETE statements on a uniquely indexed row lead to a deadlock, explaining the lock modes, InnoDB's deadlock‑prevention strategy, and the conditions that make such deadlocks possible.

DeadlockInnoDBMySQL
0 likes · 13 min read
Why Deleting a Single Row by Unique Index Can Still Cause MySQL Deadlocks
21CTO
21CTO
Apr 23, 2016 · Databases

Mastering Transaction Isolation Levels in MySQL: From Theory to Practice

This article explains the ACID fundamentals, common concurrency anomalies such as dirty, non‑repeatable and phantom reads, the four SQL‑standard isolation levels, how MySQL implements them, and step‑by‑step command‑line tests demonstrating their effects on real transactions.

ACIDMySQLTransaction Isolation
0 likes · 10 min read
Mastering Transaction Isolation Levels in MySQL: From Theory to Practice
ITPUB
ITPUB
Apr 6, 2016 · Fundamentals

Why Python Multithreading Struggles and When to Switch to Multiprocessing

This article explains the purpose of Python’s Global Interpreter Lock, how it limits multithreaded performance on multi‑core CPUs, distinguishes CPU‑bound versus I/O‑bound scenarios, and shows why multiprocessing is usually the preferred solution for parallel execution.

GILconcurrencymultiprocessing
0 likes · 6 min read
Why Python Multithreading Struggles and When to Switch to Multiprocessing
DevOps
DevOps
Apr 3, 2016 · Fundamentals

The Life of a Thread: A Narrative on Thread Pools, Locks, and Deadlocks

A metaphorical story follows a newly created thread as it learns about extracting request parameters, performing login, handling CPU scheduling, using caches, encountering deadlocks, and ultimately witnessing a system reboot, illustrating core concepts of multithreading, concurrency control, and thread‑pool lifecycle.

CPU schedulingDeadlockLocks
0 likes · 12 min read
The Life of a Thread: A Narrative on Thread Pools, Locks, and Deadlocks
High Availability Architecture
High Availability Architecture
Mar 30, 2016 · Backend Development

Lessons Learned from Building Teamwork Desk Services with Go

This article shares practical lessons and common pitfalls encountered while developing numerous Go‑based microservices for Teamwork Desk, covering topics such as framework choices, panic handling, request body reuse, SQL handling, pointer usage, naked returns, variable shadowing, concurrent map access, and vendoring best practices.

backendbest-practicesconcurrency
0 likes · 15 min read
Lessons Learned from Building Teamwork Desk Services with Go
21CTO
21CTO
Mar 23, 2016 · Backend Development

Mastering PHP Concurrency: From Fork Processes to Swoole’s Async IO

This article explains the evolution of concurrent I/O in PHP—from traditional multi‑process and multi‑thread blocking models, through the leader‑follower pattern and I/O multiplexing with epoll, to modern asynchronous programming using the Reactor model, coroutines, and the high‑performance Swoole extension.

Async IOReactorbackend-development
0 likes · 17 min read
Mastering PHP Concurrency: From Fork Processes to Swoole’s Async IO
ITPUB
ITPUB
Mar 21, 2016 · Backend Development

How to Build a Delayed Queue with Java and Redis for High‑Concurrency Scenarios

This article explores two practical approaches to implementing a delayed queue—using a sorted‑queue with JDK's DelayQueue logic and a Redis‑based solution with ordered sets and Spring Scheduled—to handle high‑throughput order processing while discussing their trade‑offs and implementation details.

Javaconcurrencydelay queue
0 likes · 5 min read
How to Build a Delayed Queue with Java and Redis for High‑Concurrency Scenarios

Changes in InnoDB Auto‑Increment Locking Mechanism After MySQL 5.1.22 and Configuration Options

The article explains how InnoDB’s auto‑increment handling changed after MySQL 5.1.22—from using a table lock to a lightweight mutex for predictable‑row inserts—and details the three innodb_autoinc_lock_mode settings, their impact on concurrency and replication, and related pitfalls such as non‑sequential IDs.

InnoDBMySQLauto_increment
0 likes · 4 min read
Changes in InnoDB Auto‑Increment Locking Mechanism After MySQL 5.1.22 and Configuration Options
High Availability Architecture
High Availability Architecture
Mar 2, 2016 · Fundamentals

Understanding Concurrency: Threads, Goroutine, Actor Model, and Thread‑Pool Strategies

This article explores the fundamentals of concurrency versus parallelism, the challenges of writing correct concurrent programs, the evolution from OS threads to green threads, Goroutine scheduling, actor‑model concepts, and modern strategies such as thread pools, async callbacks, and Rust's ownership model.

Parallelismactor-modelconcurrency
0 likes · 20 min read
Understanding Concurrency: Threads, Goroutine, Actor Model, and Thread‑Pool Strategies
Architecture Digest
Architecture Digest
Feb 26, 2016 · Backend Development

Comprehensive Guide to Java Concurrency: Concepts, Synchronization, Thread Pools, and the Java Memory Model

This article provides an extensive overview of Java concurrency, covering synchronous vs asynchronous calls, critical sections, blocking and non‑blocking behavior, deadlock, starvation, livelock, concurrency levels, the Java Memory Model, atomicity, visibility, ordering, thread lifecycle, synchronization mechanisms, thread pools, and related utilities.

JavaThreadPoolconcurrency
0 likes · 39 min read
Comprehensive Guide to Java Concurrency: Concepts, Synchronization, Thread Pools, and the Java Memory Model
ITPUB
ITPUB
Feb 19, 2016 · Backend Development

Rethinking 12306 Ticketing: A Domain‑Driven Design Model for High‑Concurrency Reservations

This article analyzes the unique complexities of China's 12306 train ticketing system, proposes a domain‑driven aggregate model centered on train trips, explains seat‑allocation rules and overlapping interval handling, and outlines a CQRS and event‑sourcing architecture to achieve strong consistency and high concurrency.

CQRSDomain-Driven DesignSoftware Architecture
0 likes · 25 min read
Rethinking 12306 Ticketing: A Domain‑Driven Design Model for High‑Concurrency Reservations
Architect
Architect
Feb 6, 2016 · Databases

Introduction to InnoDB Transaction Lock System

This article provides a comprehensive overview of InnoDB's transaction lock mechanisms, covering row‑level lock types, table‑level locks, lock management procedures, deadlock detection, and practical examples, all based on MySQL 5.7.10.

Database InternalsInnoDBMySQL
0 likes · 30 min read
Introduction to InnoDB Transaction Lock System