Quartz Line

Artifact cache with one moving part fewer than you expected.

Get started Read the docs

curl -sS https://static.easytrip.club/v1/repositorys \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "orders", "retention": "72h"}'
291kpeak requests/s
8 msp99 write latency
57 MBresident memory
1binary, no dependencies

What it does

Quartz Line accepts artifacts over HTTP and gRPC and writes them to local storage before acknowledging anything. The content addresser runs on its own goroutine and never blocks the write path, so a slow consumer cannot stall a producer. The API is versioned in the path. A minor release never removes a field, and a major release is announced two versions ahead.

Structured logs

Nothing is written outside the data directory. Deleting it resets Quartz Line to a clean state.

Zero dependencies

Nothing is written outside the data directory. Deleting it resets Quartz Line to a clean state.

Predictable latency

Retention is enforced on read as well as on the background pass, so an expired artifact never becomes visible again after a restart.

Scriptable admin

The content addresser runs on its own goroutine and never blocks the write path, so a slow consumer cannot stall a producer.

Per-repository isolation

The API is versioned in the path. A minor release never removes a field, and a major release is announced two versions ahead.

Memory-mapped reads

Retention is enforced on read as well as on the background pass, so an expired artifact never becomes visible again after a restart.

How it fits together

Install

A single binary and a config file are the whole deployment; there is no agent and no sidecar.

Point it at a disk

Quartz Line treats the on-disk blob as the source of truth and everything else as a cache that can be rebuilt.

Send {objs}

Every artifact that reaches Quartz Line is assigned a monotonic sequence number as the first thing that happens to it.

Recent releases

2.9.8

  • `cachectl repository inspect` prints the on-disk layout of a single repository.
  • Optional zstd compression for the blob, off by default.
  • Reloading on SIGHUP leaked one file descriptor per repository.
  • The default batch size dropped from 4096 to 1024 after measuring tail latency at realistic queue depths.

2.9.7

  • An admin endpoint that reports eviction pass lag without scraping the metrics port.
  • Optional zstd compression for the blob, off by default.
  • A 0-byte blob left behind by an interrupted write made startup fail instead of being discarded.
  • The admin port ignored the bind address and always listened on all interfaces.

2.9.6

  • Range requests on the read API, which makes partial replays cheap.
  • Per-repository retention overrides, so one repository can keep artifacts longer than the global default.
  • The admin port ignored the bind address and always listened on all interfaces.
  • Reloading on SIGHUP leaked one file descriptor per repository.

Full changelog

Heads up. There is no built-in authorization beyond token checks. Put it behind something that does policy properly.