Tagged articles
2072 articles
Page 3 of 21
dbaplus Community
dbaplus Community
Jul 29, 2025 · Backend Development

9 Proven Techniques to Supercharge Service Performance in Backend Systems

Learn nine practical methods—caching, parallel processing, batch handling, compression, lock‑free design, sequential writes, sharding, pooling, and asynchronous execution—to dramatically improve backend service latency and throughput, illustrated with Redis, MySQL, Kafka, and Go examples, and backed by real‑world performance gains.

cachingconcurrencyperformance
0 likes · 29 min read
9 Proven Techniques to Supercharge Service Performance in Backend Systems
Architect's Guide
Architect's Guide
Jul 24, 2025 · Backend Development

7 Proven Strategies to Prevent Overselling in High‑Concurrency Flash Sales (SpringBoot)

This article explores high‑concurrency flash‑sale scenarios, demonstrates why naïve @Transactional and lock usage can still cause overselling, and presents seven concrete implementations—including improved lock, AOP lock, two pessimistic‑lock variants, optimistic lock, a blocking queue, and a Disruptor queue—complete with SpringBoot code, JMeter testing results, and performance analysis.

Distributed SystemsSpringBootconcurrency
0 likes · 23 min read
7 Proven Strategies to Prevent Overselling in High‑Concurrency Flash Sales (SpringBoot)
Cognitive Technology Team
Cognitive Technology Team
Jul 21, 2025 · Fundamentals

Java Happens‑Before Explained: Volatile, Synchronized & Instruction Reordering

This article explains Java’s happens‑before guarantees, covering instruction reordering, the visibility guarantees of volatile variables and synchronized blocks, and demonstrates how improper reordering can cause stale data or wasted resources through detailed code examples such as FrameExchanger and ValueExchanger.

Instruction ReorderingJavaconcurrency
0 likes · 17 min read
Java Happens‑Before Explained: Volatile, Synchronized & Instruction Reordering
Cognitive Technology Team
Cognitive Technology Team
Jul 20, 2025 · Fundamentals

Unlock Java’s Memory Model: How Threads See Shared Data

This article explains the Java Memory Model, how the JVM organizes memory into thread stacks and heap, how threads interact with shared variables, the impact of hardware memory architecture, and practical techniques like volatile and synchronized to ensure visibility and avoid race conditions.

JavaMemory ModelSynchronization
0 likes · 14 min read
Unlock Java’s Memory Model: How Threads See Shared Data
JavaScript
JavaScript
Jul 18, 2025 · Frontend Development

Why Does async/await Appear to Block Page Rendering? The Real Reason Explained

This article explains why using async/await inside a loop can make a page seem frozen, clarifies that await itself does not block the main thread, and shows how to replace serial awaits with Promise.all and other concurrency tools for truly non‑blocking UI updates.

JavaScriptPromiseasync/await
0 likes · 8 min read
Why Does async/await Appear to Block Page Rendering? The Real Reason Explained
FunTester
FunTester
Jul 15, 2025 · Backend Development

How to Use JMH for Precise Java Microbenchmarking and Performance Optimization

This article explains microbenchmarking concepts, demonstrates how to use the Java Microbenchmark Harness (JMH) to accurately measure and compare the performance of specific code snippets such as synchronized methods, and provides practical guidance for integrating JMH into Java projects for reliable performance testing and regression analysis.

JMHJavaMicrobenchmarking
0 likes · 11 min read
How to Use JMH for Precise Java Microbenchmarking and Performance Optimization
Su San Talks Tech
Su San Talks Tech
Jul 15, 2025 · Databases

Unlock MySQL Performance: 8 Lock Types, Deadlock Solutions, and Optimization Tips

This article explains MySQL's eight lock mechanisms, their purposes and classifications, demonstrates row‑level, gap, next‑key, table and metadata locks with code examples, discusses deadlock scenarios and detection, and provides practical monitoring and optimization strategies to improve concurrency and reliability.

Database OptimizationIsolation Levelsconcurrency
0 likes · 10 min read
Unlock MySQL Performance: 8 Lock Types, Deadlock Solutions, and Optimization Tips
FunTester
FunTester
Jul 13, 2025 · Backend Development

Master Go Concurrency: Goroutines, Channels, and Real-World Examples

Learn how Go’s built‑in concurrency model using goroutines and channels can transform sequential code into responsive, high‑performance applications, with clear explanations of concurrency vs parallelism, practical code samples, synchronization techniques, and best practices for building scalable web servers.

ChannelGoroutineParallelism
0 likes · 10 min read
Master Go Concurrency: Goroutines, Channels, and Real-World Examples
Programmer Null's Self-Cultivation
Programmer Null's Self-Cultivation
Jul 13, 2025 · Backend Development

Unlocking the Secrets of Java’s ConcurrentHashMap: From JDK 7 to JDK 8

This article provides a comprehensive, step‑by‑step analysis of Java's ConcurrentHashMap, covering its evolution from JDK 7’s segment‑lock design to JDK 8’s bucket‑level CAS and synchronized approach, complete with macro diagrams, microscopic source‑code walkthroughs, hash calculations, resizing mechanisms, and practical usage tips.

ConcurrentHashMapHashMapJDK7
0 likes · 16 min read
Unlocking the Secrets of Java’s ConcurrentHashMap: From JDK 7 to JDK 8
Cognitive Technology Team
Cognitive Technology Team
Jul 12, 2025 · Backend Development

