Tagged articles
13 articles
Page 1 of 1
Su San Talks Tech
Su San Talks Tech
Nov 2, 2025 · Backend Development

Why Timing Wheels Revolutionize High‑Performance Task Scheduling

This article explains the limitations of traditional timer solutions, introduces the timing‑wheel concept inspired by clocks, details its core design principles, algorithmic steps, data structures, and a complete Spring Boot implementation, showing how it achieves O(1) scheduling and superior throughput in large‑scale backend systems.

Spring Bootbackend algorithmhigh performance
0 likes · 14 min read
Why Timing Wheels Revolutionize High‑Performance Task Scheduling
Code Wrench
Code Wrench
Sep 6, 2025 · Backend Development

Mastering High-Performance Timers: Heap vs Timing Wheel in Go and C#

This article explains the core principles of timers, compares heap‑based and timing‑wheel algorithms, analyzes Go's built‑in timer implementation versus C#'s approach, and provides practical optimization techniques for high‑concurrency, high‑precision scenarios.

GoHeapc++
0 likes · 10 min read
Mastering High-Performance Timers: Heap vs Timing Wheel in Go and C#
Radish, Keep Going!
Radish, Keep Going!
Jan 14, 2025 · Backend Development

How to Detect Inactive Uber Drivers Without Third‑Party Tools: Go Time‑Wheel Solution

This article explores multiple in‑memory strategies—using a simple map with timers, per‑driver goroutine management, and especially a Go‑implemented timing wheel—to identify Uber drivers who haven’t reported for ten minutes, comparing their complexities, memory usage, and suitability for large‑scale systems.

GoHeartbeatIn-Memory
0 likes · 12 min read
How to Detect Inactive Uber Drivers Without Third‑Party Tools: Go Time‑Wheel Solution
Code Ape Tech Column
Code Ape Tech Column
Aug 2, 2023 · Backend Development

Implementing Timed Tasks in RPC Using a Timing Wheel

This article explains how to use a timing wheel to efficiently handle RPC timeout processing, startup timeouts, and heartbeat tasks, reducing thread proliferation and CPU waste by organizing timed tasks into hierarchical time slots.

BackendRPCTimeout
0 likes · 10 min read
Implementing Timed Tasks in RPC Using a Timing Wheel
Code Ape Tech Column
Code Ape Tech Column
Jun 30, 2022 · Backend Development

Implementing a Timing Wheel for RPC Timeout and Heartbeat Tasks

This article explains the problems caused by naive timer implementations in high‑concurrency RPC frameworks and introduces the timing‑wheel mechanism, illustrating its principles, multi‑level design, and practical applications such as request timeout, startup timeout, and heartbeat handling.

HeartbeatRPCtiming wheel
0 likes · 12 min read
Implementing a Timing Wheel for RPC Timeout and Heartbeat Tasks
Ziru Technology
Ziru Technology
Apr 1, 2022 · Fundamentals

How Kafka’s Hierarchical Timing Wheel Optimizes Task Scheduling

This article explains the time‑wheel algorithm, from its basic circular‑buffer principle to simple, round‑based, and hierarchical variants, and shows how Kafka implements a multi‑level timing wheel to achieve efficient, low‑memory delayed task execution.

Kafkabackend algorithmshierarchical timer
0 likes · 13 min read
How Kafka’s Hierarchical Timing Wheel Optimizes Task Scheduling
IT Architects Alliance
IT Architects Alliance
Jan 10, 2022 · Fundamentals

Kafka Timing Wheel Algorithm: Design, Multi‑Level Wheels, and DelayQueue Integration

The article explains how Kafka implements delayed operations using a timing wheel with O(1) insertion and deletion, describes its parameters, multi‑level wheel design for large time spans, and the mechanism of advancing the wheel via DelayQueue and the ExpiredOperationReaper, contrasting it with Netty's approach.

BackendDistributed Systemsalgorithm
0 likes · 8 min read
Kafka Timing Wheel Algorithm: Design, Multi‑Level Wheels, and DelayQueue Integration
Programmer DD
Programmer DD
Dec 2, 2020 · Backend Development

How Kafka Uses a Timing Wheel for Efficient Timeout Handling

Kafka handles many requests that require asynchronous processing or waiting for conditions by attaching a timeout parameter; if the condition isn’t met within the timeout, Kafka returns a timeout response, and it implements this efficiently using a hierarchical Timing Wheel data structure that offers O(1) insertion and fast expiration checks.

BackendKafkaScala
0 likes · 12 min read
How Kafka Uses a Timing Wheel for Efficient Timeout Handling
Architecture Digest
Architecture Digest
Oct 22, 2020 · Backend Development

Kafka Timing Wheel: Design, Operation, and Code Walkthrough

The article explains how Kafka handles timeout‑based requests using a Timing Wheel data structure, detailing its design, parameters, operation principles, overflow handling, and providing Scala code examples that illustrate O(1) task insertion compared to traditional O(logN) delay queues.

Data StructuresKafkaScala
0 likes · 10 min read
Kafka Timing Wheel: Design, Operation, and Code Walkthrough
JavaEdge
JavaEdge
Oct 14, 2020 · Backend Development

How Dubbo Implements Efficient Timers with a Hashed Timing Wheel

This article explains the need for high‑performance scheduling in Java, introduces the hashed timing wheel algorithm, and details Dubbo's implementation—including core interfaces, data structures, worker logic, and practical use cases such as retries and heartbeat handling.

BackendDubboHashedWheelTimer
0 likes · 11 min read
How Dubbo Implements Efficient Timers with a Hashed Timing Wheel
JD Tech
JD Tech
Sep 4, 2018 · Backend Development

Design and Evolution of an Order Dispatch System for Instant Delivery Platforms

This article describes the evolution, architectural design, and key implementation details of an order dispatch system for instant‑delivery services, covering problem analysis, delay‑task mechanisms such as database polling, DelayQueue and TimingWheel, and the final solution that combines Redis with a timing‑wheel scheduler and asynchronous processing.

Kafkadelay queueinstant delivery
0 likes · 11 min read
Design and Evolution of an Order Dispatch System for Instant Delivery Platforms
Dada Group Technology
Dada Group Technology
Aug 31, 2018 · Backend Development

Design and Evolution of an Order Dispatch System for Instant Delivery Platforms

This article describes the end‑to‑end evolution of a large‑scale order dispatch architecture, covering the shift from simple pool display to algorithmic assignment using data mining, genetic algorithms, timing‑wheel scheduling, and a Redis‑backed implementation to improve delivery efficiency and rider experience.

Backend Architectureinstant deliveryorder dispatch
0 likes · 11 min read
Design and Evolution of an Order Dispatch System for Instant Delivery Platforms