Tagged articles
ringbuffer
13 articles · Page 1 of 1
This article details local order book maintenance covering incremental WebSocket depth updates, REST snapshot alignment, price quantization to integers, and compares BTreeMap, sorted Vec, flat arrays with bitmap indexing, and RingBuffer implementations with benchmark results on Apple M4 Pro showing array-based structures achieve 4-5ns updates vs 34ns for BTreeMap.
Incremental Syncbitmap-indexingbtreemap
0 likes · 39 min read

This article details a production-ready QPS monitoring implementation for Spring Boot using sliding window algorithm with RingBuffer and LongAdder for high-concurrency safety, integrated with Micrometer for metrics exposure, covering algorithm design, code implementation, performance optimization, and distributed monitoring strategies.
Distributed MonitoringLongAdderMicrometer
0 likes · 19 min read

This article presents a detailed case study of a severe service outage caused by Log4j2 asynchronous logging bottlenecks, explains step‑by‑step diagnostics of JVM, disk, and RingBuffer metrics, and demonstrates how adjusting log4j2.asyncQueueFullPolicy and log4j2.discardThreshold dramatically improves recovery time during load testing.
ConfigurationJavaLog4j2
0 likes · 14 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 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

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 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 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 guide explains how to integrate the Java‑based Snowflake UIDGenerator into a Spring Boot 2.3 application, covering algorithm fundamentals, RingBuffer optimization, database setup, Maven dependencies, configuration beans, and a test case to generate high‑throughput unique IDs.
JavaUID generatordistributed systems
0 likes · 9 min read

This comprehensive article provides an in-depth analysis of how Linux kernel sends network packets, covering the complete process from user-space send() call through protocol stack processing to hardware transmission, with detailed source code examination and performance considerations.
DMAPacket TransmissionPerformance Monitoring
0 likes · 28 min read

This article describes how to implement a low‑overhead SQL audit feature for the Cobar database middleware by modifying its code, using an agent with Kafka, choosing UDP for inter‑process communication, and designing a custom ring‑buffer to achieve near‑baseline throughput with only minimal performance loss.
CobarJavaSQL Auditing
0 likes · 11 min read

This article explains how the Disruptor library implements lock‑free, bounded queues using a ring‑buffer, cache‑line padding and CAS operations, compares single‑ and multi‑producer sequencers, and provides practical Java code examples for building ultra‑low‑latency producer‑consumer pipelines.
High performance queueJava ConcurrencyMulti-producer
0 likes · 30 min read