Mastering Apache HttpClient Connection Pool: Limits, Pitfalls, and Optimization

This article explores Apache HttpClient’s connection pool mechanism, detailing key parameters such as maxConnTotal, maxConnPerRoute, and timeToLive, explains how connections are allocated and reused, highlights common misconfigurations, and provides best‑practice tuning recommendations for high‑concurrency Java applications.

Apache HttpClientConnection PoolJava
0 likes · 9 min read
Mastering Apache HttpClient Connection Pool: Limits, Pitfalls, and Optimization
Lin is Dream
Lin is Dream
Jul 10, 2025 · Fundamentals

Understanding Sync, Async, Blocking, and Non‑Blocking: A Clear Guide

This article demystifies the four core concurrency concepts—synchronous, asynchronous, blocking, and non‑blocking—explaining their meanings, relationships, and practical implications with clear examples and a comparison table, helping developers choose the right model for high‑performance, scalable systems.

AsynchronousBlockingNon-blocking
0 likes · 7 min read
Understanding Sync, Async, Blocking, and Non‑Blocking: A Clear Guide
The Dominant Programmer
The Dominant Programmer
Jul 9, 2025 · Fundamentals

Understanding Java Memory Model (JMM): Core Concepts and Guarantees

This article explains the Java Memory Model (JMM), detailing its purpose, the distinction from JVM memory structure, the eight memory interaction operations, the happens‑before principle, memory barriers, and common pitfalls such as double‑checked locking and visibility bugs, with concrete code examples.

Happens-beforeJMMJava
0 likes · 12 min read
Understanding Java Memory Model (JMM): Core Concepts and Guarantees
The Dominant Programmer
The Dominant Programmer
Jul 9, 2025 · Fundamentals

Mastering Java Thread Communication: volatile, synchronized, wait/notify, and Piped Streams

This article explains how Java threads interact using volatile for visibility, synchronized blocks for mutual exclusion, wait/notify (and Condition) for coordination, piped streams for one‑way byte communication, as well as Thread.join and ThreadLocal utilities, providing concrete code examples, best‑practice guidelines, and performance considerations.

JavaPipedStreamThreadLocal
0 likes · 23 min read
Mastering Java Thread Communication: volatile, synchronized, wait/notify, and Piped Streams
Top Architect
Top Architect
Jul 8, 2025 · Backend Development

How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal

This article explains how to protect time‑consuming business operations using a Redis‑based distributed lock implemented with a custom annotation, Spring AOP interception, automatic lock renewal via a scheduled executor, and proper lock release, ensuring data consistency across concurrent requests.

aopconcurrencydistributed-lock
0 likes · 14 min read
How to Build a Robust Redis Distributed Lock with AOP and Auto‑Renewal
Tech Freedom Circle
Tech Freedom Circle
Jul 8, 2025 · Backend Development

How to Diagnose and Prevent Java Deadlocks (Alibaba & Other Big‑Company Interviews)

This article explains what a deadlock is, the four necessary conditions that cause it, demonstrates classic synchronized‑based and Lock‑based deadlock examples in Java, shows how to detect deadlocks with tools such as Arthas, jstack, jvisualvm and JMC, and provides practical strategies—including lock ordering, timeout locks, and two‑phase locking—to break each condition and avoid deadlocks in production code.

ArthasJavaLock
0 likes · 24 min read
How to Diagnose and Prevent Java Deadlocks (Alibaba & Other Big‑Company Interviews)
Java Backend Technology
Java Backend Technology
Jul 8, 2025 · Backend Development

ThreadLocal vs ScopedValue: Why ScopedValue Is the New King in Java Concurrency

ThreadLocal has long served as Java’s go‑to tool for thread‑local data, but its memory‑leak risks and performance penalties become pronounced with virtual threads, while the newer ScopedValue offers automatic cleanup, immutable safety, and superior efficiency, making it a compelling replacement in high‑concurrency scenarios.

ScopedValueThreadLocalVirtual Threads
0 likes · 12 min read
ThreadLocal vs ScopedValue: Why ScopedValue Is the New King in Java Concurrency
Lobster Programming
Lobster Programming
Jul 7, 2025 · Backend Development

Boost Order Processing Speed with Segmented Locks and Redis

This article explains how to use segmented (sharded) locks and Redis‑based routing strategies to parallelize inventory deduction and order creation, dramatically increasing orders processed per second while maintaining atomicity and fault tolerance.

concurrencydistributed-lockorder processing
0 likes · 7 min read
Boost Order Processing Speed with Segmented Locks and Redis
JakartaEE China Community
JakartaEE China Community
Jul 7, 2025 · Backend Development

Key Updates in Jakarta EE 11

Jakarta EE 11 adds record support in persistence and validation, maps java.time types, deprecates legacy date APIs, enables CDI injection for EntityManager, introduces virtual‑thread support, expands query syntax, allows Java‑based persistence unit configuration, and removes several outdated specifications such as SOAP with Attachments, XML Binding, CORBA, ManagedBean, and SecurityManager dependencies.

EnterpriseJavaPersistence
0 likes · 3 min read
Key Updates in Jakarta EE 11
Su San Talks Tech
Su San Talks Tech
Jul 6, 2025 · Backend Development

