<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Obi Nnaemeka Simon-Peter on Medium]]></title>
        <description><![CDATA[Stories by Obi Nnaemeka Simon-Peter on Medium]]></description>
        <link>https://medium.com/@simondevz?source=rss-ce8cfdc94f7e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*ALmhTTzLr-HbSGBsyoIu-w.jpeg</url>
            <title>Stories by Obi Nnaemeka Simon-Peter on Medium</title>
            <link>https://medium.com/@simondevz?source=rss-ce8cfdc94f7e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:06:51 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@simondevz/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Reliability, Scalability, and Maintainability in Designing Data-Intensive Applications]]></title>
            <link>https://medium.com/@simondevz/reliability-scalability-and-maintainability-in-designing-data-intensive-applications-6209c2df0591?source=rss-ce8cfdc94f7e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6209c2df0591</guid>
            <category><![CDATA[system-architecture]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[backend-development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[data-intensive-system]]></category>
            <dc:creator><![CDATA[Obi Nnaemeka Simon-Peter]]></dc:creator>
            <pubDate>Sat, 11 Apr 2026 18:34:20 GMT</pubDate>
            <atom:updated>2026-04-11T18:34:20.065Z</atom:updated>
            <content:encoded><![CDATA[<p>I am currently reading <em>Designing Data-Intensive Applications</em>, just started, and this series is an attempt to stay consistent and accountable. So, below is what I have learned from the first chapter of the book.</p><p>Chapter one talks about concepts that I am actually familiar with to some extent. It talks about three key concepts that are apparently going to form the basis of everything else I will be reading about. These concepts are <strong>reliability</strong>, <strong>scalability</strong>, and <strong>maintainability</strong>. I will be attempting to explain them as best I can below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o88p0gDwpOYJFZs2UMlWFw.png" /></figure><h3>Reliability</h3><p>Let’s start with reliability — if for nothing else, because that was the first one in the book.</p><p>Reliability has to do with how reliable the system you are building is. Think of Google Photos, where many of us back up our important photos in case something happens to our phones. We would expect to be able to get those photos back from Google without any problems. To some degree, that is what building a reliable system is about — making sure your users’ data is available to them regardless of whatever issues your system may go through.</p><p>This is usually achieved by backing up the data. Depending on the stage your business is at and the budget at hand, this may not be as easy as it sounds. When you first start, still testing the idea and the market with a few beta users, backing up is probably not the issue. But as your business grows and you start getting traction, this should start moving up your priority list — deciding on where you back this data up and what your strategy should be.</p><p>Another thing that adds to your reliability is uptime. Many things can cause downtime, and the book broadly categorises them into <strong>three</strong> categories: hardware faults, software faults, and human errors.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pzlLAvqhxGf1PxY02qGX5g.png" /></figure><p><strong>Hardware faults</strong> are when the hardware your service is running on fails. For the most part you cannot prevent this unless you are physically running your own servers, which is not likely. Odds are you have purchased a VPS or are using cloud hosting. So you do the only thing you can — host your service across multiple server locations such that if one goes down, the others can handle the load until it comes back up. Or you rely on your underlying providers to ensure their services are running, and when you are a small enough startup, that is really all you can do. It just does not make sense to take on the extra cost with 100 monthly active users.</p><p><strong>Software faults</strong> are a bit more nuanced than just missing validation or error handling. The book emphasizes <em>systematic</em> errors within the system — things like runaway processes that exhaust shared resources such as CPU, memory, or network bandwidth; bugs that cause every instance of a server to crash simultaneously when they receive a particular bad input; or cascading failures where a small fault in one component triggers faults in others. These are the kinds of bugs that do not show up in testing because they only emerge under specific conditions at scale.</p><p>Then there is the third and perhaps most underappreciated category: <strong>human errors</strong>. Humans design, build, and operate these systems, and humans are notoriously unreliable. In fact, one study cited in the book found that configuration errors by operators were the leading cause of outages, while hardware faults accounted for only 10–25% of them. Think about that. The people building and maintaining the system are often the biggest source of failure. Good reliability engineering accounts for this — through things like well-designed abstractions that make it harder to do the wrong thing, easy rollback mechanisms, and thorough monitoring so you can catch mistakes before they become outages.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*te3qF3SK58XmGe3iaeXHPg.png" /></figure><h3>Maintainability</h3><p>Now, this was not second in the book but I want to talk about it before scalability — what is that saying about being my own man?</p><p>The book actually breaks maintainability into three distinct principles, and I think each one is worth understanding on its own.</p><p>The first is <strong>simplicity</strong> — managing complexity. You see, maintainability boils down in part to how well your code can be read by other humans. Can someone go through your codebase and understand what is going on without you being there to explain each line? I think this particular one is even more important now, and a bit harder to keep track of with the advent of “vibe coding.” Humans are not really writing code anymore, or at least more and more code is AI-generated every day. But the code coming out still needs to be human-maintainable. If you are building a real system — not some MVP or prototype, but a real product that you intend to scale — eventually the codebase will get to the point where the AI you relied on earlier, without ensuring the code was maintainable, will become your biggest nightmare. Fixing one problem will break three others. AI seems to be the future; I am not saying do not use it to code. I just think you should learn to produce maintainable code. When starting out, define patterns for your systems to follow, create proper abstractions while writing the code, follow SOLID principles and other best practices. Review the code you are given and have it refactored if you cannot understand it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iTC24wdpojZ7UDPRUCV6NQ.png" /></figure><p>The second is <strong>operability</strong> — making life easy for whoever is running the system. This means providing good visibility into the system’s health through monitoring, making it easy to recover from human errors, and avoiding dependency on individual machines so maintenance can happen without downtime. A system that works but is a nightmare to operate will eventually break someone — or many people.</p><p>The third is <strong>evolvability</strong> — also called agility in the book. This is about how easily you can modify a data system to adapt to constantly changing business requirements, unanticipated use cases, or new regulations. Software requirements do not stay still. The ability to change your system without it falling apart is a form of maintainability that does not get talked about enough.</p><h3>Scalability</h3><p>Last but not least is scalability — this is about how well your system is able to grow.</p><p>One mistake people often make is attempting to tackle scalability before they have to. You have not yet gotten to 10 users but you are already building for a million. What they forget to realize is that scalability looks different for every solution; there is no one-size-fits-all. What you would do to handle scale at Uber is different from how you scale Netflix, and no two approaches are inherently scalable or non-scalable. That is not to say you cannot learn from other people’s experiences, but in my opinion, you need to have your own experiences first to know what to pick.</p><p>When building, your first priority should be getting the code to work for your first user. Then you optimize for your first 100, then 1,000, then 10,000 active users, and so on. It might also be good to point out that good architecture for 10,000 active users can look drastically different from good architecture for a million. Now, can that architecture built for a million serve the 10,000? Yes, definitely. But when you look at the resources poured into it, the return from the 10,000 might not be worth the upfront investment of time, effort, and money. Everything is a trade-off. Being a good engineer sometimes means knowing which trade-offs are worth taking.</p><p>Sometimes scaling will mean splitting your monolith into modular monoliths or microservices. Other times it may mean revising your caching strategy, or evaluating how you read versus write from your database. While you can anticipate certain issues, most of the biggest problems you will face will not be anticipated — you will only find them through experience, with a proper setup for monitoring and observing your system.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HNCViIku28u_wE6T3LWkvQ.png" /></figure><h3>The Twitter Story</h3><p>I would like to end this with a story about a social media platform — Twitter, soon to be X.</p><p>Back in 2012, they were cursed with the blessing of being popular. They got to the point where they actually needed to scale. According to the book’s data from November 2012, users were publishing new tweets at an average rate of about <strong>4,600 per second</strong>, peaking at over <strong>12,000 per second</strong>. Meanwhile, requests to read home timelines were coming in at around <strong>300,000 per second</strong>. These numbers had serious implications for their systems.</p><p>The way things were being handled at the time was not going to hold. For each tweet a user created, they needed to update the timeline of every follower, and the goal was that every follower would be able to see new tweets delivered to their timeline <strong>within five seconds</strong> of the tweet being posted. Not five seconds to load — five seconds from posting to delivery.</p><p>Let us do a bit of math. If they are getting around 12,000 tweets per second at peak, and the average user has about 75 followers (though some have millions), you are talking about a potentially enormous number of timeline writes happening every second. There were two approaches discussed.</p><p>The <strong>first approach</strong> was to fetch all tweets from the profiles a user follows at the moment they open their timeline — a simple but naive approach. It works at first, but as users grow and people begin following more and more accounts, each request becomes harder and harder to process.</p><p>The <strong>second approach</strong> was to update timelines at the time of tweeting. This means when a user creates a tweet, the system not only records the tweet — it also writes that tweet into the timelines of everyone who follows them. For accounts with millions of followers, a single tweet could result in over 30 million writes. That is a lot of background work. But for the end user, when reading their timeline, things load instantly because it was precomputed — they are just reading from one place.</p><p>This second approach is more ideal for most users, but it still could not accommodate accounts with extreme follower counts — celebrities, public figures, and so on. So Twitter adopted a <strong>hybrid approach</strong>: perform the fan-out writes for regular accounts at tweet time, but when a user loads their timeline, pull and merge in tweets from the high-follower accounts on the fly.</p><p>This is the kind of trade-off that only becomes obvious once you are operating at that scale. You cannot design for it from a standing start — you have to get there, observe, and adapt.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6209c2df0591" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>