Tagged articles
31 articles
Page 1 of 1
Code Wrench
Code Wrench
Jan 17, 2026 · Backend Development

Building a Go-Powered Industrial Scheduling System with FSM, Saga, and WAL

This article demonstrates how to design and implement a miniature yet fully functional industrial intelligent scheduling system in Go, leveraging a workflow engine, priority queue, saga‑based transactions with FSM state management, concurrent station execution, and write‑ahead logging for reliable, real‑time factory automation.

FSMGoWAL
0 likes · 9 min read
Building a Go-Powered Industrial Scheduling System with FSM, Saga, and WAL
FunTester
FunTester
Dec 23, 2025 · Backend Development

Mastering Delayed, Priority, and Retry Tasks with River – A Go Queue Deep Dive

This article explains how River, a Go job‑queue library, implements delayed execution, priority handling, exponential‑backoff retries, batch inserts, monitoring, and best‑practice patterns, and compares it with other queue solutions to help developers build reliable, high‑performance background processing pipelines.

Batch ProcessingGoRiver
0 likes · 14 min read
Mastering Delayed, Priority, and Retry Tasks with River – A Go Queue Deep Dive
Wu Shixiong's Large Model Academy
Wu Shixiong's Large Model Academy
Oct 22, 2023 · Fundamentals

Merge Multiple Sorted Linked Lists Efficiently with a Min‑Heap

This article explains how to merge multiple sorted linked lists (or arrays) into a single ascending list using a min‑heap priority queue, presents two Python solutions—one converting arrays to linked lists and another operating directly on arrays—along with detailed code, example, and complexity analysis.

algorithmk-way mergelinked list
0 likes · 9 min read
Merge Multiple Sorted Linked Lists Efficiently with a Min‑Heap
Su San Talks Tech
Su San Talks Tech
Oct 17, 2023 · Databases

Why MySQL LIMIT + ORDER BY Returns Unexpected Rows – Priority Queue Threshold

This article investigates the nondeterministic behavior of MySQL when combining ORDER BY with LIMIT, reproduces the official example, identifies a critical row count threshold where the optimizer switches to a priority‑queue (heap) sort, and explains the underlying source‑code logic and its impact on query results.

Optimizer_traceOrder Byheap sort
0 likes · 19 min read
Why MySQL LIMIT + ORDER BY Returns Unexpected Rows – Priority Queue Threshold
Spring Full-Stack Practical Cases
Spring Full-Stack Practical Cases
Sep 30, 2023 · Backend Development

Mastering RabbitMQ Delayed and Priority Queues with Spring Boot

This guide explains how to implement delayed and priority queues in RabbitMQ 3.8 using Spring Boot 2.6, covering dead‑letter exchange configuration, message expiration, priority settings, code examples for sending and consuming messages, and practical considerations such as priority limits and ordering behavior.

JavaMessage QueueRabbitMQ
0 likes · 8 min read
Mastering RabbitMQ Delayed and Priority Queues with Spring Boot
dbaplus Community
dbaplus Community
Mar 11, 2023 · Databases

Optimizing Distributed Database Sorting with Proxy Buffers and Priority Queues

This article examines the architecture of distributed databases, identifies the challenges of global sorting across shards, and presents both in‑memory and disk‑based proxy sorting solutions, detailing buffer configuration, merge‑sort and priority‑queue techniques, performance trade‑offs, and practical constraints for large‑scale queries.

Proxydistributed databasesexternal merge
0 likes · 10 min read
Optimizing Distributed Database Sorting with Proxy Buffers and Priority Queues
JD Tech
JD Tech
Feb 23, 2023 · Backend Development

Comprehensive Guide to Scheduling Tasks: Algorithms, Java Implementations, and Distributed Solutions

This article provides an in‑depth overview of scheduled task processing, covering common business scenarios, fundamental principles, single‑machine algorithms such as min‑heap and time‑wheel, Java utilities like Timer, DelayQueue, ScheduledExecutorService, Spring Task, Quartz, and distributed approaches using Redis, Elastic‑Job, and XXL‑Job.

Distributed SystemsTime Wheelcron
0 likes · 22 min read
Comprehensive Guide to Scheduling Tasks: Algorithms, Java Implementations, and Distributed Solutions
ITPUB
ITPUB
Feb 21, 2023 · Databases

How MySQL Implements File Sorting: Internals, Modes, and Optimizations

This article explains MySQL's file‑sort mechanism in depth, covering the sort buffer, handling of long sort keys, three sort modes, priority‑queue and read‑rnd‑buffer optimizations, internal vs. external sorting, descending sort implementation, and how to inspect details with optimizer trace.

Optimizer_traceexternal sortingfilesort
0 likes · 32 min read
How MySQL Implements File Sorting: Internals, Modes, and Optimizations
ITPUB
ITPUB
Oct 12, 2022 · Databases

Optimizing Distributed Database Sorting: In-Memory Merge to Disk Buffering

This article examines the challenges of sorting queries in distributed databases, outlines the limitations of in‑memory proxy sorting, and presents a step‑by‑step optimized approach that leverages per‑shard sorting, disk‑based buffering, and priority‑queue merging to reduce memory pressure and I/O overhead.

disk bufferingpriority-queueproxy merge
0 likes · 12 min read
Optimizing Distributed Database Sorting: In-Memory Merge to Disk Buffering
Laravel Tech Community
Laravel Tech Community
Aug 23, 2022 · Backend Development

Implementing Priority Queues with RabbitMQ in PHP

This article explains how to configure RabbitMQ queue priority, defines reusable PHP base, service, and client classes, and demonstrates running the code to send and consume prioritized messages using the PhpAmqpLib library.

Backend DevelopmentMessage QueuePHP
0 likes · 3 min read
Implementing Priority Queues with RabbitMQ in PHP
IT Architects Alliance
IT Architects Alliance
Jun 13, 2022 · Backend Development

Understanding Message Queues (MQ): Concepts, Benefits, Common Implementations, and Advanced RabbitMQ Features

This article explains what a Message Queue (MQ) is, why it is used for traffic shaping, system decoupling, and asynchronous processing, reviews popular MQ products such as Kafka, ActiveMQ, RocketMQ and RabbitMQ, and details RabbitMQ's core concepts and advanced features like dead‑letter, delayed, idempotent, priority, and lazy queues.

Dead Letter QueueKafkaRabbitMQ
0 likes · 13 min read
Understanding Message Queues (MQ): Concepts, Benefits, Common Implementations, and Advanced RabbitMQ Features
Tencent Qidian Tech Team
Tencent Qidian Tech Team
Dec 2, 2021 · Backend Development

How a Priority‑Queue Scheduler Supercharged Client Performance

This article examines client‑side performance bottlenecks caused by message overload, analyzes low‑level Windows message loops and async task queues, proposes a flexible priority‑queue scheduling framework, details its architecture, evaluation metrics, and demonstrates significant UI responsiveness improvements while outlining future enhancements.

client performancepriority-queueresource allocation
0 likes · 16 min read
How a Priority‑Queue Scheduler Supercharged Client Performance
ITPUB
ITPUB
Aug 19, 2021 · Databases

Why Does MySQL LIMIT with ORDER BY Return Duplicate Rows on Page 2?

When using MySQL pagination with LIMIT together with ORDER BY, the second page can unexpectedly contain rows from the first page because MySQL 5.6's priority‑queue optimization performs an unstable heap sort, causing nondeterministic ordering for equal values and leading to duplicate results.

LIMITOrder Bydatabase
0 likes · 7 min read
Why Does MySQL LIMIT with ORDER BY Return Duplicate Rows on Page 2?
DeWu Technology
DeWu Technology
Jun 12, 2021 · Backend Development

Design and Optimization of a High‑Throughput Messaging Platform

To handle exploding daily traffic, the team rebuilt the messaging platform with a unified API, concurrent consumption, MongoDB storage, and a priority scheme that uses separate Kafka topics and adjustable pull ratios, while employing a state‑machine‑driven thread pool, multi‑tier delay mechanisms, and MongoDB/Redis‑based fatigue control, delivering fast, traceable, hierarchical urgent delivery with visual metrics and content safety.