Mastering Disruptor: High‑Performance In‑Memory Queue for Low‑Latency Java Apps

This article introduces the Disruptor in‑memory message queue—its architecture, core concepts such as Ring Buffer, Sequence, Sequencer and Wait Strategies, key features like multicast and gating, tuning options for producers and wait strategies, and provides a complete Java example to help developers build ultra‑low‑latency systems.

DisruptorIn-Memory QueueJava
0 likes · 10 min read
Mastering Disruptor: High‑Performance In‑Memory Queue for Low‑Latency Java Apps
Architect
Architect
Jul 5, 2025 · Backend Development

Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java

Learn how to design and implement a Redis-based distributed lock in Java using custom annotations, AOP interception, and a scheduled executor to automatically extend lock expiration, ensuring safe concurrent access to critical resources while handling timeouts, retries, and thread interruptions.

Javaaopconcurrency
0 likes · 12 min read
Implementing a Robust Redis Distributed Lock with AOP and Auto-Extension in Java
21CTO
21CTO
Jul 4, 2025 · Fundamentals

Why Rust Is Revolutionizing Industrial Automation: Speed, Safety, and Scalability

This article explains how Rust’s high performance, strict memory safety, and modern concurrency model are reshaping industrial automation—from embedded controllers and IoT devices to robotics—by eliminating common C/C++ bugs, improving reliability, and enabling scalable, secure systems.

IoTRoboticsRust
0 likes · 8 min read
Why Rust Is Revolutionizing Industrial Automation: Speed, Safety, and Scalability
FunTester
FunTester
Jul 1, 2025 · Backend Development

How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies

This article explains why using Thread.sleep() in Java ExecutorService unit tests is unreliable and inefficient, and introduces three robust alternatives—Future.get(), CountDownLatch, and shutdown/awaitTermination—to ensure stable, performant testing of asynchronous WebSocket query scenarios.

CountDownLatchExecutorServiceFuture
0 likes · 13 min read
How to Test Java ExecutorService Without Thread.sleep(): Reliable Strategies
Architect
Architect
Jun 30, 2025 · Backend Development

Boost Java Performance: 12 Proven Techniques for Faster, Scalable Backend Systems

This article presents twelve practical strategies for optimizing Java backend performance—including parallel processing with CompletableFuture, minimizing transaction scope, effective caching, proper thread‑pool configuration, service warm‑up, cache‑line alignment, reducing object creation, asynchronous execution, loop optimization, shrinking network payloads, and decreasing inter‑service dependencies—each illustrated with code examples and benchmark results.

AsyncJavaMicroservices
0 likes · 33 min read
Boost Java Performance: 12 Proven Techniques for Faster, Scalable Backend Systems
IT Services Circle
IT Services Circle
Jun 30, 2025 · Backend Development

What Makes Java Interviews Tough? A Deep Dive into Concurrency, JVM, MySQL, and More

This article analyzes 58.com’s recent business struggles and layoffs, then presents a comprehensive set of Java interview questions covering synchronized vs. Lock, JVM memory layout, garbage collection, TCP connection teardown, MySQL indexing pitfalls, and common sorting algorithms, providing detailed explanations and code examples.

JVMJavaNetworking
0 likes · 18 min read
What Makes Java Interviews Tough? A Deep Dive into Concurrency, JVM, MySQL, and More
JD Cloud Developers
JD Cloud Developers
Jun 30, 2025 · Backend Development

Unveiling Guava Cache Internals: Why It Lags Behind Caffeine

This article dissects Guava Cache's source code, explaining its segment‑based locking, data structures, put/get implementations, cleanup and eviction mechanisms, and then contrasts its performance and design choices with the more modern Caffeine cache, highlighting why Guava falls short.

CacheCaffeineGuava
0 likes · 39 min read
Unveiling Guava Cache Internals: Why It Lags Behind Caffeine
JakartaEE China Community
JakartaEE China Community
Jun 30, 2025 · Backend Development

7 Key Features Introduced in Jakarta EE 10

Jakarta EE 10, now governed by the Eclipse Foundation, brings vendor‑neutral APIs and seven notable enhancements—including managed executor definitions, a new @Asynchronous annotation, multipart/form‑data support, OpenID authentication, UUID primary keys, expanded numeric and date‑time functions, and a pure‑Java view for Jakarta Faces—while inviting community contributions for its upcoming final release.

Jakarta EE 10Java EEOpenID
0 likes · 10 min read
7 Key Features Introduced in Jakarta EE 10
Architect's Guide
Architect's Guide
Jun 27, 2025 · Backend Development

Demystifying Java Locks: From Pessimistic vs Optimistic to ReentrantLock Internals

This article explains the classification of Java locks—including pessimistic, optimistic, fair, and unfair variants—details their state transitions from biased to heavyweight, and walks through the source code of ReentrantLock and Condition to illustrate how synchronization, queuing, and thread parking are implemented in the JVM.

AQSConditionLocks
0 likes · 20 min read
Demystifying Java Locks: From Pessimistic vs Optimistic to ReentrantLock Internals
21CTO
21CTO
Jun 19, 2025 · Backend Development

Why Go (Golang) Dominates 2025 Backend Development: Speed, Concurrency & Real‑World Success

