Tagged articles
Disruptor
54 articles · Page 1 of 1
The article dissects how Disruptor’s ring‑buffer architecture outperforms traditional BlockingQueue by eliminating lock contention, dynamic allocation, and cache‑line interference through pre‑allocated zero‑copy buffers, CAS‑based sequencing, cache‑line padding, batch processing, and tailored wait strategies, achieving millions of TPS.
BlockingQueueCache line paddingDisruptor
0 likes · 13 min read

The article explains why traditional Java BlockingQueue struggles under high load, introduces the LMAX Disruptor’s lock‑free ring buffer design, compares performance showing up to 600 万+ events per second versus 100 万 for ArrayBlockingQueue, and provides step‑by‑step SpringBoot integration with code examples and best‑practice tips.
DisruptorJavaSpringBoot
0 likes · 17 min read

This article explains how to replace traditional message queues with LMAX Disruptor in a Spring Boot application, covering its core concepts, step‑by‑step implementation, and a demo that demonstrates lock‑free, high‑throughput processing capable of handling six million orders per second.
DisruptorJavaMessage Queue
0 likes · 10 min read

This article explains why Disruptor—a lock‑free, high‑throughput Java queue from LMAX—was chosen over traditional brokers, details its core concepts such as RingBuffer, Sequence, and WaitStrategy, and provides a step‑by‑step SpringBoot demo that can handle up to six million orders per second without pressure.
DisruptorJavaMessage Queue
0 likes · 13 min read

This article details a step‑by‑step performance overhaul for importing 60,000+ XML records into MySQL, covering baseline measurements, MySQL batch processing, asynchronous writes with Disruptor, XML parsing optimizations, and tuning MySQL buffers, ultimately reducing total runtime from 300 seconds to just four seconds.
DisruptorJavaMySQL
0 likes · 14 min read

This article introduces the high‑performance Disruptor library, explains its core concepts such as Ring Buffer, Sequence, and Wait Strategy, and provides a step‑by‑step Java demo—including Maven setup, event model, producer, consumer, and test—showcasing how to build a lock‑free in‑memory message queue.
Concurrent ProgrammingDisruptorJava
0 likes · 11 min read

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.
ConcurrencyDisruptorIn-Memory Queue
0 likes · 10 min read

This article walks through optimizing a 60,000‑row XML‑to‑MySQL import by profiling the environment, measuring baseline performance, and applying JDBC batch rewriting, write aggregation, and asynchronous writes with LMAX Disruptor, ultimately reducing execution time from 300 seconds to about four seconds while keeping memory usage reasonable.
DisruptorJDBCJava
0 likes · 15 min read

This article introduces the high‑performance Disruptor library, explains its core concepts such as Ring Buffer, Sequencer and Wait Strategies, and provides a step‑by‑step Java demo showing how to build a producer‑consumer queue without external brokers.
ConcurrencyDisruptorJava
0 likes · 11 min read

This article examines Log4j2 asynchronous logging bottlenecks, explains the underlying Disruptor queue mechanics, identifies root causes of thread blocking, and presents practical strategies—including queue tuning, log classification, bytecode instrumentation, and IDE plugins—to achieve fine‑grained, performant log control.
DisruptorIDE pluginLog4j2
0 likes · 12 min read

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.
ConcurrencyDisruptorJava
0 likes · 11 min read

This article details how to dramatically speed up importing over 60,000 XML records into MySQL by profiling the original 300‑second implementation, enabling JDBC batch writes, configuring MySQL rewriteBatchedStatements, and applying a Disruptor‑based multithreaded pipeline, ultimately achieving sub‑5‑second runtimes with modest memory usage.
BatchProcessingDisruptorJava
0 likes · 15 min read

This article introduces the high‑performance in‑memory queue Disruptor, covering its architecture—including ring buffer, sequence, sequencer, and wait strategies—its key features such as multicast events and lock‑free concurrency, and provides practical tuning advice and a complete Java example.
DisruptorIn-Memory QueuePerformance Tuning
0 likes · 12 min read

By switching from a naïve per‑record insert to JDBC batch writes with rewriteBatchedStatements and then off‑loading those batches to multiple consumer threads via a LMAX Disruptor ring buffer, the XML‑to‑MySQL import of 60,000 rows dropped from roughly 300 seconds to about 4 seconds while keeping memory usage modest.
DisruptorJDBCJava
0 likes · 11 min read

