<?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 Buck Hodges on Medium]]></title>
        <description><![CDATA[Stories by Buck Hodges on Medium]]></description>
        <link>https://medium.com/@buckh?source=rss-92525b13ccf2------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*WpUACqn2AXp_VNWNnhQQ5A.jpeg</url>
            <title>Stories by Buck Hodges on Medium</title>
            <link>https://medium.com/@buckh?source=rss-92525b13ccf2------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 07:28:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@buckh/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 Cloud Services]]></title>
            <link>https://medium.com/@buckh/talks-on-how-on-engineering-building-azure-devops-77001fbf07f?source=rss-92525b13ccf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/77001fbf07f</guid>
            <category><![CDATA[development]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-services]]></category>
            <category><![CDATA[engineering-culture]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Buck Hodges]]></dc:creator>
            <pubDate>Wed, 25 Aug 2021 19:02:22 GMT</pubDate>
            <atom:updated>2021-08-26T03:01:39.704Z</atom:updated>
            <content:encoded><![CDATA[<p>Back in 2017, when I was still working on Azure DevOps, we put together a series of videos that are deep dives into how we worked. These used to be linked on the <a href="https://aka.ms/devops">Microsoft DevOps page</a>, but they have disappeared from there. So I wanted to put together a page that captures them all.</p><p>Note that Azure DevOps was called Visual Studio Team Services (VSTS) at the time (the name changed to Azure DevOps in September 2018). Before that, it was called Visual Studio Online (which was as confusing as it sounds).</p><p>For context, Azure DevOps began life as Team Foundation Server in 2003. The cloud was essentially non existent in 2003, so TFS was sold as software you downloaded and installed (or installed from a DVD). In 2010, Brian Harry, who founded and ran the team, recognized that we needed the product to be available in the cloud. While it seems stunningly obvious now, back then established companies (i.e., not startups) were not yet interested in putting their source code in the cloud. So we did this at a point in time when the vast majority of our customers were not interested in moving to the cloud. However, Brian knew it would take quite a while to move to the cloud and change the team from an on-premises software team into a cloud services, DevOps team. His vision was that we would be ready when customers began to move to the cloud. Today, the Azure DevOps cloud service has some of the largest companies in the world using it to plan, write, test, build, and deploy their software.</p><p>That context is important because the parts about the architecture of the product are a mix of things relevant to cloud services in general and things that are artifacts of having moved the product from on-premises to the cloud. The approaches to testing, security (DevSecOps), and the organization of software engineering teams are independent of the software being built.</p><p>The talks were recorded in front of an audience of MVPs and various people from the field in Microsoft.</p><p><a href="https://www.youtube.com/watch?v=tj5mfW_gtRU"><strong>Combining Dev and Test/QA into a Software Engineering Discipline</strong></a> Until 2014, Microsoft traditionally had separate developer (SDE) and tester/QA (SDET) roles in engineering. This talk covers our experience merging the dev and test teams into a single software engineering team. This fixed a lot of dysfunction that existed when the two were separate orgs.</p><p><a href="https://www.youtube.com/watch?v=7fW4wZbJtg0"><strong>Changing a Team’s Mindset about Security</strong></a> (<a href="https://docs.microsoft.com/en-us/devops/operate/security-in-devops">summary</a>) This talk received the highest feedback of any that day. It’s about changing the mindset around security. So often people think of security as a tax — having to run a bunch scans and going through security design reviews. While those are important, what matters most is getting engineers to think about security with every line of code they write. So often it’s easy for engineers to dismiss security bugs in other people’s code (“of course, I would never do that!”). There’s no better way to change a team’s perspective than attacking your own service to make vulnerabilities personal.</p><p><a href="https://www.youtube.com/watch?v=-LvCJpnNljU"><strong>Running an Agile Team</strong></a> We often were asked how we did planning, organized our teams, and managed the overall process. In this talk, you’ll learn about our journey and the cadence that the team operated on.</p><h3><strong>Higher Velocity through Fast and Reliable Testing</strong></h3><p><a href="https://www.youtube.com/watch?v=iJkI8PwlxR4"><strong>Shift Left to Test Fast and Reliably</strong></a> (<a href="https://docs.microsoft.com/en-us/devops/develop/shift-left-make-testing-fast-reliable">summary</a>, <a href="https://devblogs.microsoft.com/bharry/testing-in-a-cloud-delivery-cadence/">blog post</a>) We put a lot of effort into building a highly reliable test system as part of our engineering system. We had tests that were flaky and slow. When you have flaky tests, engineers ignore test failures (so you lose twice — the tests are ignored yet the engineer’s changes were delayed getting checked in). In 2014 I started an effort that resulted in the tests for the product being rewritten. When we were done a little more than 2 years later, you could count on a broken test meaning you had a bug.</p><p><a href="https://www.youtube.com/watch?v=Q4c5cvt1b3k"><strong>Eliminating Flaky Tests</strong></a> Tests are code, so they will have bugs just like the product. So we built a system for identifying flaky tests to ensure they would not be counted as failures until they were fixed.</p><p><a href="https://www.youtube.com/watch?v=jFXTryMp5KY"><strong>Testing in Production</strong></a> Even with a great set of tests in your engineering system, you’ll still need to be able to do testing in production.</p><h3>Moving to the Cloud</h3><p><a href="https://www.youtube.com/watch?v=yVnVY2HPVsI"><strong>Cloud Patterns for Resiliency (Circuit Breakers and Throttling)</strong></a> After some painful incidents, we introduced circuit breakers and throttling to be able to handle spikes in load. This is particularly important in a multi-tenant system where one customer can cause bad experiences for other customers in the system.</p><p><a href="https://www.youtube.com/watch?v=ed3ziUDq_n0"><strong>Progressive Deployment with Feature Flags</strong></a><strong> </strong>(<a href="https://docs.microsoft.com/en-us/devops/operate/progressive-experimentation-feature-flags">summary</a>)<strong> </strong>Being able to have granular control over what is enabled where and for whom is hugely valuable for being able to minimize negative impact if something goes wrong as well as getting very early feedback from select customers. The original motivation for us to do it came from a long-running live site incident that we had in 2013. Most teams building cloud services from the beginning will include support for feature flags where for us is was something we needed to add when moving to the cloud.</p><p><a href="https://www.youtube.com/watch?v=UCP-e3sKL8k"><strong>Live Site Culture and Site Reliability</strong></a> Here covered how we monitored the system. One of the best things that we did is run the <a href="https://devblogs.microsoft.com/bharry/how-do-you-measure-quality-of-a-service/">availability model</a> in near-real time. When we first started doing this, we found a number of issues we had been completely blind to. We also wrote detailed postmortems for our outages for customers (which always made marketing nervous, but our customers loved the transparency). Here’s one of the <a href="https://devblogs.microsoft.com/bharry/a-rough-patch/">early ones</a>. The <a href="https://devblogs.microsoft.com/devopsservice/?p=17485">outage September 4, 2018 </a>was the worst I was ever involved with. If you want a good debugging story, read this <a href="https://devblogs.microsoft.com/devopsservice/?p=15946">preliminary postmortem </a>and the <a href="https://devblogs.microsoft.com/devopsservice/?p=16295">final postmortem </a>(it was a great example of why it’s important to keep digging).</p><p><a href="https://www.youtube.com/watch?v=9frodP5xLxk"><strong>VSTS: From Monolith to Cloud Service</strong></a> Azure DevOps evolved from an on-premises product that was monolithic into a set of cloud services. This is most relevant to teams going through a similar journey of moving existing software into the cloud. In this talk I cover telemetry, single points of failure, SQL guidelines — it’s a wide range of topics.</p><p><a href="https://www.youtube.com/watch?v=wTYoW41U2n8"><strong>Achieving No Downtime Upgrades through Version Service Updates</strong></a> (<a href="https://docs.microsoft.com/en-us/devops/operate/achieving-no-downtime-versioned-service-updates">summary</a>) Since the service began as an on-premises product, all of the upgrades in the beginning required down time, which is terrible for a service used around the world. So early on we had to make changes to support upgrades that would happen online without users noticing at all. We describe the challenges we had and how we dealt with them.</p><p><a href="https://www.youtube.com/watch?v=QP_u4ipP2SU"><strong>Safely Deploying Around the World</strong></a> (<a href="https://docs.microsoft.com/en-us/devops/operate/safe-deployment-practices">summary</a>) You never want to deploy everywhere at once. It’s best to deploy in a sequence, starting small and growing as the deployment proves reliable. Here we describe what internally is called “safe deployment practice.”</p><p>I also gave a talk at VS Live! in 2017, <a href="https://www.youtube.com/watch?v=3LpuncdAehE"><strong>Lessons Learned from Doing DevOps at Microsoft Scale</strong></a><strong> </strong>(<a href="https://www.slideshare.net/BuckHodges/lessons-learned-doing-devops-at-scale-at-microsoft/1">slides</a>), that covered some of these topics in an hour. It covers four topics.</p><ol><li>Controlling exposure using feature flags</li><li>Greater resiliency by using circuit breakers</li><li>Live site management and the importance of root cause</li><li>Transforming our tests to become fast and reliable.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77001fbf07f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A Poem]]></title>
            <link>https://medium.com/@buckh/a-poem-77ac0e07fd67?source=rss-92525b13ccf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/77ac0e07fd67</guid>
            <category><![CDATA[poetry]]></category>
            <dc:creator><![CDATA[Buck Hodges]]></dc:creator>
            <pubDate>Mon, 02 Jul 2018 02:16:15 GMT</pubDate>
            <atom:updated>2018-07-02T02:16:15.971Z</atom:updated>
            <content:encoded><![CDATA[<p>My daughter wrote a great poem for the beach. I thought I’d share it here.</p><blockquote><strong>My Beloved Sunset Beach</strong></blockquote><blockquote>Your wind whips my hair back and forth,</blockquote><blockquote>your sand stinging my eyes</blockquote><blockquote>My toes shiver in your cold, foamy water</blockquote><blockquote>You come and go indecisively</blockquote><blockquote>Fish speed through thin, glassy layers,</blockquote><blockquote>finding themselves trapped in your tiny tide pools</blockquote><blockquote>Crabs scuttle to and fro, nervous a seagull will swoop in for a snack</blockquote><blockquote>Waves of heat rise up from your blistering hot sand</blockquote><blockquote>I spot seashells littering the great expanse of you, like little jewels waiting to be found,</blockquote><blockquote>discovered</blockquote><blockquote>Bold pops of color cluster near your boardwalks, tanned, sandy people stretched out beneath</blockquote><blockquote>their shade</blockquote><blockquote>I glimpse dolphins leaping out of your crashing waves, swiftly diving out of sight with a splash</blockquote><blockquote>Later, your pure, tiny shaves of ice melt on my tongue,</blockquote><blockquote>your sweet, tangy flavor wrapping me in a tropical world</blockquote><blockquote>Your sign, Sunset Slush, swings merrily, asking me to come back every day to say hello</blockquote><blockquote>I absorb every detail, not wanting to forget you, Sunset Beach</blockquote><blockquote>The day we leave it feels as if the whole of you aches with remorse,</blockquote><blockquote>the seashells longing to be remembered,</blockquote><blockquote>the sand dollars, white in fear of my absence,</blockquote><blockquote>the waves, angrily crashing until I come once again to jump over them</blockquote><blockquote>I watch you grow smaller and smaller,</blockquote><blockquote>hear the sound of your pounding waves fading</blockquote><blockquote>feel a piece of my heart gone, still playing on you,</blockquote><blockquote>waiting for me to return once again</blockquote><blockquote>to make it whole</blockquote><blockquote>Year after year,</blockquote><blockquote>I hate saying goodbye</blockquote><blockquote>to you, Sunset Beach,</blockquote><blockquote>whom I know and love so well.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=77ac0e07fd67" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[VSTS: Lessons Learned doing DevOps at Microsoft at Scale]]></title>
            <link>https://medium.com/@buckh/vsts-lessons-learned-doing-devops-at-microsoft-at-scale-990da0ca5653?source=rss-92525b13ccf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/990da0ca5653</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[chaos-engineering]]></category>
            <category><![CDATA[vsts]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-services]]></category>
            <dc:creator><![CDATA[Buck Hodges]]></dc:creator>
            <pubDate>Sat, 02 Dec 2017 15:54:31 GMT</pubDate>
            <atom:updated>2018-04-18T13:24:42.845Z</atom:updated>
            <content:encoded><![CDATA[<p>A couple of weeks ago I gave a keynote at VS Live! 2017 on lessons we’ve learned doing DevOps at scale. In this talk I cover four key topics and what we’ve learned in each.</p><ol><li><strong>Controlling exposure using feature flags.</strong> This is critical to be able to decouple engineering work and deployment from broad availability.</li><li><strong>Resiliency by using circuit breakers.</strong> Early on we had no way to automatically shed load and short circuit requests which lead to cascading failures. Circuit breakers are key to containing failure and building a resilient system.</li><li><strong>Live site management and the importance of root cause.</strong> It’s tempting in the moment just to mitigate a problem to get out of the emergency, but if you don’t get to root cause, the problem will occur again. Balancing the tension of fast resolution and getting to root cause is key.</li><li><strong>Transforming our tests to become fast and reliable.</strong> This is perhaps the biggest change we’ve made to how we work. We’ve revamped our testing to go from long-running, unreliable tests to fast, reliable tests that the team can depend on and run constantly.</li></ol><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F3LpuncdAehE%3Ffeature%3Doembed&amp;url=http%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D3LpuncdAehE&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F3LpuncdAehE%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/3fa4892939d09cd8a3795e9020653207/href">https://medium.com/media/3fa4892939d09cd8a3795e9020653207/href</a></iframe><p>You can find the slides <a href="https://www.slideshare.net/BuckHodges/lessons-learned-doing-devops-at-scale-at-microsoft">here</a>.</p><p>Go deeper on these topics and many others in a series of videos on how we do DevOps at Microsoft: <a href="https://aka.ms/DevOps">aka.ms/DevOps</a>.</p><p>Enjoy!</p><p><em>Follow me at </em><a href="https://twitter.com/tfsbuck"><em>twitter.com/tfsbuck</em></a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=990da0ca5653" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Brand new office in Raleigh, North Carolina]]></title>
            <link>https://medium.com/@buckh/brand-new-office-in-raleigh-north-carolina-8e250a5929f0?source=rss-92525b13ccf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/8e250a5929f0</guid>
            <category><![CDATA[startup]]></category>
            <dc:creator><![CDATA[Buck Hodges]]></dc:creator>
            <pubDate>Wed, 18 Jan 2017 00:00:00 GMT</pubDate>
            <atom:updated>2017-10-13T02:56:59.945Z</atom:updated>
            <content:encoded><![CDATA[<p>Right after Thanksgiving we moved the North Carolina team to a brand new <a href="https://www.google.com/maps/place/3025+Carrington+Mill+Blvd,+Morrisville,+NC+27560/@35.8647575,-78.8352583,17z/data=!3m1!4b1!4m5!3m4!1s0x89acf1d6dbb6f619:0xf5b1751039f4562!8m2!3d35.8647575!4d-78.8330696">office in Morrisville</a>, just two miles from our old location. We were at the previous location for more than 12 years. When we moved in there, we took the office space as it was. That meant a lot of randomly shaped offices of widely varying sizes. It served us well, but we were overcrowded with the expansion that had been happening over the last couple of years. We’ve now grown the VS Team Services team here to about 110 people, and we’re <a href="http://aka.ms/vstsjobs">hiring more</a>. For comparison, the TFS team in Redmond and NC combined was 130 people in the summer of 2012. Additionally, there are folks from sales and consulting in the same office space.</p><p>I first started talking with Microsoft Real Estate and Facilities on acquiring more space in January 2015. We picked out a building in June 2015. The building was still under construction and opened in October 2015. Starting in the fall of 2015 and into the spring of 2016 we went through a design process. A critical part of that process was having a set of six folks work closely with the designers. They are engineers, a PM, and a lead with different backgrounds, time at Microsoft, and different previous employment experience. They did an outstanding job.</p><p>Our first day in the new office was November 28, 2016. It wasn’t entirely finished when we moved in. In fact, on the first day several of us were running Ethernet cables in the racks of the network closet to wire up the outlets on the wall. Without a network, life comes to a standstill!</p><p>For the new office, it’s designed like the new spaces in Redmond. Each team is in a neighborhood that consists of a team room, meeting rooms, and codeboxes. There are collaboration spaces spread throughout the office. We also have the entire team on a single floor for the first time in many years. It’s amazing what a difference being separated by two floors makes for cross team interactions.</p><p>Let’s take a look at the new space. First is the entrance and reception area (we have the second floor of the building).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6Z439bXeS1v1DIBQ.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*K65O6ggkWkb5JOaZ.jpg" /></figure><p>Yes, that is petrified moss on the wall.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xJE0HJSToKaq9OJM.jpg" /></figure><p>On the other side of the entrance is the “hub” with the main gathering area and ping pong table. One of our traditions in the NC office is pizza day (first Thursday of every month), so it was important to have space for a lot of people to get together. Additionally, we don’t have a cafeteria here. We would need to be several times larger than we are for that. So, there are quite a few people who bring lunch and eat together.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*otWKx1uHKhL0EdY9.jpg" /></figure><p>To the left of this picture is the seating space pictured above. There’s now a retractable glass wall installed into the gap on the left.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MZYZFF-XxSEBimKg.jpg" /></figure><p>We have official Microsoft art. In fact, a Microsoft art curator flew here to hang it. Maybe that’s a bit excessive.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4UqEFccZVRC1Kx_7.jpg" /></figure><p>We have a very nice customer space, which includes a very large room that also works for all-hands meetings.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JrQFuKit7j5qTtgn.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qDNDpaCbiIg6CMVx.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gwc6hoJPftpmrJSZ.jpg" /></figure><p>The neighborhoods consist of team rooms, collaboration space, focus rooms, and codeboxes. Each team room has a large 80” display.</p><p>Here’s the team room for the build team. Each of the neighborhoods has a mountain theme, taken from the Blue Ridge and Great Smoky mountains.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*3py5c2HwB-b-wazs.jpg" /></figure><p>Here’s one of the version control teams.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*b8NPklFzGRxUsMoL.jpg" /></figure><p>The Cross Platform team decorated their dedicated conference room. There’s a teapot in there, too.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*n1f0m9UFOHBnivJ6.jpg" /></figure><p>The focus rooms are great for meetings of a handful of people. You can see one of the collaboration spaces between neighborhoods in the background. Those lines that you see on the glass are from topographical maps of the mountains. Many rooms have windows that are mostly transparent with lines, while some are mostly not transparent with clear lines.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*UHO7nd82wWSxKs-r.jpg" /></figure><p>The codeboxes are equipped with a pair of monitors, a keyboard, mouse, and a universal docking station. These provide space for uninterrupted time as well as a place to join conference bridges for live site incident investigations. By the way, those big, tall doors to the rooms are from Italy. Why, I have no idea. At one point they were stuck in customs. The brown wallpaper is natural cork. It’s hard to tell that in the photos from my phone, but it looks really good.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*5SNdgfdOAPKY7JxZ.jpg" /></figure><p>There are a number of conference rooms spread throughout.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Wy-HI2AUGV8FnFpP.jpg" /></figure><p>We also have some nice banquettes that provide a good place to hang out and talk or even code if you want that coffee shop feeling sitting next to the break room.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Y07aLaMdfBBPo4nU.jpg" /></figure><p>We also have what you might call overhead corner. Yep, a bunch of managers in a team room. My desk is on the left where the red lunch bag is, next to Ed. You can see Brian in the background. He’s on the phone more than any other person, so he’s got a place where he can shut the door. It’s worked out well, and he’s an active participant in the team room as well when he’s not on the phone.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*bJ2vWB4-Uha757T4.jpg" /></figure><p>Our team room is long and narrow. This is facing the toward the wall on the right in the picture above. Taylor’s in deep thought.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wpxuSDpZbpEkWmHd.jpg" /></figure><p>Every project has its funny mistakes. Check out the height of these chairs: someone ordered the wrong bases. I’ve been promised they will get fixed. Also, if you look closely at the desks in the pictures above, they have no casters. Someone inadvertently left them off the order. They are going to come through one week end, jack up each desk, and install them (I’m not making that up).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*JqV5D16zlyKUPMSV.jpg" /></figure><p>One very cool benefit of this building is that there is a gym on the first floor. We don’t have the soccer and softball fields (or towel service) they have in Redmond, but we now have access to a nice gym.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Zw6b2lAamEOCP_Nv.jpg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MdjcL8Kp2stA905t.jpg" /></figure><p>That’s a quick tour of our beautiful new office space for the part of the team in North Carolina. <a href="http://aka.ms/vstsjobs">We’re also hiring</a>, both in NC and in Redmond, so come <a href="http://aka.ms/vstsjobs">join us</a>!</p><p><em>Follow me at </em><a href="https://twitter.com/tfsbuck"><em>twitter.com/tfsbuck</em></a></p><p><em>Originally published at </em><a href="https://blogs.msdn.microsoft.com/buckh/2017/01/18/brand-new-office-in-north-carolina/"><em>blogs.msdn.microsoft.com</em></a><em> on January 18, 2017.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8e250a5929f0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Controlling exposure through feature flags in VS Team Services]]></title>
            <link>https://medium.com/@buckh/controlling-exposure-through-feature-flags-in-vs-team-services-bf1f6cf2047a?source=rss-92525b13ccf2------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf1f6cf2047a</guid>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[rugged-devops]]></category>
            <category><![CDATA[service-design]]></category>
            <category><![CDATA[agile]]></category>
            <category><![CDATA[devops]]></category>
            <dc:creator><![CDATA[Buck Hodges]]></dc:creator>
            <pubDate>Fri, 30 Sep 2016 00:00:00 GMT</pubDate>
            <atom:updated>2017-10-13T02:57:43.715Z</atom:updated>
            <content:encoded><![CDATA[<p>One question that I often get from customers is how we manage exposing features in the service. Features may not be complete or need to be revealed at a particular time. We may want to get early feedback. With the team working in master and deploying every three-week sprint, let’s take a look at how we do this for Team Services.</p><p><strong>Goals</strong></p><p>Our first goal is decoupling deployment and exposure. We want to be able to control when a feature is available to users without having to time when the code is committed. This allows engineering the freedom to implement the feature based on our needs while also allowing control for the business on when a feature is announced. Next we want to be able to change the setting at any scope from globally to particular scale units to accounts to individual users. This granularity gives us a great deal of flexibility. We can deploy a feature and then expose it to select users and accounts. That allows us to get feedback early, which includes not only what users tell us but also how the feature is used based on aggregated telemetry. Additionally, we want to be able to react quickly if a feature causes issues and be able to turn it off quickly.</p><p>To make all of this work well, we need to be able to change a feature flag’s state without re-deploying any of our services. We need each service to react automatically to the change to minimize the propagation delay.</p><p>As a result, we have the following goals.</p><ul><li>Decouple deployment and exposure</li><li>Control down to an individual user</li><li>Get feedback early</li><li>Turn off quickly</li><li>Change without redeployment</li></ul><p><strong>Feature flags</strong></p><p>Feature flags, sometimes called feature switches, allow us to achieve our goals. At the core, a feature flag is nothing more than an input to an if statement in the code: if the flag is enabled, execute a new code path, and else if not, execute the existing code path.</p><p>Let’s look at an actual example. In this case I want to control whether a new feature to revert a pull request is available to the user. I’ve highlighted the Revert button in the screen shot.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*QwZyw5Y1Evw1lPTg.png" /></figure><p>First we need to define the feature flag. We do that by defining it in an XML file. Each service in VSTS has its own set of flags. Here’s part of the actual file that defines the feature flag for this button with the name of the feature flag highlighted.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*R_OD65aOI2L84MqIKHtqVw.png" /></figure><p>When we deploy the service that defined this feature flag, the deployment engine will create the feature flag in the database.</p><p>Using the feature flag in code is simple. Here’s the Typescript code that is used to create the button. I’ve combined contents from two files. The export is from a file that defines constants. The rest is from the code to create the button on the page. I’ve highlighted the flag and the button creation. In this case, there was no prior code, so if the flag is off, nothing gets added to the page.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*HXUEwH5pbv72EmYKEErdQQ.png" /></figure><p>In addition to the web UI, the code for the MVC controller is also protected with a feature flag. I’m omitting the definition of the constant and some of the code for brevity, but as you can see the only mention of the feature flag is in the attribute on the controller, making it really easy to control the feature with a flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/817/1*krhLrIkK1LB0RsGW2G6Buw.png" /></figure><p>The FeatureEnabled attribute checks to see if the specified feature flag is enabled and throws an exception if not.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/861/1*1HYnwiUKvBmp4u1cTdJGpg.png" /></figure><p>Other than some similar code for a menu entry for revert, the feature flag has now been added for the new feature.</p><p><strong>Controlling feature flags</strong></p><p>We have both PowerShell commands and a web UI to turn the feature flags off and on for different scopes.</p><p>Our PowerShell commands are what you would expect: Get-FeatureFlag and Set-FeatureFlag. Here are some examples of what they can do.</p><p>Getting all flags and their states globally Get-FeatureFlag Getting all flags and states for a single account Get-FeatureFlag -Host account Getting information for one flag globally Get-FeatureFlag -Name feature_name Getting information for one flag in account Get-FeatureFlag -Name feature_name –Host account Setting a feature flag globally Set-FeatureFlag -Name feature_name -State {Off|On|Undefined} Setting a feature flag for a single account Set-FeatureFlag -Name feature_name -State {Off|On|Undefined} -Host account</p><p>We also have internal site that provides an interactive way to do the same operations. In this example, you can see that I have the feature flag for the revert feature on for one of my personal accounts and off for the other. This is a great way to be able to control the flags for accounts on demand, such as when we allowed customers to <a href="https://blogs.msdn.microsoft.com/buckh/2016/05/10/would-you-like-ssh-turned-on-for-your-team-services-account/">request SSH</a> before it became broadly available.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/849/0*pLSVr7BHRnYFJM3P.png" /></figure><p><strong>Turn it off!</strong></p><p>It’s important to have the right telemetry to monitor new features. If we find that a feature is causing problems, we can turn the feature flag off. Since there’s no deployment involved — just a script or change in the administrative web UI — we can quickly revert to the prior behavior.</p><p><strong>Testing</strong></p><p>New features that are hidden behind a feature flag are deployed with the flag turned off. As we start turning on the feature for users or accounts, both the old and new code will be executing. We need to test both with the feature flag on and off to ensure it works. This also critical for ensuring the feature can be turned off quickly if something goes wrong.</p><p>Tests can easily control whether a flag is on or off by calling methods like the following.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/819/1*qE60zQEcYojPmUnI7PjzHg.png" /></figure><p>Tests can be run conditionally based on the state of a flag.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/818/1*fLq6-1wJhj7rU2R9JaeVhQ.png" /></figure><p>Since most feature flags are used initially with a default state of off, it’s also easy to set them in the test environment for the test run.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/816/1*zSl9ZfsJPCVEFr1-PmtPPQ.png" /></figure><p><strong>Stages</strong></p><p>I mentioned earlier that we can use feature flags to get feedback. We also use them to allow our own team to begin using the feature to help flush out bugs (it’s a great to build the service that we use). Rather than have every team invent their own process, we established a process to roll out features in a standardized way. This provides an opportunity to gather feedback and bugs early on in the development process.</p><p>We have standard stages that we’ve defined that each team can use. How quickly a feature goes through the stages depends on the scope of the feature, feedback, and telemetry. The stages include an increasingly broad group of users with increasingly diverse perspectives.</p><p><strong>Stage 0</strong> — Canary<br>This is the first phase and is the account used by the VSTS team plus select internal accounts. Program managers are responsible for sending out communication to the users once the feature flags are enabled.</p><p><strong>Stage 1</strong> — MVPs &amp; Select Customers<br>This is the second phase and will include MVPs and select top customers who have opted in. Program managers are again responsible for emailing the users.</p><p><strong>Stage 2</strong> — Private Preview<br>Private preview is used for major new features and services and is designed to test new features with a broader set of customers that we don’t have regular contact with. There are many ways to collect a list of customers for a private preview — from forum interaction, blog comments, etc. We’ve also done invitation codes, publicized email aliases for customers to request access, as we did for SSH access, and sometimes create in-product “opt-in” experiences for customers, as we’ve done for the new navigation UI. Individual teams will manage and communicate directly with their private preview customers.</p><p><strong>Stage 3</strong> — Public Preview<br>Public preview is a state reserved for major new features and services where we want to gather feedback but are not yet ready to provide a full SLA, etc. Public Preview features are enabled for all VSTS customers but their main entry points in the UI are annotated with a “preview” designation so that customers understand this is not a completed feature. When a feature enters public preview, it is announced in the VSTS news feed and may also be accompanied by marketing communication, depending on the feature.</p><p><strong>Stage 4</strong> — General Availability (GA)<br>GA denotes when a feature/service is available to all customers and fully supported (SLA, etc).</p><p><strong>Cleaning up flags</strong></p><p>It’s easy to accumulate a lot of flags that are no longer used, so after a feature has been in production and fully available, teams decide when to delete the feature flag and the old code path. This may happen a few weeks or a few months later, depending on the scope of the feature.</p><p><strong>Events</strong></p><p>One of our goals is to allow for features to be unveiled at events in some cases. If you want to unveil a feature at an event, when do you enable it?</p><p>We learned the hard way that it’s not the morning of the event. Several years ago at the Connect 2013 event we turned on a large set of feature flags just before a keynote and demo. The service was unusable. By turning on feature flags at the same time, we had a large amount of new code interacting with the system under production load, and the system fell apart. You can read about details of the incident in Brian’s post, <a href="https://blogs.msdn.microsoft.com/bharry/2013/11/25/a-rough-patch/">A Rough Patch</a>. At that time, we didn’t have stages, and we only had one public scale unit.</p><p>As a result of that experience, we ensure that feature flags are enabled in production at least 24 hours ahead of an event so that the code is under full production load. That leaves us time to react, whether to fix problems or disable features, before the event starts. Of course, this means that new features could be discovered early. That’s certainly a possibility, but it’s mitigated by controlling the entry points, making the new features hard to find except for the customers who’ve gotten early access or knowing where to look (perhaps setting a special cookie). Some of it comes down to a judgment call.</p><p>We followed this policy when we unveiled the <a href="https://marketplace.visualstudio.com/vsts">Marketplace</a> at the Connect 2015 event. In contrast to the event in 2013, everything worked as it should during the event.</p><p><strong>Summary</strong></p><p>Feature flags have become a critical part of how we roll out feature, get feedback, and allow engineering and marketing to proceed on their own schedules. It’s hard to imagine DevOps services without them!</p><p>While we built our own implementation, you don’t have to. <a href="https://launchdarkly.com/">LaunchDarkly</a> offers <a href="http://blog.launchdarkly.com/launched-enterprise-feature-flag-management/">feature flags as a service</a>, including a <a href="https://marketplace.visualstudio.com/items?itemName=launchdarkly.launchdarkly-extension">LaunchDarkly VSTS extension</a> to integrate with VSTS work items and releases.</p><p><em>Follow me at </em><a href="https://twitter.com/tfsbuck"><em>twitter.com/tfsbuck</em></a></p><p><em>Originally published at </em><a href="https://blogs.msdn.microsoft.com/buckh/2016/09/30/controlling-exposure-through-feature-flags-in-vs-team-services/"><em>blogs.msdn.microsoft.com</em></a><em> on September 30, 2016.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf1f6cf2047a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>