Understanding Databases as a DevOps Engineer, in 2 Minutes


Osomudeya Zudonu

Aug 16th, 2026

How DevOps Engineers Should Think About Databases

↓

Hi Reader

Sometimes a database error originates elsewhere in the system.

During a Kubernetes deployment, a login page started returning 502 errors even though the database itself was fine. What happened was that the application tried to check whether Postgres was ready, but Postgres wasn't accepting connections yet. Kubernetes therefore didn't send traffic to the application, so when someone tried to log in, the gateway had nowhere to send the request.

What I learned from this particular experience, and how I was able to fix it, was that a login request had to pass through several layers before it could reach the database:

Configuration → DNS → Network → TLS → Authentication → Postgres

Once I started looking at the system this way, I stopped thinking about database failures as one big problem.
Different failures happen at different points, and each needs its own protection in place before it happens: a standby ready for when the primary fails, backups ready for when someone deletes data by mistake, a read replica ready for when reads overload the primary.

This is also why a replica isn't a backup. If someone runs DROP TABLE payments; by mistake, the replica follows the primary and receives the same change. I learned this distinction the hard way too. Replication gives you another copy of the current state, while a backup gives you a way to return to an earlier state.

In one payments system, all the pods were running, and the health checks were passing, but transactions kept getting stuck in PENDING. A scheduled job was supposed to clear them, but it wasn't running. We eventually found the job wasn't getting the resources it needed to run. Once we fixed that, the transactions started clearing.

That is why I've found it more useful to understand how these pieces connect than to memorize every database error or Kubernetes command. When something unfamiliar breaks, I have a better idea of where to start looking.

I'm expanding this into a full article covering the connection path, replication and backups, security, and the failure scenarios behind these examples.

I'll be publishing it on Medium later this week, so expect the full version then.
​
Talk soon 👋

PS. If you're learning DevOps, transitioning into it, or already working in DevOps but still struggle to connect the tools, systems, and problems you're solving, you don't have to figure it all out alone. And when you're ready, my DevOps resources are built to help you understand how systems work, know where to start when things break, and become confident troubleshooting real production problems yourself.

600 1st Ave, Ste 330 PMB 92768, Seattle, WA 98104-2246
​Unsubscribe · Preferences​

Osomudeya Zudonu

I’m a DevOps & Cloud Engineer, writer, and a photographer who simplifies complex infrastructure into hands-on guides and stories. Join 5,000+ readers learning DevOps without the complexity.

Read more from Osomudeya Zudonu

Osomudeya Zudonu Oct 10, 2026 How to Migrate an App from AWS EC2 to GKE ↓ Hi Reader I recently finished an AWS-to-GCP migration for a client, moving a SaaS production application to a new cloud environment. In theory, it sounds simple. Build the new environment, test it, then move traffic over. Engineers Collaborating on Cloud Architecture But what happens in between? The existing application still needs to serve real customers while the new environment is being prepared and tested. You also...

Osomudeya Zudonu Sept 20th, 2026 How to Get Noticed by Recruiters as a Cloud and DevOps Engineer ↓ Hi Reader A lot of junior DevOps engineers are doing good and productive work, but their LinkedIn profile still reads like they're only learning. "Currently learning Kubernetes." "Aspiring DevOps Engineer." "Day 47 of my DevOps journey." I get why people write it that way. When you're still learning, it feels honest to say so. But a recruiter looking for someone who works with Kubernetes doesn't...

Osomudeya Zudonu Sept 5th, 2026 What if your DevOps interview answer is right, but still wrong? ↓ Hi Reader A friend of mine had two interviews in the same month, both for DevOps roles. Both interviews asked her the same question: How would you design a deployment pipeline for our team? At the first company, a ten-person startup, she talked about short feedback loops, automated tests, and getting code into production without making every deployment wait for a person. The interviewer nodded...