This article describes how to dramatically speed up the import of 60,000+ XML records into MySQL by analyzing the original environment, measuring baseline performance, and applying a series of backend optimizations—including MySQL batch mode, rewriteBatchedStatements, multithreaded asynchronous writes with Disruptor, and XML parsing improvements—ultimately cutting the total runtime from five minutes to just a few seconds.
DisruptorJavaMultithreading
0 likes · 14 min read

This article walks through a real‑world case of importing over 60,000 XML rows into MySQL, profiling the initial 300‑second runtime, and applying a series of optimizations—including JDBC batch processing, rewriteBatchedStatements, multithreaded asynchronous writes with Disruptor, and MySQL tuning—to achieve a final import time of around 4 seconds while managing memory usage.
DisruptorJavaMultithreading
0 likes · 13 min read

The article introduces LMAX Disruptor, a high‑performance, lock‑free in‑memory queue for the JVM, compares it with JDK thread‑safe queues, and demonstrates five practical usage scenarios—including broadcast, log collection, chain of responsibility, multi‑task coordination, and multi‑consumer groups—through detailed Java code examples.
DisruptorEvent ProcessingHigh performance queue
0 likes · 10 min read

This article introduces the Disruptor in‑memory message queue, explains its core components such as Ring Buffer, Sequence, Sequencer and Wait Strategies, describes its distinctive features like multicast events and lock‑free concurrency, and provides tuning guidelines and a complete Java example.
DisruptorIn-Memory QueueJava Concurrency
0 likes · 11 min read

This article introduces the Disruptor in‑memory message queue, explains its architecture and core concepts such as Ring Buffer, Sequence, Sequencer, and Wait Strategies, and provides tuning guidance and a complete Java example for building low‑latency concurrent systems.
ConcurrencyDisruptorIn-Memory Queue
0 likes · 11 min read

This article investigates why a large number of quality‑check mappings cause severe latency in a Java service, traces the slowdown to excessive asynchronous log printing, explains the Disruptor‑based async logger internals, evaluates stack‑trace location handling and JNI overhead, and proposes practical configuration and code‑level fixes.
DisruptorJNIJava
0 likes · 20 min read

The article investigates a severe performance bottleneck in a Java service caused by massive async Log4j2 logging, analyzes the Disruptor‑based async logger, explores JNI stack‑trace overhead, reproduces the issue with benchmarks, and provides practical recommendations to eliminate the slowdown.
DisruptorJNIJava
0 likes · 18 min read

This article analyzes why asynchronous Log4j2 logging becomes a performance bottleneck when handling massive mapping data, tracing the issue through Disruptor internals, stack‑trace location retrieval, and JNI calls, and proposes practical configuration and code adjustments to eliminate the slowdown.
DisruptorJNIJava
0 likes · 18 min read

This article details how a Java‑based XML‑to‑MySQL import of over 60,000 records was accelerated from 300 seconds to just 4 seconds by enabling JDBC batch processing, configuring rewriteBatchedStatements, and employing a multithreaded Disruptor pipeline for asynchronous writes, while also discussing further tuning options.
DisruptorJavaMySQL
0 likes · 11 min read

The article explains the Disruptor—an intra‑process, lock‑free, array‑based queue that achieves millions of operations per second—by covering its core concepts, demo code, source‑code mechanics, performance optimizations such as pre‑allocation and false‑sharing avoidance, and real‑world Vivo iTheme applications with best‑practice tips.
DisruptorJavaProducer-Consumer
0 likes · 29 min read

Disruptor is an open‑source, lock‑free Java framework that uses a ring‑buffer and sequencer to achieve ultra‑high‑throughput, handling millions of events per second, and is employed by projects like LMAX, Storm, Camel, and Log4j2, with detailed concepts, wait strategies, and usage examples.
ConcurrencyDisruptorJava
0 likes · 13 min read

This article introduces the open‑source Java library Disruptor, explains its core concepts such as RingBuffer, Sequence, and WaitStrategy, and provides a step‑by‑step demo with Maven dependency, event model, factory, handler, and a Spring‑Boot test illustrating high‑throughput producer‑consumer messaging.
DisruptorJavaProducer-Consumer
0 likes · 11 min read

This article introduces the LMAX Disruptor library, explains its core concepts such as RingBuffer, Sequencer and WaitStrategy, and provides a step‑by‑step Java demo—including Maven dependency, model, event factory, handler, manager, service and test code—to build a fast, lock‑free producer‑consumer queue.
ConcurrencyDisruptorJava
0 likes · 10 min read

