Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Topics Compilers & runtimes

Concurrency

Threads, async/await, locks, lock-free structures, actors.

Search within Concurrency, or combine it with other topics →

November 2026

October 2026

September 2026

August 2026

RocksDB Blog

Native Async/Coroutine Reads in RocksDB

Deep dive 10 min +100 XP

RocksDB 11.10.0 adds experimental native asynchronous Get/MultiGet APIs (callback-based GetAsync/MultiGetAsync and Folly-task-based CoroDB::CoGet/CoMultiGet) that suspend a read at the SST block-miss filesystem boundary and resume it on the same io_uring-backed EventBase thread, so a small read executor can sustain high storage queue depth without one parked thread per read.

July 2026

OLX Tech

Handling concurrency on the Web with Web Locks API

Case study 6 min +60 XP

OLX uses the browser's Web Locks API to stop multiple open tabs from each resuming the same large (up to 20GB) S3 upload after a restart. localStorage-plus-polling suffers from non-atomic writes and stale locks, and BroadcastChannel forces you to hand-roll a coordination protocol, whereas navigator.locks offers an atomic mutex that is released automatically when a tab closes or crashes.

June 2026

ClickHouse

Announcing Silk: a silky smooth fiber runtime for ClickHouse

Announcement 11 min +110 XP

Silk is a C++ stackful-fiber runtime for ClickHouse. It pins one scheduler thread per CPU, uses io_uring as its I/O foundation, steals work in order of CPU topology cost (hyperthread sibling, then same socket, then cross-socket), and does zero heap allocation in the steady-state hot path through mmap'd stack pools, stack-resident futures and intrusive containers.

May 2026

March 2026

ClickHouse

Designing the new async-native ClickHouse Python client

Deep dive 12 min +120 XP

The new async-native clickhouse-connect client replaces the legacy thread-pool wrapper with aiohttp for network I/O and a half-sync/half-async design: an async producer streams response chunks into a bounded queue (10 chunks of up to 1MB) while the existing synchronous Native-format parser consumes them in an executor thread, with the same queue reversed for inserts.

February 2026

ClickHouse

pg_stat_ch: a PostgreSQL extension that exports every metric to ClickHouse

Deep dive 16 min +160 XP

pg_stat_ch is an open-source (Apache 2.0) PostgreSQL 16–18 extension that captures every statement execution, including failed queries and DDL, as a fixed-size ~4.6KB event with 45 fields and streams it to ClickHouse for APM-style analysis.

January 2026

December 2025

November 2025

Upgrade to Puma 7 and Unlock the Power of Fair Scheduled Keep-alive

Deep dive 11 min +110 XP

Puma 6 and earlier let a single keep-alive connection monopolize a thread for up to 10 requests via the "fast inline" loop originally built for HTTP pipelining, so under overload about one in ten requests waited roughly 10x longer while later keep-alive requests cut the line.

October 2025

September 2025

August 2025

Evolving our real-time timeseries storage again: Built in Rust for performance at scale

Case study 21 min +210 XP

Datadog's sixth-generation real-time timeseries database (RTDB) is a Rust rewrite that unifies two earlier engines, one for scalar metrics and one for DDSketch distributions, after earlier generations built on Cassandra, Redis, MDBM, a Go B+ tree and RocksDB.

July 2025

The quest for software engineering knowledge.

Look:
Layout: