Distributed Systems & Reliability
Caches, replication, real-time delivery and the failure modes in between.
- Caches Outlive the Facts They Hold Every cache is a bet that a fact won't change before the entry dies. The bugs come from caches nobody thinks of as caches (a compiled file, a hash over a server list, a build layer, a credential read at boot) whose keys don't include the thing that changes.
- A Migration Has Two Halves Renaming a contract that live resources carry isn't a rename. It's a data migration: honor both names, write the new one, relabel in place. And the migration usually has two halves that don't move together: the one you can see, and the one that will delete your data if you call it done too early.
- What Microservices Actually Cost: Lessons From 13 Services XenTask is a 13-service microservice architecture. Building it taught me three things that no microservices tutorial covers: what shared code costs across repos, how to use the platform for service discovery instead of building your own, and what 13 independent pipelines actually feel like to operate.
uBix Vault 1.6: Why I Rolled My Own Secrets Manager (and Why You Might Try It)
I needed a secrets manager built to carry real production traffic and lighter to run than Vault, so I built one that speaks Vault's API. 1.6 adds Raft storage that keeps its own replicated data. It's EXPERIMENTAL, and here's what I did to try to break it.
Replikate: Blue to Green, and the Switch I Forgot to Install
Cross-cluster replication has been in Replikate since 1.1, and 1.3 made it flexible enough for blue/green. Then I went to turn it on with Helm and found the chart had no switch for it. Chart 1.3.1 fixes that.
uBix Vault 1.2: High Availability, Because Nodes Get Drained
1.2 runs uBix Vault as several replicas: one active, the rest standing by, all behind one Service. A node drain or a rolling upgrade now hands over in about half a second without a failed request. And a replica that loses the lock without noticing can't write a thing.
uBixCore 0.17: Real-Time Publishing Without a Client Library
PHP-FPM can't hold a WebSocket, and a message posted to one pod can't reach a socket held by another. uBixCore 0.17 adds the framework half of the fix: a NATS publisher that speaks the protocol itself, and signed subject grants a gateway in any language can verify.
Replikate 1.2: Two Hubs, One Spoke, No Fights
1.1 taught Replikate to cross clusters. 1.2 is the unglamorous follow-up that makes it safe to lean on: two hubs can target the same spoke without eating each other's copies, the self-cluster guard is now proof against URL trickery, and a freshly-registered spoke fans out at once.
uBix Vault Beta 9: Making It Durable
The feature list has been done for a while. Beta 9 is about the thing that actually gates running a secrets manager for real: durable storage. uBix Vault can now live in a database instead of on one node's disk, with live unseal-share rotation and scheduled backups. Still one dependency.
Replikate 1.1: Now It Crosses Clusters
When I cut Replikate 1.0 I froze the annotation contract and promised the big follow-up, cross-cluster replication, would arrive as an addition that broke nothing. 1.1 delivers it: annotate a source with target-clusters and it replicates into other clusters, proven end to end against two real API servers.
Replikate 1.0: A Stable Contract
Replikate is 1.0. The annotation contract is frozen, the same-name clobber-war bug is fixed, and the one path that had never run on a real cluster (the admission webhook) is now green end to end. Here's what closing out a 1.0 actually took.
Replikate Grows Up: Instant Drift Correction, Metrics, and a Webhook
Two days after launching the MVP, Replikate went from v0.1 to v0.4: near-instant drift correction, Prometheus metrics, an optional validating webhook, namespace exclusions, a field indexer, and a real integration test suite. Here's what shipped, plus an honest revisit of the three edges I named on day one.
Replikate: ConfigMap and Secret Replication Across Kubernetes Namespaces
Kubernetes has no native way to share a ConfigMap or Secret across namespaces. Replikate is a small BSD-licensed controller that fixes that: annotate a source object, and it keeps synced copies in every namespace you select, including ones that don't exist yet.
XenTask: Building a Self-Hosted Project Management Platform
Why buy another SaaS seat when you can build the whole thing? A look at the architecture behind XenTask: 13 microservices, a real-time WebSocket server written in C, and a React frontend that actually does the job.