SYSTEM ARCHITECTURE & POSTMORTEM
1. Situation Context
Legacy EHR database locks are the nightmare of health-tech. Spikes in data entries by clinical staff locked the tables, blocking doctor lookups.
2. Why It Was Interesting
Clinical databases are highly regulated. Modifying core database configurations is high-risk. We had to build a sidecar system that intercepted reads and writes without affecting the legacy engine schema.
3. What We Built
We deployed a Go-based integration sidecar. Reads are resolved by a Redis replica that syncs asynchronously. Writes are queued in a bounded buffer, allowing the database to digest operations at a steady rate. Lookups now run under 15ms p99, and database lockups dropped to zero.