Research & Engineering

Engineering Labs

Reproducible experiments, reference architectures and reference implementations. Each lab links to a repository you can clone, run and change; where a lab compares approaches, each approach lives on its own branch.

PostgreSQL failover on Kubernetes, measured

Three PostgreSQL instances under CloudNativePG, a client that writes twice a second, and a deleted primary: how long writes fail, what the client has to do, and whether any committed row is lost.

Event notification vs event-carried state transfer

A car plant's yard run by three services that never call each other, so the two main event styles can be compared side by side in readable logs, under normal load, a rush and a shift change.

Resilience patterns, one at a time

Eleven resilience patterns added in sequence to one deliberately naive service call, each on its own branch, each shown failing under injected faults before it is fixed.

Event sourcing with Kafka: ten years of payroll

13,167 events for 100 employees over 120 months, kept in a Kafka topic and nothing else, then replayed into every view the business asks for, including the payroll as it was on any past date.

Scatter-gather under a deadline

A price aggregator that fans out to unreliable vendors and always answers on time: partial results as a normal outcome, no goroutine leaks, and cancellation that reaches the remote side.

Caelus Engineering Labs on GitHub ↗