CINXE.COM
Productivity in the age of hypergrowth. | Irrational Exuberance
<!doctype html><html lang=en-us><head><meta charset=utf-8><meta http-equiv=X-UA-Compatible content="IE=edge,chrome=1"><title>Productivity in the age of hypergrowth. | Irrational Exuberance</title><meta name=viewport content="width=device-width,minimum-scale=1"><meta name=description content="There are few things more exciting than being at a company during hypergrowth, but it’s easy to let hypergrowth get away from you, and to end up reacting instead of planning. It’s hard to steer when you’re rebuilding a plane mid-flight, but you can always nudge it in the right direction."><meta name=generator content="Hugo 0.139.0"><meta name=ROBOTS content="INDEX, FOLLOW"><link rel=stylesheet href=/ananke/dist/main.css_5c99d70a7725bacd4c701e995b969fea.css><link rel=stylesheet href=/static/pygments.css><meta property="og:title" content="Productivity in the age of hypergrowth."><meta property="og:description" content="There are few things more exciting than being at a company during hypergrowth, but it’s easy to let hypergrowth get away from you, and to end up reacting instead of planning. It’s hard to steer when you’re rebuilding a plane mid-flight, but you can always nudge it in the right direction."><meta property="og:type" content="article"><meta property="og:url" content="https://lethain.com/productivity-in-the-age-of-hypergrowth/"><meta property="og:image" content="https://lethain.com/static/author.png"><meta property="article:section" content="posts"><meta property="article:published_time" content="2016-10-10T19:43:49-07:00"><meta property="article:modified_time" content="2016-10-10T19:43:49-07:00"><meta itemprop=name content="Productivity in the age of hypergrowth."><meta itemprop=description content="There are few things more exciting than being at a company during hypergrowth, but it鈥檚 easy to let hypergrowth get away from you, and to end up reacting instead of planning. It鈥檚 hard to steer when you鈥檙e rebuilding a plane mid-flight, but you can always nudge it in the right direction."><meta itemprop=datePublished content="2016-10-10T19:43:49-07:00"><meta itemprop=dateModified content="2016-10-10T19:43:49-07:00"><meta itemprop=wordCount content="2300"><meta itemprop=image content="https://lethain.com/static/author.png"><meta itemprop=keywords content="Management"><meta name=twitter:card content="summary"><meta name=twitter:image content="https://lethain.com/static/author.png"><meta name=twitter:title content="Productivity in the age of hypergrowth."><meta name=twitter:description content="There are few things more exciting than being at a company during hypergrowth, but it’s easy to let hypergrowth get away from you, and to end up reacting instead of planning. It’s hard to steer when you’re rebuilding a plane mid-flight, but you can always nudge it in the right direction."><script defer data-domain=lethain.com src=https://plausible.io/js/script.js></script></head><body class="ma0 avenir bg-white production"><header><div class=bg-white><nav class="pv3 ph3 ph4-ns" role=navigation><div class="flex-l justify-between items-center center"><a href=/ class="f3 fw2 no-underline black-90 dib">Irrational Exuberance</a><div class="flex-l items-center"><ul class="pl0 mr3"><li class="list f5 f4-ns fw4 dib pr3"><a class="no-underline black-90" href=/featured/ title="Popular page">Popular</a></li><li class="list f5 f4-ns fw4 dib pr3"><a class="no-underline black-90" href=/tags/ title="Tags page">Tags</a></li><li class="list f5 f4-ns fw4 dib pr3"><a class="no-underline black-90" href=/newsletter/ title="Newsletter page">Newsletter</a></li><li class="list f5 f4-ns fw4 dib pr3"><a class="no-underline black-90" href=/feeds.xml title="RSS page">RSS</a></li><li class="list f5 f4-ns fw4 dib pr3"><a class="no-underline black-90" href=/about title="About page">About</a></li></ul></div></div></nav></div></header><main class=pb7 role=main><article class="flex-l flex-wrap justify-between mw8 center ph3"><header class="mt4 w-100"><h1 class="f1 athelas mt3 mb1">Productivity in the age of hypergrowth.</h1><div class=mt4><a href=/tags/management class="link f5 mid-gray no-underline sans-serif">management (203)</a></div></header><div class="nested-copy-line-height lh-copy serif f5 nested-links nested-img mid-gray pr4-l w-two-thirds-l"><p>You don’t hear the term <a href=https://hbr.org/2008/04/managing-hypergrowth title="Managing Hypergrowth">hypergrowth</a> quite as much as you did a couple years ago. Sure, you might hear it any given week, but you might open up Techmeme and not see it, which is a monumental return to a kinder, gentler past. (Or perhaps we’re just <a href=http://fortune.com/2015/03/15/bill-gurley-predicts-dead-unicorns-in-startup-land-this-year/ title="Bill Gurley predicts dead unicorns">unicorning</a> now.)</p><p>Fortunately for engineering managers everywhere, the challenges of managing in quickly growing companies still very much exist.</p><p><a href=https://gist.github.com/lethain/e29eb62c44795ccbb6a9767a3d13068d><img src=/static/blog/2016/headcount_by_year.png alt="The number of employees by year for Uber, Google, Facebook, and Twitter"></a></p><p>When I started at Uber, we were almost 1,000 employees and doubling headcount every six months. An old-timer summarized their experience as:</p><blockquote><p>We’re growing so quickly, that every six months we’re a new company.</p></blockquote><p>A bystander quickly added a corollary:</p><blockquote><p>Which means our process is always six months behind our headcount.</p></blockquote><p>Helping your team be successful when defunct process merges with a constant influx of new engineers and system load has been one of the most rewarding opportunities I’ve had in my career, and this is an attempt to explore the challenges and some strategies I’ve seen for mitigating and overcoming them.</p><h2 id=more-engineers-more-problems>More engineers, more problems</h2><p>All real-world systems have some degree of inherent self-healing properties: an overloaded database will slow down enough that someone fixes it, overwhelmed employees will get slow at finishing work until someone finds a way to help.</p><p>Very few real-world systems have efficient and deliberate self-healing properties, and this is where things get exciting as you double engineers and customers year over year over year.</p><p><img src=/static/blog/2016/more_employees_more_customers.png alt="More employees, more customers, more problems."></p><p>Productively integrating large numbers of engineers is hard.</p><p>Just how challenging depends on how quickly you can ramp engineers up to self-sufficient productivity, but if you’re doubling every six months and it takes six to twelve months to ramp up, then you can quickly find a scenario where untrained engineers increasing outnumber the trained engineers, and each trained engineer is devoting much of their time to training a couple of newer engineers.</p><p><img src=/static/blog/2016/training.png alt="Worst-case training scenario."></p><p>Imagine a scenario where:</p><ol><li>training takes about ten hours per week from each trained engineer,</li><li>untrained engineers are 1/3rd as productive as trained engineers,</li></ol><p>and you reach the above chart’s (admittedly, pretty worst-case scenario) ratio of two untrained to one trained. Worse, for those three people you’re only getting the productivity of <code>1.16</code> trained engineers (<code>2 * .33</code> for the untrained engineers plus <code>.5 * 1</code> for the trainer).</p><p>You also need to factor in the time spent on hiring.</p><p>If you’re trying to double every six months, and about ten percent of candidates undertaking phone screens eventually join, then you need to do ten interviews per existing engineer in that time period, with each interview taking about two hours to prep, perform and debrief.</p><p>That’s only four hours per month if you can leverage your entire existing team, but training comes up again here: if it takes you six months to get the average engineer onto your interview loop, each trained engineer is now doing three to four hours of hiring related work a week, and your trained engineers are down to <code>0.4</code> efficiency. The overall team is getting <code>1.06</code> engineers of work out of every three engineers.</p><p>It’s not just training and hiring though:</p><ol><li>For every additional order of magnitude of engineers you need to design and maintain a new layer of management.</li><li>For every ~10 engineers you need an additional team, which requires <a href=https://www.amazon.com/Mythical-Man-Month-Software-Engineering-Anniversary/dp/0201835959>more coordination</a>.</li><li>Each engineer means more commits and deployments per day, creating load on your development tools.</li><li>Most outages are caused by deployments, so more deployments drive more outages, which in turn require incident management, mitigations and postmortems.</li><li>More engineers lead to more specialized teams and systems, which require increasingly small oncall rotations for your oncall engineers to have enough system context to debug and resolve production issues, so relative time invested in oncall goes up.</li></ol><p>Let’s do a bit more handwavy math to factor these in.</p><p>Only your trained engineers can go oncall, they’re oncall one week a month, and are busy about half their time oncall. So that’s a total impact of five hours per week for your trained engineers, who are now down to <code>0.275</code> efficiency, and your team overall is now getting less than the output of a single trained engineer for every three engineers you’ve hired.</p><p>(This is admittedly an unfair comparison because it’s not accounting for the oncall load on the smaller initial teams, but if you accept the premise that oncall load grows as engineer headcount grows and load grows as the number of rotation grows, then the conclusion should still roughly hold.)</p><p>Although it’s rarely quite this extreme, this is where the oft raised concern that hiring is slowing us down comes from: at high enough rates, the marginal added value of hiring gets very slow, especially if your training process is weak.</p><p>Sometimes very low means negative!</p><h2 id=systems-survive-one-magnitude-of-growth>Systems survive one magnitude of growth</h2><p>We’ve looked a bit at productivity’s tortured relationship with engineering headcount, so now let’s also think a bit about how the load on your systems is growing.</p><p>Understanding the overall impact of increased load comes down to a few important trends:</p><ol><li>Most system implemented systems are designed to support one to two orders magnitude of growth from current load. Even systems designed for more growth tend to run into limitations within one to two order of magnitude.</li><li>If your traffic doubles every six months, then your load increases an order of magnitude every eighteen months. (And sometimes new features or products cause load to increase much more quickly.)</li><li>The cardinality of supported systems increases over time as you add teams, and as “trivial” systems go from unsupported afterthoughts to focal points of entire teams as they reach scaling plateaus (things like Kafka, mail delivery, Redis, etc).</li></ol><p>If your company is designing systems to last one order of magnitude and doubling every six months, then you’ll have to reimplement every system twice every three years. This creates a great deal of risk–almost every platform team is working on a critical scaling project–and can also creates a great deal of resource contention to finish these concurrent rewrites.</p><p>However, the real productivity killer is not system rewrites, but the migrations which follow those rewrites. Poorly designed migrations expand the consequences of this rewrite loop from the individual teams supporting the systems to the entire surrounding organization.</p><p>If each migration takes a week, each team is eight engineers, and you’re doing four migrations a year, then you’re losing about 1% of your company’s total productivity. If each of those migrations takes closer to a month, or if they are only possible for your small cadre of trained engineers whose time is already tightly contended for, then the impact becomes far more pronounced.</p><p>There is a lot more that could be said here–companies that mature rapidly often have tight and urgent deadlines around moving to multiple datacenters, to active-active designs, to new international regions and other critical projects–but I think we’ve covered our bases on how increasing system load can become a drag on overall engineering throughput.</p><p>The real question is, what do we do about any of this?</p><h2 id=ways-to-manage-entropy>Ways to manage entropy</h2><p>My favorite observation from <a href=https://www.amazon.com/dp/B00AZRBLHO/ title="The Phoenix Project">The Phoenix Project</a> is that you only get value from projects when they finish: to make progress, above all else, you must ensure that some of your projects finish.</p><p>That might imply that there is an easy solution, but finishing projects is pretty hard when most of your time is consumed by other demands.</p><hr><p>Let’s tackle hiring first, as hiring and training are often a team’s biggest time investment.</p><p>When your company has decided it is going to grow, you cannot stop it from growing, but on the other hand you absolutely can concentrate that growth, such that your teams alternate between periods of rapid hiring and periods of consolidation and gelling. Most teams work best when scoped to approximately eight engineers, so as each team gets to that point, you can move the hiring spigot to another team (or to a new team). As the post-hiring team gels, eventually the entire group will be trained and able to push projects forward.</p><p><img src=/static/blog/2016/training_loop.png alt="Candidates get offers, becoming untrained, and then learn."></p><p>You can do something similar on an individual basis, rotating engineers off of interviewing periodically to give them time to recouperate. With high interview loads, you’ll sometimes notice last year’s solid interviewer giving a poor candidate experience or rejecting every incoming candidate. If they’re doing more than three interviews a week, it is a useful act of mercy to give them a month off every three or four months.</p><p>I have less evidence of how to tackle the training component of this, but generally you start to see larger companies do major investments into both new-hire bootcamps and recurring education class.</p><p>I’m optimistically confident that we’re not entirely cargo-culting this idea from each other, so it probably works, but I hope to get an opportunity to spend more time understanding how effective those programs can be. If you could get training down to four weeks, imagine how quickly you could hire without overwhelming the existing team!</p><hr><p>The second most effective time thief I’ve found is adhoc interruptions: getting pinged on HipChat or Slack, taps on the shoulder, alerts from your oncall system, high-volume email lists and so on.</p><p>The strategy here is to funnel interrupts into an increasingly small surface area, and then automate that surface area as much as possible. Asking people to file tickets, creating chatbots which automate filing tickets, creating a <a href=/service-cookbooks/>service cookbook</a>, and so on.</p><p>With that setup in place, create a rotation for people who are available to answer questions, and train your team not to answer other forms of interrupts. This is remarkably uncomfortable because we want to be helpful humans, but becomes necessary as the number of interrupts climb higher.</p><p>One specific tool that I’ve found extremely helpful here is an ownership registry which allows you to look up who owns what, eliminating the frequent “who owns X?” variety of question. You’ll need this sort of thing to automate paging the right oncall rotation, so might as well get two useful tools out of it!</p><p>A similar variant of this is adhoc meeting requests. The best tool I’ve found for this is to block out a few large blocks of time each week to focus. This can range from working from home on Thursday, to blocking out Monday and Wednesday afternoons, to blocking out from eight to eleven each morning. Experiment a bit and find something that works well for you.</p><p>Finally, the one thing I’ve found at companies with very few interrupts and almost nowhere else: really great, consistently available documentation. It’s probably even harder to bootstrap documentation into a non-documenting company than it is to bootstrap unittests into a non-testing company, but the best solution to frequent interruptions I’ve seen is a culture of documentation, documentation reading, and a documentation search that actually works.</p><p>There are a non-zero number of companies which do internal documentation well, but I’m less sure if there are a non-zero number of companies with more than twenty engineers who do this well. If you know any, please let me know so I can pick their brains.</p><hr><p>In my opinion, probably the most important opportunity is designing your software to be flexible. I’ve <a href=/fail-open-layer-policy/>described this as “fail open and layer policy”</a>; the best system rewrite is the one that didn’t happen, and if you can avoid baking in arbitrary policy decisions which will change frequently over time, then you are much more likely to be able to keep using a system for the long term.</p><p>If you’re going to have to rewrite your systems every few years due to increased scale, let’s avoid any unnecessary rewrites, ya know?</p><p>Along these lines, if you can keep your interfaces generic, then you are able to skip the migration phase of system reimplementation, which is tends to be the longest and trickiest phase, and can iterate much more quickly and maintain fewer concurrent versions. There is absolutely a cost to maintaining this extra layer of indirection, but if you’ve already rewritten a system twice, take the time to abstract the interface as part of the third rewrite and thank yourself later (by the time you’d do the fourth rewrite you’d be dealing with migrating six times the engineers).</p><p>Finally, a related antipattern is the gatekeeper pattern. Having humans who perform gatekeeping activities creates very odd social dynamics, and is rarely a great use of a human’s time. When at all possible, build systems with sufficient isolation that you can allow most actions to go forward and when they do occasion to fail, make sure they fail with a limited blast radius.</p><p>There are some cases where gatekeepers are necessary for legal or compliance reasons, or because a system is deeply frail, but I think we should generally treat gatekeeping as a significant implementation bug rather than a stability feature to be emulated.</p><h2 id=closing-thoughts>Closing thoughts</h2><p>None of the ideas here are instant wins. It’s my sense that managing rapid growth is more along the lines of stacking small wins than identifying silver bullets. I have used all of these techniques, and am using most of them today to some extent or another, so hopefully they will at least give you a few ideas.</p><p>Something that is somewhat ignored a bit here is how to handle urgent projects requests when you’re already underwater with your existing work and maintenance. The most valuable skill there is learning to say no in a way that is appropriate to your company’s culture, which probably deserves it’s own article. There are probably some companies where saying no is culturally impossible, and in those places I guess you either learn to say your no’s as yes’s or maybe you find a slightly easier environment to participate in.</p><p>How do you remain productive in times of hypergrowth?</p><div class="mt4 w-100"><time class="f6 mv4 dib tracked" datetime=2016-10-10T19:43:49-07:00>Published on October 10, 2016.</time></div><div class="mt6 instapaper_ignoref"></div></div><aside class="w-30-l mt1-l"><div class="bg-light-gray pa3 cf"><p class="f5 mb3">Hi folks. I'm <a href=/about>Will</a> aka <a href=https://twitter.com/lethain>@lethain</a>.<br>If you're looking to reach out to me, here are <a href=/ways-i-help/>ways I help</a>. If you'd like to get a email from me, subscribe to <a href=/newsletter/>my weekly newsletter</a>.</p><p>I wrote <a href=https://www.amazon.com/Elegant-Puzzle-Systems-Engineering-Management/dp/1732265186>An Elegant Puzzle</a>, <a href=https://staffeng.com/book>Staff Engineer</a>, and <a href=https://www.oreilly.com/library/view/the-engineering-executives/9781098149475/>The Engineering Executive's Primer</a>.</p><p class=cf><div class="fl w-third"><a href=https://www.amazon.com/Elegant-Puzzle-Systems-Engineering-Management/dp/1732265186><img src=/static/blog/2019/aep-small-lq.jpg></a></div><div class="fl w-third"><a href=https://staffeng.com/book><img src=/static/blog/staffeng/StaffEngBookMed.jpg></a></div><div class="fl w-third"><a href=https://www.oreilly.com/library/view/the-engineering-executives/9781098149475/><img src=/static/blog/2023/primer-cover-small.jpg></a></div></p></div><div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links"><p class="f5 b mb3">Popular</p><ul class="pa0 list"><li class=mb2><a href=/multi-dimensional-tradeoffs/>Useful tradeoffs are multi-dimensional.</a></li><li class=mb2><a href=/layers-of-context/>Layers of context.</a></li><li class=mb2><a href=/writers-who-operate/>Writers who operate.</a></li><li class=mb2><a href=/leaving-the-executive-job/>Deciding to leave your (executive) job.</a></li><li class=mb2><a href=/eng-strategies/>Writing an engineering strategy.</a></li></ul></div><div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links"><p class="f5 b mb3">Recent</p><ul class="pa0 list"><li class=mb2><a href=/qcon-sf-2024-talk-video/>Video of practice run of QCon SF 2024 talk on Principal Engineers.</a></li><li class=mb2><a href=/how-to-get-more-headcount/>How to get more headcount.</a></li><li class=mb2><a href=/private-equity-strategy/>Navigating Private Equity ownership.</a></li><li class=mb2><a href=/strategy-systems-modeling/>Using systems modeling to refine strategy.</a></li><li class=mb2><a href=/engineering-cost-model/>Eng org seniority-mix model.</a></li></ul></div><div class="bg-light-gray pa3 nested-list-reset nested-copy-line-height nested-links"><p class="f5 b mb3">Related</p><ul class="pa0 list"><li class=mb2><a href=/you-should-take-take-more-vacation/>You Should Take More Vacation</a></li><li class=mb2><a href=/running-humane-interview-process/>Running a Humane Interview Process</a></li><li class=mb2><a href=/healing-team-burnout/>Healing a Burned Out Team</a></li><li class=mb2><a href=/philosophy-of-management/>Your Philosophy of Management</a></li><li class=mb2><a href=/adding-value-as-an-engineering-manager/>Adding Value as an Engineering Manager</a></li></ul></div></aside></article></main><footer class="bg-grey bottom-0 pa3 tc" role=contentinfo><div class="flex justify-between"><a class="f6 fw4 no-underline black-50 dn dib-ns pv2 ph3" href=https://lethain.com/>© Will Larson 2024 </a><a class="f5 fw4 no-underline black-50 dn dib-ns pv2 ph4" href=/tags/>Tags </a><a class="f5 fw4 no-underline black-50 dn dib-ns pv2 ph4" href=/newsletter/>Newsletter </a><a class="f5 fw4 no-underline black-50 dn dib-ns pv2 ph4" href=/feeds.xml>RSS </a><a class="f5 fw4 no-underline black-50 dn dib-ns pv2 ph4" href=/about/>About</a></div></footer></body></html>