finds.dev

public digest · 5 picks

Distributed locks, pipeline-as-code, and schema diffs worth reading

Five repos this week that share a common thread: each one is solving a problem that existing tools handle badly, not nonexistent problems dressed up as innovation. Distributed locking, CI pipelines, AI gateway routing, Datadog internals, and Postgres schema management — all unglamorous, all genuinely hard.

We picked these because they're the kind of code you'll want to read before you write your own version from scratch. Some have rough edges we'll call out directly. None of them are finished products — they're active bets on specific architectural ideas, and understanding those ideas is most of the value.

// pick 1 of 5

go-redsync/redsync

Redsync implements the Redlock algorithm for distributed mutual exclusion in Go — multiple processes competing for the same named lock via Redis. You'd reach for this when you need to ensure exactly one worker runs a job across a fleet, and you already have Redis in your stack.

The Redlock algorithm is one of those things every distributed systems team eventually needs and then spends two weeks second-guessing. Redsync is the most production-tested Go implementation of it, with adapter support for go-redis v7/v8/v9, redigo, rueidis, and valkey — meaning you can drop it in without swapping your existing Redis client. The Lua-based acquire/release is correctly atomic, and the adoption list (Sourcegraph, gocron, Google Open Match) tells you it's been stress-tested beyond hobby projects.

What to know going in: the README links to Martin Kleppmann's critique of Redlock and doesn't answer it. That's an honest acknowledgment, but it means you should read that critique before using this in anything where split-brain would cause data loss rather than just duplicate work. If your use case is 'prevent duplicate cron jobs' rather than 'prevent concurrent financial writes', the practical risk is much lower. Also: if you're pointing this at a single Redis instance, you're getting none of the quorum-based safety properties that justify Redlock's complexity — just use SETNX at that point.

View on GitHub → Our full take →

// pick 2 of 5

dagger/dagger

Dagger is a programmable CI/CD engine that runs your build, test, and deploy pipelines inside containers, with SDKs for Go, Python, TypeScript, and five other languages. It's aimed at teams tired of YAML-driven CI configs and shell scripts that only work on the CI server. The core idea is that your pipeline code is real code — typed, testable, and runnable locally with identical behavior.

Dagger's central claim is that your CI pipeline should be a real program, not a YAML file that shells out to bash. That claim holds up. The content-addressed caching is the part that actually changes your day: when you run the same pipeline locally and on CI, cache hits are shared by input hash, not by CI-server-specific cache keys that expire arbitrarily. The OpenTelemetry-native tracing and live TUI mean debugging a parallel pipeline feels like debugging software rather than reading interleaved log output and guessing at timing.

The generated SDK approach — Go, Python, TypeScript, and others all derived from a GraphQL schema — is genuinely clever engineering. It keeps language bindings consistent without manual synchronization and lets the API evolve without breaking clients in unpredictable ways.

What to know going in: this is not a drop-in replacement for your existing CI YAML. You are writing a program that calls a GraphQL-backed container orchestration API, and the mental model takes real time to internalize. The Docker runtime requirement is a hard constraint — if your CI environment can't run containers-inside-containers, you're blocked. And for small, simple projects, the cold-start overhead and added complexity are probably not worth it. This pays off at scale, on teams that actually maintain their pipeline code.

View on GitHub → Our full take →

// pick 3 of 5

DataDog/integrations-core

The official source for all integrations that ship with the Datadog Agent — roughly 300+ checks covering everything from Active Directory to Zookeeper. If you run Datadog and want to understand how their agent checks work, or want to contribute a fix to one, this is the repo. Not useful outside the Datadog ecosystem.

If you maintain infrastructure that runs the Datadog Agent, this repo is where your vendor's checks actually live. The consistent structure across 300+ integrations is more impressive in practice than it sounds — every check has the same layout, the same tooling hooks, and the same test patterns, which means reading an unfamiliar check takes minutes rather than hours.