Go, created by Google in 2007 and open‑sourced in 2009, has become a top choice for modern backend and cloud‑native development thanks to its simple syntax, powerful built‑in concurrency, fast native compilation, low memory usage, and widespread adoption by companies like Google, Uber, Netflix, Docker, and Kubernetes.

Cloud NativeDockerGo
0 likes · 26 min read
Why Go (Golang) Dominates 2025 Backend Development: Speed, Concurrency & Real‑World Success
php Courses
php Courses
Jun 19, 2025 · Backend Development

Unlock Go’s High‑Performance Secrets: Scheduler, GC, and Memory Model Explained

This article delves into Go’s runtime, explaining the Goroutine scheduler’s G‑P‑M model and work‑stealing, the concurrent tri‑color garbage collector with its phases and tuning flags, the memory allocation hierarchy and escape analysis, and practical tips for high‑performance Go applications.

Garbage CollectionGoMemory Model
0 likes · 6 min read
Unlock Go’s High‑Performance Secrets: Scheduler, GC, and Memory Model Explained
JakartaEE China Community
JakartaEE China Community
Jun 16, 2025 · Backend Development

What New Features Does Jakarta EE 10 Introduce?

Jakarta EE 10 requires Java 11 (with optional Java 17 support) and brings a mix of minor and major updates across dozens of specifications, including new versions of Authentication, Concurrency, CDI, EL, JSON Binding, Security, Server Faces, Standard Tag Library, SOAP with Attachments, XML Binding, and a streamlined Core Profile for microservices.

AuthenticationCDIExpression Language
0 likes · 9 min read
What New Features Does Jakarta EE 10 Introduce?
Java Architect Essentials
Java Architect Essentials
Jun 14, 2025 · Backend Development

Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It

This article explains why MyBatis's default StdOutImpl logging, which relies on System.out.println, blocks threads and creates severe concurrency bottlenecks, and demonstrates how to replace it with asynchronous logging implementations like Slf4jImpl, configure log levels, and even create custom Log classes for optimal performance.

JavaMyBatisconcurrency
0 likes · 8 min read
Why System.out.println() Can Kill Your MyBatis Performance and How to Fix It
Java Backend Technology
Java Backend Technology
Jun 12, 2025 · Backend Development

Why Debugging a Simple ConcurrentLinkedQueue Can Crash Your Java Program

A seemingly trivial Java program that uses ConcurrentLinkedQueue runs fine normally, but throws a NullPointerException when debugged in IntelliJ IDEA because the IDE silently invokes toString, which mutates internal state, revealing hidden pitfalls of debugging and IDE configurations.

ConcurrentLinkedQueueDebuggingIntelliJ IDEA
0 likes · 10 min read
Why Debugging a Simple ConcurrentLinkedQueue Can Crash Your Java Program
BirdNest Tech Talk
BirdNest Tech Talk
Jun 11, 2025 · Backend Development

How Go’s New synctest Feature Eliminates Flaky Concurrent Tests

This article explains why Go tests that rely on goroutine scheduling are flaky, demonstrates the problem with concrete code examples, and shows how the experimental synctest feature provides deterministic execution by controlling synthetic time, coordinating goroutine lifecycles, and offering a reliable Wait primitive.

Goconcurrencydeterministic
0 likes · 12 min read
How Go’s New synctest Feature Eliminates Flaky Concurrent Tests
Java Captain
Java Captain
Jun 10, 2025 · Fundamentals

Understanding Java Monitors: How Thread Synchronization Works

Java monitors provide a mechanism for thread synchronization by associating each object with a monitor lock, comprising an entry list, owner thread, and wait set, and the article explains their structure, thread state transitions, and demonstrates usage with a practical code example.

JavaMonitorSynchronization
0 likes · 6 min read
Understanding Java Monitors: How Thread Synchronization Works
php Courses
php Courses
Jun 10, 2025 · Backend Development

Unlock Go’s Power: Master the Most Essential Standard Library Packages

This guide walks through Go’s most powerful standard library packages—fmt, net/http, sync, encoding/json, context, os/io, testing, time, sort, and reflect—showing practical code examples, advanced tips, and best‑practice recommendations to boost development efficiency and write professional Go code.

GoJSONStandard Library
0 likes · 20 min read
Unlock Go’s Power: Master the Most Essential Standard Library Packages
Architect's Guide
Architect's Guide
Jun 9, 2025 · Fundamentals

Why 65,535 Isn’t the True Limit for TCP Connections on Linux Servers

The article explains that the 65,535 limit refers only to available port numbers, while actual TCP concurrency on Linux depends on the 4‑tuple identification, memory, file‑descriptor limits, and port reuse, allowing servers to handle far more connections than the port count suggests.

NetworkingSocketTCP
0 likes · 12 min read
Why 65,535 Isn’t the True Limit for TCP Connections on Linux Servers
Java Architect Essentials
Java Architect Essentials
Jun 6, 2025 · Fundamentals

Unlocking Java Thread Pools: How ThreadPoolExecutor Works Under the Hood

This article demystifies Java's ThreadPoolExecutor, explaining why thread pools improve performance, detailing their design analogy to factories, exploring constructors, task queues, rejection policies, worker lifecycle, and practical usage examples, while also covering initialization, shutdown, and dynamic resizing techniques for robust backend development.

