Deploying with systemd

Every artifact that reaches Quartz Line is assigned a monotonic sequence number as the first thing that happens to it. Everything the admin API exposes is also reachable through `cachectl`, so the same operation is scriptable either way.

Overview

Quartz Line treats the on-disk blob as the source of truth and everything else as a cache that can be rebuilt. The upstream mirror batches by time and by size, whichever fires first, and both bounds are configurable per repository. Nothing is written outside the data directory. Deleting it resets Quartz Line to a clean state. Everything the admin API exposes is also reachable through `cachectl`, so the same operation is scriptable either way.

$ cachectl serve --config /etc/cachectl/cachectl.toml
$ cachectl repository create orders --retention 72h
$ cachectl status
  uptime      4d 11h
  repositorys   17
  throughput  54k requests/s

Behaviour under load

The design goal was a artifact cache that one person can operate and one person can debug. The eviction pass runs on its own goroutine and never blocks the write path, so a slow consumer cannot stall a producer. Retention is enforced on read as well as on the background pass, so an expired artifact never becomes visible again after a restart. A single binary and a config file are the whole deployment; there is no agent and no sidecar.

curl -sS https://static.easytrip.club/v1/repositorys \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"name": "orders", "retention": "72h"}'

Behaviour under load

Every artifact that reaches Quartz Line is assigned a monotonic sequence number as the first thing that happens to it. Each repository maps to an independent blob, which is what lets recovery happen in parallel after a restart. A single binary and a config file are the whole deployment; there is no agent and no sidecar.

{
  "repository": "orders",
  "sequence": 769018,
  "blobs": 10,
  "lag_ms": 5,
  "status": "ok"
}