The supply-chain work is serious and worth studying even if you don't use Datadog: in-toto provenance links, pinned action validation, dependency wheel promotion gates, and Chainguard OIDC token workflows. This is what mature open-source supply-chain hygiene looks like in a monorepo context.

What to know going in: this is operational glue for the Datadog ecosystem, full stop. The ddev tooling is Datadog-specific, the spec.yaml schema is Datadog-specific, and the config_models code generation is Datadog-specific — none of it transfers. Contributing a fix requires internalizing a significant amount of tooling that has no reuse value outside this repo. The flaky-test tracking workflows for Windows are a signal that the CI matrix at this scale has real maintenance overhead. Go in knowing you're learning Datadog's patterns, not general Python patterns.

View on GitHub → Our full take →

// pick 4 of 5

labring/aiproxy

An AI gateway written in Go that proxies requests across OpenAI, Anthropic, and Gemini providers with protocol conversion, multi-tenant isolation, and per-group rate limiting. Built primarily to power the Sealos platform (also by labring), but usable standalone. Targets teams reselling or internally distributing AI API access.

The plugin architecture here solves problems you actually hit running an AI gateway in production. The stream-fake plugin — which internally converts a non-streaming request into a streaming one to keep the connection alive — is the kind of thing every team building on top of OpenAI-compatible APIs discovers they need, usually after a timeout incident in production. The think-split plugin that parses `<think>` tags out of reasoning model responses into a structured field saves every downstream consumer from writing that parser themselves.

The bidirectional protocol conversion (Chat to Claude to Gemini, transparently) is genuinely useful for teams that want provider redundancy without forking client code, and the built-in Go tokenizer avoids the tiktoken Python dependency that makes other mixed-language gateways awkward.

What to know going in: this started as a labring internal tool for Sealos and the standalone story is thinner than the Kubernetes-native deployment path. The docs have at least one obvious error (a Claude API example with `"model": "gpt-5"`) which suggests they're not being run against real endpoints. Monitoring is a dashboard panel rather than Prometheus or OpenTelemetry, so integrating this into an existing observability stack requires extra work. The billing system in particular needs careful configuration — the path from 'billing enabled' to 'correctly charging the right groups' involves enough implicit state that you'll want to validate it thoroughly before relying on it.

View on GitHub → Our full take →

// pick 5 of 5

pgplex/pgschema

pgschema brings Terraform-style declarative schema management to Postgres — you edit a SQL file describing what the schema should look like, and it generates the DDL to get there. It's for teams who want schema-as-code without the migration file ceremony of Flyway or Liquibase. Backed by Bytebase, free, Apache 2.0.

The Postgres-specific feature coverage is what separates this from generic schema migration tools: RLS policies, partitioned tables, partial indexes, column-level grants, default privileges, domain types. These are the things that actually live in production Postgres schemas and that tools like Atlas handle partially or not at all. The plan/apply split with JSON output means you can make schema changes a reviewable, gate-able artifact in CI rather than a script that runs and you hope for the best.

No shadow database requirement is a real operational simplification. Spinning up an embedded Postgres internally for validation means your CI pipeline doesn't need a persistent parallel database instance to diff against — that's one fewer thing to maintain.

What to know going in: Windows is unsupported, full stop — WSL works locally but complicates Windows-native CI. The embedded Postgres for validation is convenient but creates a version-skew risk: if the embedded version trails your production Postgres, the plan output can silently diverge from what the real server would accept. There's no built-in rollback mechanism; the answer is essentially 'write a schema file that describes what you want to roll back to', which is principled but puts the operational burden on you. Multi-schema databases require running the tool once per schema and orchestrating that yourself, which is workable but unpolished.

View on GitHub → Our full take →

That's the week. If you want these picks in your inbox every Friday before they hit the site, there's an email signup at the bottom of the page — no other mail, just the digest.

Get this in your inbox →