<div class="shownotes"><p>Simple systems fail simply. Complex systems also fail simply, but their interconnectedness with other systems makes mitigating failures much more complex. Past a certain level of complexity, system failures are an emergent property of the system &#8211; that is, the set of system parts has a set of failure cases that the individual parts do not have by themselves. This means that it is more difficult to predict what can go wrong with a system. At some level, prediction is nearly impossible. However, you can predict many of the things that are likely to cause problems, simply by engaging in a few fairly simple thought exercises, you can greatly reduce the number of unexpected problems that your system encounters.</p><p>While it can be tempting to wait until a problem occurs to try to mitigate it, this is unwise in a production system that other people are dependent on. A system failure usually costs money at a minimum, and the problems can be far more severe than that. As a result, it's common for software services to include a Service Level Agreement or SLA, that dictates expectations about the frequency of system outages, response times, and time expected to complete work. Even if your system is engineered so that it doesn't completely fall over when a problem occurs, it can still violate an SLA and cost money. The consumers of your application probably have their own clients who have their own expectations. SLAs tend to bleed inward from clients to the services that they use and then to the services that those services use.</p><p>In contrast to SLAs, systemic problems, including both errors and latency tend to bleed outward from one service to its clients and then to the clients of that service. As a result, when you are thinking about how to find potential systemic problems, it's often best to think of these problems from two different angles. That is, you need to consider how errors and latency will bleed out as a result of a problem, while also considering how SLAs bleed in to put more stringent expectations on your system than you might expect. In effect, you are dealing with a balance between tolerance for errors and difficulty in error mitigation. Depending on how critical your system is to your clients, these expectations will vary.</p><p>You can't prevent every problem in a system, but you can usually prevent a large percentage of them by planning ahead. However, until you've encountered enough unexpected problems, it can be difficult to envision how something can go wrong, or even have a realistic thought process for thinking about what can go wrong. However, if you go through the thought exercises we've outlined here, then you have a good chance of preventing most of the problems that will plague a complicated application. While this doesn't fix everything, it can give you enough breathing room to fix the truly unusual problems that you'll occasionally encounter.</p><div class="links"><h3>Links</h3><h3><a href="https://completedeveloperpodcast.com/?feed-stats-url=aHR0cHM6Ly93d3cucGF0cmVvbi5jb20vQ29tcGxldGVEZXZlbG9wZXJQb2RjYXN0&#038;feed-stats-url-post-id=4210" target="_blank" rel="noopener noreferrer">Join Us On Patreon</a></h3><h3><a href="https://completedeveloperpodcast.com/?feed-stats-url=aHR0cHM6Ly93d3cubGV2ZWx1cGZpbmFuY2lhbHBsYW5uaW5nLmNvbS8%2FY2Rw&#038;feed-stats-url-post-id=4210" target="_blank" rel="noopener noreferrer">Level Up Financial Planning</a></h3></p></div></div> <img src="https://completedeveloperpodcast.com/?feed-stats-post-id=4210" width="1" height="1" style="display: none;" /><p>The post <a rel="nofollow" href="https://completedeveloperpodcast.com/preempting-system-issues/">Preempting System Issues</a> appeared first on <a rel="nofollow" href="https://completedeveloperpodcast.com">Complete Developer Podcast</a>.</p><br /><hr><p style='color:grey; font-size:0.75em;'> Hosted on Acast. See <a style='color:grey;' target='_blank' rel='noopener noreferrer' href='https://acast.com/privacy'>acast.com/privacy</a> for more information.</p>

Complete Developer Podcast

BJ Burns and Will Gant

Preempting System Issues

JUL 13, 202340 MIN
Complete Developer Podcast

Preempting System Issues

JUL 13, 202340 MIN

Description

<div class="shownotes"><p>Simple systems fail simply. Complex systems also fail simply, but their interconnectedness with other systems makes mitigating failures much more complex. Past a certain level of complexity, system failures are an emergent property of the system &#8211; that is, the set of system parts has a set of failure cases that the individual parts do not have by themselves. This means that it is more difficult to predict what can go wrong with a system. At some level, prediction is nearly impossible. However, you can predict many of the things that are likely to cause problems, simply by engaging in a few fairly simple thought exercises, you can greatly reduce the number of unexpected problems that your system encounters.</p><p>While it can be tempting to wait until a problem occurs to try to mitigate it, this is unwise in a production system that other people are dependent on. A system failure usually costs money at a minimum, and the problems can be far more severe than that. As a result, it's common for software services to include a Service Level Agreement or SLA, that dictates expectations about the frequency of system outages, response times, and time expected to complete work. Even if your system is engineered so that it doesn't completely fall over when a problem occurs, it can still violate an SLA and cost money. The consumers of your application probably have their own clients who have their own expectations. SLAs tend to bleed inward from clients to the services that they use and then to the services that those services use.</p><p>In contrast to SLAs, systemic problems, including both errors and latency tend to bleed outward from one service to its clients and then to the clients of that service. As a result, when you are thinking about how to find potential systemic problems, it's often best to think of these problems from two different angles. That is, you need to consider how errors and latency will bleed out as a result of a problem, while also considering how SLAs bleed in to put more stringent expectations on your system than you might expect. In effect, you are dealing with a balance between tolerance for errors and difficulty in error mitigation. Depending on how critical your system is to your clients, these expectations will vary.</p><p>You can't prevent every problem in a system, but you can usually prevent a large percentage of them by planning ahead. However, until you've encountered enough unexpected problems, it can be difficult to envision how something can go wrong, or even have a realistic thought process for thinking about what can go wrong. However, if you go through the thought exercises we've outlined here, then you have a good chance of preventing most of the problems that will plague a complicated application. While this doesn't fix everything, it can give you enough breathing room to fix the truly unusual problems that you'll occasionally encounter.</p><div class="links"><h3>Links</h3><h3><a href="https://completedeveloperpodcast.com/?feed-stats-url=aHR0cHM6Ly93d3cucGF0cmVvbi5jb20vQ29tcGxldGVEZXZlbG9wZXJQb2RjYXN0&#038;feed-stats-url-post-id=4210" target="_blank" rel="noopener noreferrer">Join Us On Patreon</a></h3><h3><a href="https://completedeveloperpodcast.com/?feed-stats-url=aHR0cHM6Ly93d3cubGV2ZWx1cGZpbmFuY2lhbHBsYW5uaW5nLmNvbS8%2FY2Rw&#038;feed-stats-url-post-id=4210" target="_blank" rel="noopener noreferrer">Level Up Financial Planning</a></h3></p></div></div> <img src="https://completedeveloperpodcast.com/?feed-stats-post-id=4210" width="1" height="1" style="display: none;" /><p>The post <a rel="nofollow" href="https://completedeveloperpodcast.com/preempting-system-issues/">Preempting System Issues</a> appeared first on <a rel="nofollow" href="https://completedeveloperpodcast.com">Complete Developer Podcast</a>.</p><br /><hr><p style='color:grey; font-size:0.75em;'> Hosted on Acast. See <a style='color:grey;' target='_blank' rel='noopener noreferrer' href='https://acast.com/privacy'>acast.com/privacy</a> for more information.</p>