Backend DevelopmentThreadPoolExecutorconcurrency
0 likes · 35 min read
Unlocking Java Thread Pools: How ThreadPoolExecutor Works Under the Hood
Zhuanzhuan Tech
Zhuanzhuan Tech
Jun 4, 2025 · Backend Development

A Comprehensive Guide to Redisson Distributed Locks in Java

This article explains Redisson's various distributed lock mechanisms—including watchdog, reentrant lock, multi‑lock, read‑write lock, semaphore, RedLock, and CountDownLatch—detailing their principles, usage patterns, code examples, and best‑practice recommendations for robust backend concurrency control.

Distributed LocksJavaconcurrency
0 likes · 16 min read
A Comprehensive Guide to Redisson Distributed Locks in Java
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Jun 4, 2025 · Backend Development

Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization

This article explains Java's lock mechanisms—including synchronized, ReentrantLock, and their JVM implementations—covers lock classifications, memory barriers, CAS, and compares them with Kotlin coroutine synchronization tools like Mutex, providing code examples and practical guidance for safe concurrent programming.

CoroutinesJVMJava
0 likes · 22 min read
Understanding Java Locks, synchronized, ReentrantLock, and Kotlin Coroutine Synchronization
Code Mala Tang
Code Mala Tang
May 31, 2025 · Backend Development

How to Overcome FastAPI’s CPU‑Bound Bottlenecks: Practical Parallelism Strategies

This article explains why FastAPI struggles with CPU‑intensive tasks due to Python’s Global Interpreter Lock, describes the types of workloads affected, and provides concrete solutions such as background task queues, microservices, ProcessPoolExecutor, and C/C++ extensions to keep APIs responsive and scalable.

AsynchronousCPU BoundFastAPI
0 likes · 8 min read
How to Overcome FastAPI’s CPU‑Bound Bottlenecks: Practical Parallelism Strategies
AndroidPub
AndroidPub
May 29, 2025 · Mobile Development

Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android

This article highlights five common Kotlin coroutine pitfalls for Android developers—directly calling suspend functions in Views, misusing GlobalScope, sequential network calls, improper exception handling, and ignoring cancellation—while providing correct implementations and best‑practice guidelines to avoid them.

AndroidCoroutinesLifecycle
0 likes · 10 min read
Avoid These 5 Dangerous Kotlin Coroutine Pitfalls in Android
Architect's Guide
Architect's Guide
May 27, 2025 · Backend Development

Understanding CopyOnWrite (COW) Concept and Its Implementation in Java

The article explains the CopyOnWrite (COW) concept, its read‑write separation benefits for thread‑safe, read‑heavy scenarios, key implementation details in Java’s CopyOnWriteArrayList—including volatile and transient usage—and discusses its memory overhead and eventual‑consistency drawbacks.

CopyOnWriteDataStructureJava
0 likes · 5 min read
Understanding CopyOnWrite (COW) Concept and Its Implementation in Java
FunTester
FunTester
May 26, 2025 · Backend Development

Thread‑Safe Round Robin Load Balancer Using Java AtomicInteger

This article explains how to implement a thread‑safe round‑robin load balancer in Java using AtomicInteger, discusses its advantages and limitations, provides sample code for single‑thread and multithreaded scenarios, and suggests further optimizations such as health checks, weighted routing, and dynamic server updates.

AtomicIntegerBackendJava
0 likes · 11 min read
Thread‑Safe Round Robin Load Balancer Using Java AtomicInteger
FunTester
FunTester
May 24, 2025 · Backend Development

How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive

This article presents advanced WebSocket testing techniques—including asynchronous connection creation, result statistics, price verification, latency measurement, TPS modeling—and demonstrates a Netty‑WebSocket subscription test for 10,000 users plus Java‑ and Netty‑based keepalive implementations for high‑concurrency scenarios.

JavaKeepaliveNetty
0 likes · 7 min read
How to Stress-Test Netty WebSocket for 10,000 Subscriptions and Keepalive
Didi Tech
Didi Tech
May 22, 2025 · Backend Development

Why Go Services Must Be Optimized and How to Make Them Faster

Optimizing Go services is essential for saving resources, improving stability, and delivering a responsive user experience, and this guide explains the underlying mechanisms, common pitfalls, and practical techniques—from GC tuning and concurrency control to I/O tricks and profiling tools—to help developers build high‑performance, production‑ready Go applications.

BackendGoMemory
0 likes · 33 min read
Why Go Services Must Be Optimized and How to Make Them Faster
Java Captain
Java Captain
May 21, 2025 · Fundamentals

Understanding Java Thread States and Their Transitions with Example Code

This article explains the six Java thread states defined in java.lang.Thread.State, describes the meaning of each state, illustrates the possible state transitions, and provides three runnable code examples that demonstrate NEW, RUNNABLE, BLOCKED, WAITING, TIMED_WAITING and TERMINATED states along with their console outputs.

JavaThreadThreadState
0 likes · 11 min read
Understanding Java Thread States and Their Transitions with Example Code
Deepin Linux
Deepin Linux
May 20, 2025 · Fundamentals

Understanding and Preventing Deadlocks in C++ Multithreaded Programming

This article explains what deadlocks are in C++ multithreaded programming, outlines their causes and four necessary conditions, presents common scenarios and code examples, and offers practical strategies such as consistent lock ordering, std::lock, std::scoped_lock, recursive mutexes, and lock hierarchies to avoid them.