This article walks through the background, core concepts, and a complete hands‑on demo of LMAX Disruptor, showing how to configure Maven, implement ring buffers, event factories, handlers, producers, and a test suite to achieve high‑throughput, lock‑free messaging in Java.
ConcurrencyDisruptorJava
0 likes · 13 min read

This article introduces the open‑source Disruptor library, explains its core concepts such as Ring Buffer, Sequence, Sequencer and Wait Strategy, and provides a step‑by‑step Java demo—including Maven dependency, event model, handlers, configuration, producer, and test code—to show how to build a fast in‑memory message queue.
ConcurrencyDisruptorJava
0 likes · 11 min read

This article introduces the open‑source Disruptor framework, explains its ring‑buffer architecture, sequencer, wait‑strategy options, and provides complete Java code examples to demonstrate how to build high‑performance producer‑consumer pipelines without locks.
ConcurrencyDisruptorJava
0 likes · 12 min read

This article introduces the high‑performance Java library Disruptor, explains its core concepts such as Ring Buffer, Sequence, and Wait Strategy, and provides a step‑by‑step demo with Maven configuration, code examples, and test results to help developers implement fast, lock‑free producer‑consumer queues.
ConcurrencyDisruptorJava
0 likes · 12 min read

This article introduces the open‑source Disruptor framework, explains its core concepts such as Ring Buffer, Sequencer, and Wait Strategies, and provides a step‑by‑step Java demo—including Maven setup, event factory, handlers, and a test case—to illustrate building a high‑throughput, low‑latency in‑memory message queue.
DisruptorJavaMessage Queue
0 likes · 11 min read

This article introduces the LMAX Disruptor library, explains its core concepts such as Ring Buffer, Sequencer and Wait Strategy, and provides a step‑by‑step Java demo with full source code to build a fast, lock‑free in‑memory message queue.
Concurrent ProgrammingDisruptorJava
0 likes · 13 min read

This article introduces the high‑performance Java Disruptor library, explains its core concepts such as Ring Buffer, Sequencer, and Wait Strategies, and provides a step‑by‑step Spring Boot demo with full code to build a lock‑free producer‑consumer message queue.
DisruptorJavahigh-performance
0 likes · 11 min read

This article examines the challenges of building a high‑performance log service for distributed systems, compares the traditional ELK stack with the Tianyan platform, details Tianyan's architecture—including ingest, storage, and consumer components, SDK and Minos collection methods, high‑throughput transmission with Disruptor and Bigpipe, log retrieval, resource isolation, dynamic cleaning, and best‑practice recommendations.
BigpipeDisruptorLogging
0 likes · 27 min read

This article analyzes the overselling problem in high‑concurrency flash‑sale scenarios, demonstrates seven concrete solutions—including improved locks, AOP locks, pessimistic and optimistic database locks, and queue‑based approaches using BlockingQueue and Disruptor—provides full SpringBoot code, JMeter test results, and practical recommendations for reliable stock reduction.
BackendConcurrencyDisruptor
0 likes · 19 min read

The article introduces the open‑source LMAX Disruptor, explains why it won the 2011 Duke's Choice Award, compares it with traditional JDK queues, details its core components such as Event, RingBuffer, Producer, and WaitStrategy, and provides a complete Java example that builds a producer‑consumer pipeline using Disruptor.
DisruptorHighPerformanceProducerConsumer
0 likes · 12 min read

This article introduces the Disruptor library, explains its core concepts such as Ring Buffer, Sequencer, and Wait Strategy, and provides a complete eight‑step Spring Boot example with code to create, publish, and consume high‑throughput messages in Java.
ConcurrencyDisruptorJava
0 likes · 12 min read

This article introduces Java's Disruptor framework as a high-performance, lock-free queue, explains its core components such as RingBuffer, Sequencer, and WaitStrategy, provides sample code for producers and consumers, and discusses how it avoids lock contention and false sharing.
ConcurrencyDisruptorJava
0 likes · 12 min read

This article introduces various Java queue implementations, explains the Disruptor framework’s architecture, demonstrates its usage with complete code examples, and analyzes core components such as RingBuffer, Sequencer, and WaitStrategy while addressing performance issues like false sharing and multi‑producer coordination.
DisruptorJavaconcurrent queue
0 likes · 12 min read

