basalt

EngineeringJuly 30, 202611 min read

What 38 regions taught us about clocks

Hybrid logical clocks, a 3 ms skew budget and the night Singapore drifted.

Sigrún Halldórsdóttir
Staff engineer, Query engine
What 38 regions taught us about clocks

Ordering events across 38 regions means agreeing on time, and machines are bad at agreeing on time. Here is how we keep order without pretending clocks are perfect.

Hybrid logical clocks

Every event gets a timestamp that combines wall-clock time with a logical counter. If a message arrives from the future, the receiver moves its clock forward instead of breaking causality.

A 3 ms budget

  • Every node measures its offset against three time sources each second.

  • A node more than 3 ms off stops accepting writes and drains.

  • Reads stay available from replicas that are within budget.

The night Singapore drifted

In May a firmware update made one rack in Singapore drift 40 ms in six minutes. The budget caught it at 3.1 ms, the rack drained, and customers saw a slightly slower write path for eleven minutes instead of out-of-order data.

Sigrún Halldórsdóttir
Staff engineer, Query engine

Sigrún leads the query engine team in Reykjavík. Before Basalt she worked on storage at a Nordic payments company, where she learned to distrust any latency number without a percentile next to it.

Keep reading

More from the engine room.

How we cut p99 from 11 ms to 4.2 ms
EngineeringSep 24, 2026 · 8 min

How we cut p99 from 11 ms to 4.2 ms

Three changes to the read path in v4.0: declared sort keys, a per-core allocator and a planner that stopped re-sorting partitions at query time.

Exactly-once without two-phase commit
EngineeringSep 18, 2026 · 9 min

Exactly-once without two-phase commit

Idempotent sinks, epoch fencing and a 64-bit sequence per partition. No coordinator, no stalls.

Time travel is just a really good index
EngineeringSep 4, 2026 · 7 min

Time travel is just a really good index

Why AS OF queries on 30 days of history cost less than one extra replica.

Get started

Set your data in stone.

Free up to 10M events a month. No card, no sales call. Your first pipeline is live in about four minutes.

2,400+ teams in production

SOC 2 Type II

38 regions

Get started

Set your data in stone.

Free up to 10M events a month. No card, no sales call. Your first pipeline is live in about four minutes.

2,400+ teams in production

SOC 2 Type II

38 regions

Get started

Set your data in stone.

Free up to 10M events a month. No card, no sales call. Your first pipeline is live in about four minutes.

2,400+ teams in production

SOC 2 Type II

38 regions

© 2026 Basalt Labs

All systems normal

Back to top ↑

404

© 2026 Basalt Labs

All systems normal

Back to top ↑

404

© 2026 Basalt Labs

All systems normal

Back to top ↑

404

Create a free website with Framer, the website builder loved by startups, designers and agencies.