C++Lockconcurrency
0 likes · 20 min read
Understanding and Preventing Deadlocks in C++ Multithreaded Programming
JD Cloud Developers
JD Cloud Developers
May 19, 2025 · Backend Development

Unlocking Java’s ConcurrentHashMap: Inside Constructors, Put, and Resizing

This article provides a thorough, English‑language walkthrough of Java 8+ ConcurrentHashMap’s source code, covering its constructor logic, load‑factor handling, CAS‑based insertion, node optimizations, the put method, element‑count updates, multi‑threaded resizing, treeification, and auxiliary operations such as get, remove, and computeIfAbsent.

ConcurrentHashMapData StructuresJava
0 likes · 42 min read
Unlocking Java’s ConcurrentHashMap: Inside Constructors, Put, and Resizing
JavaScript
JavaScript
May 19, 2025 · Frontend Development

Mastering Promise Concurrency: Alternatives to Promise.all in JavaScript

While Promise.all is a common way to run multiple promises concurrently, it fails when any promise rejects and offers no control over the number of simultaneous executions; this article explores its limitations and presents elegant alternatives such as Promise.allSettled, simple queue implementations, and libraries like p-limit for effective concurrency management.

JavaScriptPromisePromise.allSettled
0 likes · 3 min read
Mastering Promise Concurrency: Alternatives to Promise.all in JavaScript
Cognitive Technology Team
Cognitive Technology Team
May 16, 2025 · Fundamentals

Why Java Switched HashMap Insertion to Tail and How It Affects Concurrency

This article examines the evolution of Java's HashMap from head‑insertion in JDK 1.7 to tail‑insertion in JDK 1.8, explains how the change eliminates circular‑list deadlocks during concurrent resizing, discusses remaining concurrency pitfalls such as red‑black tree conversion, and offers best‑practice solutions like using ConcurrentHashMap and proper initial capacity settings.

Data StructuresHashMapJDK
0 likes · 10 min read
Why Java Switched HashMap Insertion to Tail and How It Affects Concurrency
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
May 15, 2025 · Fundamentals

Mastering Thread‑Safe Classes in Java: 6 Proven Design Strategies

This article explains what makes a class thread‑safe in Java, illustrates common race‑condition pitfalls with sample code, and presents six practical design strategies—including stateless, immutable, synchronized, volatile, concurrent collections, thread‑confinement, and defensive copying—to help developers build robust, high‑performance concurrent applications.

Design PatternsImmutableJava
0 likes · 11 min read
Mastering Thread‑Safe Classes in Java: 6 Proven Design Strategies
Java Captain
Java Captain
May 12, 2025 · Fundamentals

Understanding Java Thread Pools: Design, Implementation, and Usage

This article explains the purpose, advantages, design principles, configuration parameters, task queue options, rejection policies, lifecycle management, and internal execution flow of Java's ThreadPoolExecutor, providing code examples and detailed insights into how thread pools work in concurrent applications.

ExecutorJavaThreadPool
0 likes · 30 min read
Understanding Java Thread Pools: Design, Implementation, and Usage
IT Services Circle
IT Services Circle
May 10, 2025 · Backend Development

Understanding Java synchronized: Locks, Optimizations, and Example Code

This article explains how Java's synchronized keyword works, covering object and class locks, lock upgrades such as biased, lightweight, and heavyweight locks, the underlying monitor implementation, example code for a thread‑safe counter, and performance considerations for high‑concurrency scenarios.

Javaconcurrencylocking
0 likes · 7 min read
Understanding Java synchronized: Locks, Optimizations, and Example Code
Raymond Ops
Raymond Ops
May 8, 2025 · Backend Development

Mastering Go Concurrency: Goroutines, Channels, and Synchronization Explained

This article provides a comprehensive guide to Go's concurrency model, covering goroutine creation, the scheduler, synchronization primitives such as WaitGroup, atomic operations, mutexes, and both unbuffered and buffered channels, with practical code examples and explanations of race conditions and best practices.

ChannelsGoGoroutine
0 likes · 25 min read
Mastering Go Concurrency: Goroutines, Channels, and Synchronization Explained
Ma Wei Says
Ma Wei Says
May 8, 2025 · Backend Development

Mastering Java ThreadPoolExecutor: Prevent OOM and Boost Concurrency

This article explains the fundamentals of Java threads and thread pools, details the configurable parameters of ThreadPoolExecutor, highlights the pitfalls of the Executors factory methods, and provides concrete recommendations and code examples for safely tuning thread pools across different workload types.

JavaThreadPoolThreadPoolExecutor
0 likes · 14 min read
Mastering Java ThreadPoolExecutor: Prevent OOM and Boost Concurrency
Sohu Tech Products
Sohu Tech Products
May 7, 2025 · Backend Development

Master Java Concurrency: Fork/Join, CountDownLatch, CyclicBarrier, Semaphore & Exchanger Deep Dive

This article provides a comprehensive guide to Java's core concurrency utilities—including Fork/Join, CountDownLatch, CyclicBarrier, Semaphore, and Exchanger—explaining their principles, internal AQS implementation, practical usage patterns, performance optimizations, and complete code examples for real‑world scenarios.

CountDownLatchCyclicBarrierExchanger
0 likes · 25 min read
Master Java Concurrency: Fork/Join, CountDownLatch, CyclicBarrier, Semaphore & Exchanger Deep Dive
Architect's Must-Have
Architect's Must-Have
May 7, 2025 · Backend Development

How ReentrantLock Works: Inside Java’s AbstractQueuedSynchronizer

This article dissects Java’s ReentrantLock implementation, detailing its delegation to AbstractQueuedSynchronizer, the lock acquisition process, the role of non‑fair and fair sync subclasses, the internal CLH queue mechanics, and how unlocking is handled, while comparing Lock with synchronized.

AbstractQueuedSynchronizerJavaLock
0 likes · 14 min read
How ReentrantLock Works: Inside Java’s AbstractQueuedSynchronizer
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 6, 2025 · Backend Development

Understanding Java CyclicBarrier with Practical Examples

This article explains Java's CyclicBarrier synchronization tool, compares it with CountDownLatch, demonstrates basic and array‑sum examples with reusable barriers and callback actions, and shows how it can coordinate multiple threads for tasks such as parallel computation and result aggregation.

CyclicBarrierJavaSynchronization
0 likes · 6 min read
Understanding Java CyclicBarrier with Practical Examples
Cognitive Technology Team
Cognitive Technology Team
May 6, 2025 · Backend Development

Understanding Java's AbstractQueuedSynchronizer (AQS): Core Components, Design, and Practical Applications

AbstractQueuedSynchronizer (AQS) is the core framework for building Java locks and synchronizers, providing state management, FIFO queuing, and blocking/unblocking mechanisms; this article explains its components, design patterns, thread safety operations, and real-world implementations such as ReentrantLock and Semaphore, with code examples.

AQSJavaLocks
0 likes · 11 min read
Understanding Java's AbstractQueuedSynchronizer (AQS): Core Components, Design, and Practical Applications
Deepin Linux
Deepin Linux
May 6, 2025 · Fundamentals

Understanding Processes and Threads: Concepts, Differences, and When to Use Them

This article explains the fundamental concepts of processes and threads, their relationship, resource allocation, scheduling, communication methods, practical use cases, and interview preparation tips, helping readers choose between multiprocessing and multithreading for various scenarios.

Threadconcurrencymultiprocessing
0 likes · 22 min read
Understanding Processes and Threads: Concepts, Differences, and When to Use Them
Full-Stack Internet Architecture
Full-Stack Internet Architecture
May 5, 2025 · Backend Development

Using CountDownLatch in Java to Synchronize Multiple Threads for a Lucky Card Collection Example

This article explains the Java CountDownLatch utility, demonstrates its countdown synchronization mechanism with a lucky‑card‑collection scenario, provides a complete runnable example, and shows how the main thread waits for all worker threads to finish before proceeding to the lottery step.

CountDownLatchJavaSynchronization
0 likes · 5 min read
Using CountDownLatch in Java to Synchronize Multiple Threads for a Lucky Card Collection Example
Cognitive Technology Team
Cognitive Technology Team
May 5, 2025 · Fundamentals

Evolution of Java ConcurrentHashMap: From Segment Locks to CAS + synchronized (Java 7 vs Java 8)

This article examines the evolution of Java's ConcurrentHashMap, comparing the segment‑lock implementation in Java 7 with the CAS‑plus‑synchronized, bucket‑level locking and red‑black tree enhancements introduced in Java 8, covering lock mechanisms, data structures, resizing strategies, core operations, performance and suitable use cases.

ConcurrentHashMapDataStructureJava
0 likes · 11 min read
Evolution of Java ConcurrentHashMap: From Segment Locks to CAS + synchronized (Java 7 vs Java 8)
Java Captain
Java Captain
May 4, 2025 · Backend Development

Understanding Java Counter Implementations: AtomicLong vs LongAdder

This article explains the principles, advantages, and drawbacks of Java's AtomicLong and LongAdder counters, describes the CAS operation and its ABA problem, and analyzes why Alibaba recommends LongAdder for high‑concurrency, high‑availability scenarios in distributed systems.

CASJavaatomiclong
0 likes · 7 min read
Understanding Java Counter Implementations: AtomicLong vs LongAdder
Cognitive Technology Team
Cognitive Technology Team
May 3, 2025 · Fundamentals

Understanding Java ThreadLocalMap: Structure, Operations, and Memory Management

This article explains the internal design of Java's ThreadLocalMap, covering its core Entry structure, hash table storage, linear probing for collision resolution, key operations (set, get, remove), memory‑leak scenarios, automatic cleanup mechanisms, and practical usage patterns such as thread‑context propagation and Android Looper.

JavaMemoryManagementThreadLocal
0 likes · 10 min read
Understanding Java ThreadLocalMap: Structure, Operations, and Memory Management
Cognitive Technology Team
Cognitive Technology Team
May 3, 2025 · Backend Development

Understanding ThreadLocal: Core Principles, Use Cases, Pitfalls, and Best Practices

ThreadLocal provides per‑thread variable storage to achieve thread isolation, improving concurrency performance, and is essential for safe data handling in Java, but improper use can cause memory leaks, data contamination, and other issues; this article explains its internal mechanism, common scenarios, pitfalls, and best‑practice guidelines with code examples.