This article introduces the open‑source Disruptor library, explains its core concepts such as Ring Buffer, Sequencer, and Wait Strategy, and provides a step‑by‑step Java implementation—including Maven dependency, event model, factory, handler, manager, producer, and test code—demonstrating how to build a fast in‑memory message queue.
ConcurrencyDisruptorJava
0 likes · 10 min read

This article analyzes how replacing Java thread‑pool queues with the LMAX Disruptor framework dramatically improves CPU utilization, reduces tail latency, and lowers lock and CAS overhead, backed by detailed benchmarks, code examples, and real‑world deployment results from a high‑throughput feature service.
ConcurrencyDisruptorJava
0 likes · 20 min read

This article introduces the high‑performance Disruptor library, explains its background, core concepts such as RingBuffer, Sequence, Sequencer, and WaitStrategy, and provides a step‑by‑step Java implementation with Maven dependencies, event factories, handlers, producers, and a runnable test case.
ConcurrencyDisruptorHighPerformance
0 likes · 12 min read

This article introduces the high‑performance Disruptor library, explains its background, core concepts such as RingBuffer, Sequence, Sequencer, and WaitStrategy, and provides a complete Spring Boot‑based Java demo with code snippets illustrating producers, consumers, and configuration.
DisruptorJavaProducer-Consumer
0 likes · 12 min read

When using the Disruptor library for high‑throughput testing, the default FatalExceptionHandler can repeatedly abort consumer threads on exceptions, causing QPS to drop to zero, but replacing it with an ignore handler or a custom implementation restores stability.
@ExceptionHandlerBackendConcurrency
0 likes · 4 min read

When building a QPS performance testing model with Disruptor, the author discovered that using an excessive number of consumer threads can cause the shutdown method to fail, leaving threads alive, inflating CPU usage, and destabilizing test results.
ConcurrencyDisruptorJava
0 likes · 7 min read

This article presents a comprehensive performance comparison between LMAX Disruptor and Java's LinkedBlockingQueue, detailing test setups, producer and consumer configurations, various object sizes, benchmark results, and practical conclusions for high‑throughput backend systems.
BenchmarkDisruptorJava
0 likes · 26 min read

This article explains how to replace Java's LinkedBlockingQueue with the high‑throughput LMAX Disruptor library, covering dependency setup, event definition, Disruptor creation, producer and consumer implementations, handler configuration, startup/shutdown procedures, and provides both Java and Groovy demo code.
BackendConcurrencyDisruptor
0 likes · 8 min read

The 2017‑initiated vivo distributed tracing system leverages a JavaAgent‑based micro‑kernel architecture, using ByteBuddy for non‑intrusive bytecode instrumentation, a Disruptor lock‑free queue, and Kafka to capture Trace/Span data—including cross‑thread propagation—while employing sampling, degradation, and JVM metrics to ensure 94% adoption stability.
DisruptorDistributed TracingJavaAgent
0 likes · 23 min read


JavaEdgeOct 8, 2020 · Backend Development
This article explains how the Disruptor library attains true lock‑free performance through single‑threaded writes, the use of memory barriers (volatile and happens‑before semantics), cache‑line alignment to eliminate false sharing, and a sequence‑barrier algorithm, providing code examples and practical optimization tips.
DisruptorJava Concurrencyfalse sharing
0 likes · 5 min read

The article details JD's high‑performance Hotkey middleware, explaining its real‑time hot‑data detection architecture, the challenges faced during massive traffic spikes, and a series of systematic optimizations—including JDK upgrades, thread‑pool tuning, Disruptor replacement, and serialization changes—that enabled the system to scale from 20k to 350k queries per second while maintaining millisecond‑level latency.
DisruptorHotKeymiddleware
0 likes · 16 min read

An in‑depth performance comparison of Logback and Log4j2 shows how asynchronous logging and the Disruptor queue dramatically improve throughput, with benchmark data across various hardware, configuration tips, and a look at underlying queue implementations such as ArrayBlockingQueue versus Disruptor.
DisruptorLog4j2Logback
0 likes · 8 min read

This article explains how the Disruptor framework achieves ultra‑low latency and high throughput in Java by using a ring‑buffer based producer/consumer model, detailing its architecture, sequencing algorithm, wait strategies, and practical code examples for both publishing and processing events.
ConcurrencyDisruptorJava
0 likes · 16 min read

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.
ConcurrencyDisruptorJava
0 likes · 21 min read