KafkaMessagingdelay queue
0 likes · 5 min read
Design and Optimization of a High‑Throughput Messaging Platform
政采云技术
政采云技术
Jan 12, 2021 · Fundamentals

Understanding Priority Queues and Binary Heaps with React Source Code

This article explains the concept of priority queues, compares various implementations including binary heaps, demonstrates insertion and deletion operations with detailed code examples from React's SchedulerMinHeap, and discusses extensions to d‑ary heaps for performance‑critical scenarios.

Reactbinary heapd-ary heap
0 likes · 15 min read
Understanding Priority Queues and Binary Heaps with React Source Code
WeDoctor Frontend Technology
WeDoctor Frontend Technology
Dec 8, 2020 · Frontend Development

How React’s Fiber Scheduler Breaks Down Tasks for Smooth Rendering

This article explains React 16’s new Fiber architecture and its cooperative scheduling algorithm, showing how large diff tasks are split into small asynchronous units using priority queues and min‑heap structures, with code examples, performance visuals, and insights into real‑time and delayed task handling.

FiberHeapReact
0 likes · 20 min read
How React’s Fiber Scheduler Breaks Down Tasks for Smooth Rendering
ITPUB
ITPUB
Sep 14, 2020 · Big Data

How Alibaba’s DChain Data Converger Auto‑Generates Real‑Time Wide Tables with SQL Pipelines

This article explains how the ADC (Alibaba DChain Data Converger) project automatically creates large real‑time tables by letting users configure metrics on the front‑end, then generating and publishing SQL through a pipeline that leverages design patterns, priority queues, and tree‑based data structures for efficient cross‑database processing.

Design PatternsFlinkReal-time analytics
0 likes · 15 min read
How Alibaba’s DChain Data Converger Auto‑Generates Real‑Time Wide Tables with SQL Pipelines
Alibaba Cloud Developer
Alibaba Cloud Developer
Sep 7, 2020 · Big Data

How Alibaba’s ADC Project Automates Real‑Time SQL Generation with Design Patterns and Priority Queues

This article explains how the Alibaba DChain Data Converger (ADC) automatically creates wide‑table SQL for real‑time cross‑database analytics by using a pipeline architecture, priority‑queue‑driven task scheduling, and specific design patterns to handle metadata, joins, and resource management.

Big DataSQL generationpriority-queue
0 likes · 13 min read
How Alibaba’s ADC Project Automates Real‑Time SQL Generation with Design Patterns and Priority Queues
Python Programming Learning Circle
Python Programming Learning Circle
Apr 22, 2020 · Fundamentals

Implementing a Priority Queue in Python Using heapq

This article explains how to implement a priority queue in Python using the built‑in heapq module, demonstrates extracting smallest and largest elements from price lists, and provides a full PriorityQueue class with push, pop, and is_empty methods, illustrated with stock portfolio examples.

Pythonalgorithmheapq
0 likes · 6 min read
Implementing a Priority Queue in Python Using heapq
Java Captain
Java Captain
Jan 5, 2019 · Fundamentals

Implementing Stack, Queue, and Priority Queue in Java

This article explains the core concepts of stacks, queues, and priority queues, discusses their time complexities, and provides complete Java implementations using arrays, including methods for insertion, removal, peeking, and display, along with a circular array queue example.

JavaQueueStack
0 likes · 8 min read
Implementing Stack, Queue, and Priority Queue in Java
Programmer DD
Programmer DD
Jan 4, 2019 · Fundamentals

How to Build an O(log n) Priority Queue with a Binary Heap in JavaScript

This article explains the concept of a priority queue, presents a interview‑style problem requiring O(log n) enqueue and dequeue operations, and shows how to implement the solution efficiently using a binary heap with detailed step‑by‑step illustrations and a complete JavaScript code example.

Data StructuresO(log n)algorithm
0 likes · 8 min read
How to Build an O(log n) Priority Queue with a Binary Heap in JavaScript