<?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 Irina Gorbach on Medium]]></title>
        <description><![CDATA[Stories by Irina Gorbach on Medium]]></description>
        <link>https://medium.com/@irinagorbach?source=rss-96abb1edb127------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*tKkUUZTIMmJgPxej.jpg</url>
            <title>Stories by Irina Gorbach on Medium</title>
            <link>https://medium.com/@irinagorbach?source=rss-96abb1edb127------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 14:20:52 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@irinagorbach/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[Building SaaS? Do you have a production support plan?]]></title>
            <link>https://medium.com/@irinagorbach/building-saas-do-you-have-a-production-support-plan-c262b41ef924?source=rss-96abb1edb127------2</link>
            <guid isPermaLink="false">https://medium.com/p/c262b41ef924</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[saas]]></category>
            <dc:creator><![CDATA[Irina Gorbach]]></dc:creator>
            <pubDate>Wed, 22 Nov 2017 07:05:19 GMT</pubDate>
            <atom:updated>2017-11-22T07:05:19.570Z</atom:updated>
            <content:encoded><![CDATA[<p>It’s a common practice to think about success of a start-up or a product as a result of a great and innovative idea. However, there is always a point of time when you realize that writing important, advanced, and cool features is just part of the game. What matters most is how you ship the features to customers, support your production environment, how you interact with your customers, and resolve issues. Some teams build supportability features into a product, while others react when problems start to appear with rapid succession. Some hire dedicated Service Reliability Engineers to support productions, and others embrace on-call rotations. In any case, defining a successful process for production support is extremely important. I’ve been working on building various Microsoft Services and wrote this article last year when our team experienced rapid growth in both number of new engineers joining the team and number of monthly active users. We used it as a framework to build our live site story, but I’ve never managed to publish the article. Now, joining a new team, I find that we are facing similar challenges and hope that publishing will help more teams and products.</p><p>When thinking about production support, I imagine a cycle. First, you try to prevent problems and successfully prevent 1000 problems. Then, one problem slips past and you find out that there is a problem in production. Once you quickly mitigate the problem, analyze why it happened and fix the problem along with its causes to prevent future occurrences.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*v80p2_j9MuQciYAYihsNWw.jpeg" /></figure><h4>1. Prevention</h4><p>Traditionally, there are two approaches to dealing with bugs that reach the customers:</p><p>a) Have a separate QA team test the product and file bugs to developers. Create huge stabilization periods when developers don’t write new code, but just fix bugs, and even longer check-in freezes that are intended to prevent new bugs;</p><p>b) Ship fast and patch in production. With this approach, lots of issues will be found in production and you will discover that unhappy customers run to competitors.</p><p>Of course, there is always a middle ground: it’s much cheaper to fix an issue before it reaches customers, but without resulting in the team going into deployment paralysis. This method assumes that majority of issues will be fixed before going to production, but there will be a number of issues that slip through and yet are mitigated rapidly. Yes, this approach might not work in the space and medical industries, but is shown to be pretty successfully in lots of SaaS and PaaS solutions.</p><p>Since, we are shipping very fast, we can’t afford to have a long deployment cycle, therefore we want to make sure that our testing is done by automation and as closer to the time developer checks-in the code. All tests can be shown as a pyramid:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/690/1*aEK_5UnFXhi74sNnkqlFag.jpeg" /></figure><p>The idea is that with each layer, the probability of regression decreases while cost of test execution increases. Thus, the majority of the test cases should be unit tests that are fast to write and execute. Writing integration automation is usually more challenging, but still more scalable than manually running integration scenarios and so on. I want to call out three points:</p><p>a) we want to decrease the cost of validation and decrease time to deployment by lowering human interaction, thus. automation;</p><p>b) there are certain types of bugs that are not easily discovered by software — CSS layout, UX ugliness thus, limited manual validation;</p><p>c) while there are predefined scripts, nothing beats ad-hoc usage with real life scenarios provided by dogfooding the product. I highly encourage everyone to either find a way to separate internal traffic or make sure that each team member uses the product on a canary build.</p><h4>2. Detection</h4><p>Cases in which all possible solutions have been tried but the issue with the production system persists are called LCI or Livesite Incident. The last thing you want is an important customer calling with complains or CEO demanding to know why his demo is broken. You want to know about the problem right away which is why monitoring and automatic detection are so important. We track special metric called TTD — Time to Detection since the problem first occurred. We use two types of monitoring: reactive and proactive.</p><p><em>Reactive</em> —is based on telemetry events emitted by all the services. The monitoring system is continuously evaluating the events, performing calculations, and firing alerts when certain metrics go below SLA requirements. Microsoft has a number of internal alerting systems such as MDM, AIMS, Kusto. Each team is responsible for writing a rule relevant to its service and monitoring system that sends an alert when reliability drops, or latency or load unexpectedly increases.</p><p>Reactive monitoring works great on the popular operations with high usage. However, it is not so successful for a new service when load is low. It’s also not a great predictor of system errors that camouflage as customer errors. For example, it’s hard for a reactive monitoring system to distinguish login errors caused by the user providing an invalid password vs login errors caused by a bug in the token refresh logic.</p><p><em>Proactive </em>— also called Testing in Production. The monitoring system executes runners that try to mimic production scenario. When the scenario fails, an alert is fired. Writing runners is more expensive than writing a rule, and it’s hard to predict all the ways customers will use the system. Thus, this way of monitoring is more expensive to maintain because it requires predicting customer usage patterns in advance. Still, some scenarios require you to have both types of monitoring.</p><p>In addition to alerts, we also use PowerBI dashboards that display SLA metrics of each scenario: perf, reliability, usage. Engineers monitor it on daily basis and see if there are new patterns of errors or usage. They might discover less than 99.99% reliability, performance below the goal, or an error causing large number of exceptions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/959/1*nJpQK0M96IJEGC80QDy0QQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/671/1*fPryIGphKIEwtSne-FyltA.jpeg" /></figure><p>This view is my favorite, it shows breakdown by error type which allows the developer to see the biggest offender and fix the most prominent bug.</p><h4>3. Mitigation</h4><p>Mitigation is the simplest step in the production support process to explain. Engineers need to make sure that issue is mitigated and do it in the minimal amount of time. At this point, we don’t care what the root cause of the problem is (it’s actually the hardest part and very counter-intuitive for majority of engineers), we don’t even care what the most robust fix is, we just look for a way to resolve the problem. It could be vip-swap, rollback of a deployment, reboot of a machine, or manual increase of compute nodes — whatever will fix the problem fastest is fair game. We are tracking special metric called TTM — time to mitigation.</p><p>Communication during the mitigation of an incident is very important: customers, partners, managers need to know what’s going on, ETA and, updates. Updates are published externally and internally for customers to be seen.</p><h4>4. Analysis</h4><p>After incident is mitigated, engineers have time to analyze the problem, do root cause analysis, and think about how it can be prevented in the future. We stay organized by filling out postmortem document. It contains a section with the timeline — when incident started, when it was detected, when on-call engineer was involved, mitigation, resolution and so on. It also contains all repair items: explanation of the proposed fix, action items to improve testing, monitoring, or communication. Once a week, we have a meeting where we review last week incidents and brainstorm repair items.</p><h4>5. Repair</h4><p>The repair step is also pretty easy to explain. During the analysis steps, there are multiple repair items filed in the system. While some repair items can be long-term, such as adjusting the design of the system for better scalability, the majority are short term (missing monitor) and have to be fixed within a week before the next meeting. We keep very a close watch on a repair item and make sure it’s implemented with the highest priority, so we don’t run into the same issue again.</p><h4>Conclusion</h4><p>There are more topics that can be discussed — who revives the alerts, how SLA gets calculated, how to avoid the noise and false positive calls.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c262b41ef924" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>