JavaThreadLocalbest practices
0 likes · 19 min read
Understanding ThreadLocal: Core Principles, Use Cases, Pitfalls, and Best Practices
Deepin Linux
Deepin Linux
May 3, 2025 · Backend Development

Analyzing and Resolving Uninterruptible Thread States During System Suspend

This article examines why a thread may remain in an uninterruptible wake‑up state during system suspend, explains deadlock fundamentals, outlines thread lifecycle states, and provides practical debugging steps and mitigation strategies using Java concurrency tools and system monitoring.

JavaThreadconcurrency
0 likes · 23 min read
Analyzing and Resolving Uninterruptible Thread States During System Suspend
Architect
Architect
May 2, 2025 · Backend Development

Understanding and Implementing LMAX Disruptor in Java

This article introduces the high‑performance LMAX Disruptor library, explains its core concepts such as Ring Buffer, Sequence, Sequencer, and Wait Strategy, and provides a step‑by‑step Java demo with complete code to build a producer‑consumer message queue.

Backend DevelopmentDisruptorJava
0 likes · 11 min read
Understanding and Implementing LMAX Disruptor in Java
Cognitive Technology Team
Cognitive Technology Team
May 1, 2025 · Backend Development

10 Tips and Tricks for Using ExecutorService in Java

This article presents ten practical tips for Java developers on naming thread‑pool threads, dynamically changing thread names, safely shutting down executors, handling interruptions, bounding queue sizes, proper exception handling, monitoring wait times, preserving client stack traces, preferring CompletableFuture, and using SynchronousQueue with ThreadPoolExecutor.

ExecutorServiceJavaThreadPool
0 likes · 15 min read
10 Tips and Tricks for Using ExecutorService in Java
Sohu Tech Products
Sohu Tech Products
Apr 29, 2025 · Backend Development

Mastering Java Concurrency: Deep Dive into Threads, Locks, and AQS

This comprehensive guide explores Java multithreading fundamentals, covering thread creation, lifecycle, synchronization challenges, context switching costs, deadlock detection, various lock mechanisms such as synchronized, ReentrantLock, ReadWriteLock, and the underlying AbstractQueuedSynchronizer architecture with practical code examples and performance tips.

AQSConditionJava
0 likes · 42 min read
Mastering Java Concurrency: Deep Dive into Threads, Locks, and AQS
Cognitive Technology Team
Cognitive Technology Team
Apr 29, 2025 · Backend Development

Common CompletableFuture Pitfalls and Best Practices in Java

This article examines the powerful Java CompletableFuture class, identifies frequent misuse pitfalls such as ignored exceptions, wrong thread‑pool choices, blocking callbacks, context loss, and overly fragmented chains, and provides concrete avoidance strategies and best‑practice recommendations for robust asynchronous programming.

AsynchronousCompletableFutureException Handling
0 likes · 9 min read
Common CompletableFuture Pitfalls and Best Practices in Java
Selected Java Interview Questions
Selected Java Interview Questions
Apr 28, 2025 · Backend Development

Understanding Java Virtual Threads: Basics, Spring Boot Integration, and Performance Comparison

This article introduces Java 21's virtual threads, explains their lightweight and high‑concurrency advantages, demonstrates basic usage and Spring Boot integration with code examples, and compares their performance against traditional threads through practical experiments and additional optimization tips.

BackendSpring BootVirtual Threads
0 likes · 7 min read
Understanding Java Virtual Threads: Basics, Spring Boot Integration, and Performance Comparison
Architecture Digest
Architecture Digest
Apr 27, 2025 · Backend Development

Using Java 21 Virtual Threads in Spring Boot: Basics, Performance Comparison, and Best Practices

This article introduces Java 21 virtual threads, explains their lightweight and high‑concurrency advantages, demonstrates basic and delayed creation, shows how to enable them in Spring Boot with minimal configuration, compares performance against traditional threads, and provides additional Java performance optimization tips.

JavaJava 21Spring Boot
0 likes · 6 min read
Using Java 21 Virtual Threads in Spring Boot: Basics, Performance Comparison, and Best Practices
Java Captain
Java Captain
Apr 27, 2025 · Backend Development

Understanding Java Executors Thread Pools: newCachedThreadPool, newScheduledThreadPool, newSingleThreadExecutor, newWorkStealingPool, and newFixedThreadPool

This article explains the five main thread‑pool types provided by Java's Executors class, detailing their constructors, underlying queue implementations, and default thread‑count behaviors, and notes why the default pools may not suit everyday development needs.

ExecutorServiceExecutorsJava
0 likes · 4 min read
Understanding Java Executors Thread Pools: newCachedThreadPool, newScheduledThreadPool, newSingleThreadExecutor, newWorkStealingPool, and newFixedThreadPool
Java Backend Full-Stack
Java Backend Full-Stack
Apr 26, 2025 · Backend Development

Master ThreadLocal: Answer Interview Questions and Prevent OOM Leaks

This article explains ThreadLocal’s internal mechanism, why improper use can cause OutOfMemoryError in thread pools, demonstrates the issue with a Java example, and provides best‑practice guidance—especially calling remove()—to prevent memory leaks while preparing for interview questions.

JavaOutOfMemoryErrorThreadLocal
0 likes · 11 min read
Master ThreadLocal: Answer Interview Questions and Prevent OOM Leaks