<?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 Augustus Chang on Medium]]></title>
        <description><![CDATA[Stories by Augustus Chang on Medium]]></description>
        <link>https://medium.com/@augustuschang?source=rss-de326187ce15------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*yvDU5DKK-HX-sY_puHY63A.jpeg</url>
            <title>Stories by Augustus Chang on Medium</title>
            <link>https://medium.com/@augustuschang?source=rss-de326187ce15------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 17 Nov 2026 11:39:55 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@augustuschang/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[Load Testing @ Peloton]]></title>
            <link>https://medium.com/peloton-engineering/load-testing-peloton-6fdea6a02f15?source=rss-de326187ce15------2</link>
            <guid isPermaLink="false">https://medium.com/p/6fdea6a02f15</guid>
            <category><![CDATA[performance-testing]]></category>
            <category><![CDATA[load-testing]]></category>
            <dc:creator><![CDATA[Augustus Chang]]></dc:creator>
            <pubDate>Thu, 24 Jan 2019 21:53:08 GMT</pubDate>
            <atom:updated>2019-01-24T22:14:13.698Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>Introduction</strong></h3><p>In general, load (also known as performance/stress) testing is the process of using a product to ensure standards of quality and identify areas in need of improvement. Performance testing can be simple or extensive, but it remains that any reliable and trustworthy product requires great performance testing: chairs, glass, computer chip-sets, bridges, glue, zippers… you get the idea!</p><p>At Peloton, we have a handful of annual events that engage user traffic 10 or more times higher than our weekly peak traffic. Our infrastructure team has developed a load testing tool and management practice to successfully load test our backend.</p><p>How do we prepare our backend for record-breaking traffic? How do we test software architecture changes? Making a service scalable is straightforward when user traffic increase is predictable and consistent. It would also be easier if our system stayed constant. But by the time our next high traffic event comes around, our feature offerings, software architecture, and data landscape will have changed dramatically. Back-end load testing requires a thorough testing of our stack — databases, servers, algorithms/application controller logic — to be confident that user experience remains amazing. As our product and user base grows we need to scale gracefully.</p><p>What does load testing look like at an organizational level? We could hire engineers who specifically focus on load testing, but when our member growth outpaces our ability to hire we have to find another way. While our solution is subject to change in the future, our current tooling is owned by our infrastructure team. Actual testing is primarily conducted by infrastructure and leaderboard teams.</p><h3><strong>Evolution</strong></h3><p>How did Peloton get to using an automated end-to-end load testing tool?</p><p>First, we created a QA-like environment, with identical data stores and production-like data.</p><p>Our first load test tool was built in the middle of 2017. It addressed our in-class experience and primarily stress tested our leaderboard service. It was an in-house multithreaded application which could simulate cycling traffic of thousands of users. This tool helped us scale for 3+ events, but was not the simplest to use, required low-level configuration flags, and did not scale well horizontally.</p><p>Shortly after, we adopted the <a href="https://gatling.io/">Gatling</a> load testing framework to test our out-of-class experience: browsing the screen, viewing class metrics, and so on — everything a user does outside of the class. We tested other scenarios, such as e-commerce, on one-off machines only when necessary.</p><p>So we had one tool for in-class, and one tool of out-of-class experience. After using both side by side, we had two major pain points: operating the tool and scaling the tool. Individually, the in-class load test tool required low-level configuration flags and internal leaderboard expertise to handle the tool. The Gatling out-of-class load tester did not suffer from these problems. However, both tools took far too long to use (spin up servers, run test, scale down) and were difficult to scale horizontally (parallel ssh-ing into multiple boxes at a time). Additionally, from an organizational perspective it did not make sense having two separate tools in different languages.</p><p>A couple of months ago we decided to create a new tool to automate machine orchestration and testing on the Gatling framework.</p><h3><strong>Core Components</strong></h3><h4>Steps</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/521/1*yDpqdOMxB3u331DAJB-YMQ.png" /></figure><h4><em>Architecture</em></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*nqTsrN5zslFPIIgx" /><figcaption>Load Test Architecture Diagram</figcaption></figure><p>The executor is responsible for creating data and propagating metadata necessary for a successful simulation (user ids, ride id, etc.) on each load test run. It’s also responsible for scaling up our Gatling hosts (based on number of users per simulation) and our QA clusters to be able to support that demand. Then we use a parallel ssh library (<a href="http://www.fabfile.org/">Fabric</a>) to conduct the actual tests across multiple machines.</p><h4><em>Scenarios</em></h4><p>Users are composed of Gatling-constructed sessions and requests. We initialize user-specific data through feeder files, compose scenarios, and use ramp-up and user primitives to control the traffic pattern.</p><h4><em>Analysis</em></h4><p>Our analysis of stack traces, queries, and latencies is done on <a href="https://www.datadoghq.com/">Datadog</a>:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OQfsGj8w1Hk57n-8KYZEuA.png" /><figcaption>Out-of-Class Queries Per Second</figcaption></figure><h3><strong>Results</strong></h3><h4>Productivity</h4><p>With our current tool, automation has reduced load testing time from 1–2 hours to 15–20 minutes. It is simple to use, requiring a build job in Jenkins that a developer can set and run in the background.</p><h4>Flexibility</h4><p>We have had the flexibility to test different backend architecture for our leaderboard service with ease across different scaling targets.</p><p>Additionally, if our target event traffic looks different from our weekly traffic, we can reproduce it by mixing/matching different scenarios (on-demand bike, live bike, e-commerce, iOS, etc.)</p><h4>Improvements</h4><ul><li>Reduced social feature latency: moved from Cassandra to Postgres</li><li>Tested Memcached Pooler, Twemproxy, without impacting production</li><li>Optimized Postgres Queries</li><li>Caching Improvements</li><li>Replaced Cassandra-heavy feature with Redis and client-side caching</li><li>Load Test different database backends</li></ul><h3><strong>Issues Encountered</strong></h3><h4>Gatling</h4><p>Our in-class traffic pattern is composed of multiple periodic requests. Unfortunately, Gatling does not support an straightforward way of asynchronously scheduling multiple periodic requests.</p><p>Ideally, Gatling would have a primitive, let’s call it “onceEvery()”, which would have similar behavior to Javascript’s non-blocking “<a href="https://www.w3schools.com/jsref/met_win_settimeout.asp">setTimeout()</a>” method:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e4f27ff3978afd9c3746dbe8a9f98297/href">https://medium.com/media/e4f27ff3978afd9c3746dbe8a9f98297/href</a></iframe><p>With this new “onceEvery()” construct, during “cookingTime” seconds, salt will be added every 30 seconds and mixing will occur every 20 seconds.</p><p>However, because Gatling requests are blocking, this behavior can only be achieved by meticulously stringing together chains of requests:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/2b0dba16d1e6c7e732a04674b4d3c759/href">https://medium.com/media/2b0dba16d1e6c7e732a04674b4d3c759/href</a></iframe><p>Yeah… it’s messy. You can imagine how it gets worse with more API calls in-between.</p><p>Additionally, because Gatling requests are blocking, it cannot adequately replicate asynchronous clients.</p><h3><strong>Conclusion</strong></h3><p>Today, our load testing tool is a pipeline that allows to to test our backend end to end. Its core infrastructure involves a repository of Gatling scenarios, orchestration scripts, and a production-like environment to execute against. It has increased our developer productivity by reducing operational work and freeing up work to focus on performance analysis and scenario refinement.</p><p>For our next steps, we plan to make the interface easier to use. We are investigating using our own automation platform (instead of Jenkins) to integrate with pull requests and move to continuous load testing triggered based off of code changes. We would like to spread this knowledge so developers can be responsible for their own code and SLIs.</p><p>If you’re interested in scaling applications or load testing, our team is hiring!</p><p><a href="https://www.onepeloton.com/company/careers/1261840"><strong>Infrastructure Engineer, Load Testing</strong></a></p><p><a href="https://www.onepeloton.com/company/careers/1261817"><strong>Senior Infrastructure Engineer, Load Testing</strong></a></p><p><a href="https://www.onepeloton.com/company/careers/1261773"><strong>Senior Infrastructure Engineer, Application Scaling</strong></a></p><p><a href="https://www.onepeloton.com/company/careers/1261795"><strong>Senior Infrastructure Engineer, Application Frameworks</strong></a></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HMM3IetwJk-8RZKZ9hFhSQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6fdea6a02f15" width="1" height="1" alt=""><hr><p><a href="https://medium.com/peloton-engineering/load-testing-peloton-6fdea6a02f15">Load Testing @ Peloton</a> was originally published in <a href="https://medium.com/peloton-engineering">Peloton-Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Lasts: No more midterms]]></title>
            <link>https://medium.com/@augustuschang/the-lasts-no-more-midterms-c51a847168ea?source=rss-de326187ce15------2</link>
            <guid isPermaLink="false">https://medium.com/p/c51a847168ea</guid>
            <category><![CDATA[education]]></category>
            <category><![CDATA[college-life]]></category>
            <category><![CDATA[college]]></category>
            <dc:creator><![CDATA[Augustus Chang]]></dc:creator>
            <pubDate>Thu, 09 Mar 2017 10:04:50 GMT</pubDate>
            <atom:updated>2017-03-09T22:26:23.838Z</atom:updated>
            <content:encoded><![CDATA[<p>This is the first of a series titled <strong>The Lasts</strong>. I will be writing to reflect on the end of college to celebrate the victories and reflect on the disappointments of things I had hoped for. The series will culminate in a final article squeezed with all the life wisdom I have to give to those going to, graduating, or currently in college. I meander when I write, so I only ask that you read the entire post for it to make sense. Thanks. ☺</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7g2LV0s1yr20FU56mS8WA.jpeg" /></figure><p>No more midterms.</p><p>At the time of writing this, 3/9/17, I took my last midterm at Rutgers. Location: Lucy Stone Hall. Time: 11:00 AM.</p><p>It’s weird.</p><p>I think back to freshman year when I, unwisely, legitimately pulled an all nighter for almost every final. I almost slept through my physics final (until my friends Clifford and Anushiya burst through my dorm doors to wake me up), was 20 minutes late to my economics final, and hunkered down in LSM from midnight to morning to teach myself the last month of differential equations for … you guessed it… the final the next day. lol we won’t even mention this class called digital electronics. You get the point…the list could go on FOR DAYS. Interestingly enough, all nighters made me appreciate things such as time and the sunrise. I’ve learned from my mistakes though, my body told me it was getting older and couldn’t handle any more all nighters.</p><p>In all seriousness, as a high-achiever, I remember the anxiety, the highs and lows, the hard work, the pride, and the regret for not studying earlier.</p><p>It is abnormal, but I also remember the peace. I remember a certain peace that regardless of the outcome of my GPA, class grade, knowledge, and whatever the repercussions those things would affect in a chain of events, God had my back. I’m not a saint — I didn’t have that peace most of the times — but when I trusted God, it was reassuring to know that God would take me through college and career. I wasn’t affected by the worrying that everyone else was experiencing and I could focus on the bigger picture.</p><blockquote>For I know the plans I have for you,” declares the LORD, “plans to prosper you and not to harm you, plans to give you hope and a future.</blockquote><blockquote>— God</blockquote><p>Taking exams went sort of like this: I studied, went to lecture, and then right before I flipped the exam to begin, without fail, I had a moment where I thought,</p><blockquote>“Well, I did what I could. Just gotta hope this works out. It doesn’t really matter.”</blockquote><p>The last sentence might be annoying to you. Why doesn’t my performance matter? Keep reading, it’ll make sense.</p><p>From what I observe, I think that though we no longer roam the plains with livestock or live in teepees, we are still sojourners of this earth. Humans are still nomads at heart. Chances are, if you are a human you have some sort of road map for your life. It’s a map with a utility maximizing curve (think of those polar curves from calculus and substitute human years for radians) from point A , where you are right now, to point B, your post-graduation job, to point C, your first Tesla, and so on all the way to point Z the deathbed (or point Z’ which is heaven — no one plans to go to hell). There are levels to this ‘ish : levels of relational, professional, and personal fulfillment. With this road map, we say to ourselves,</p><blockquote>“Well, to get from A to B I need to do these things”. For example, if I go to <strong><em>that</em></strong><em> </em>college, make <strong><em>that</em></strong> connection, learn <strong><em>that</em></strong> knowledge, have <strong><em>that</em></strong> relationship, have <strong><em>that</em></strong> physique, get<em> </em><strong><em>tha</em></strong><em>t</em> job right out of college, then _____.</blockquote><p>Nothing wrong with a plan, but life isn’t like a test. I might do everything right by the textbook, yet still not be at the next destination. That’s where I’m at now.</p><p>To share a bit about myself, my desire for working hard in school has been largely toward this vision of helping others. In school maybe I’m learning about how to parallelize code on GPUs or prove this weird math obscure theoretical thingy-a-bob, but I dream of using technology and engineering to solve humanitarian issues and to spread the gospel of Jesus. When I think of the most fruitful times of my college career it was spent in community or directly helping people. A meal with someone on the streets (hi Calvin), guiding friends, encouraging someone with the gospel, or meeting random people by singing songs outdoors (hey Joey). God has grown my heart for people, and I want to work on technology because I lowkey love people (lowkey cause I’m an introvert). I dare say I want to work on equipping the homeless population, many of whom need a loving push to get the ball rolling. Or maybe write code to help governments address humanitarian emergencies. Oh wait, that’s a <a href="http://www.zenysis.com/">startup</a> already ( fun geeky fact: they use numpy!). The point is, these things are possible and are worth spending my journey on.</p><p>I’m in a season of life right now where that’s the next step. I don’t have a graduate school or a job lined up, but I’m still trusting God that he will do the work necessary for Augustus’ story. I have this saying that <em>God wills what he will</em>. Sure, I can plan for the best but tomorrow is not guaranteed. God wills what he will. And the crazy thing is that ultimately it doesn’t matter what the outcome of my performance is because Jesus freakin’ rose from the dead and he’s done all that’s necessary for eternal joy. I don’t labor because my life depends on it, I labor for the life that I have gained in Christ.</p><p>So I’m here, waiting for God, still working diligently in preparation for what is to come, with the same thoughts in my head:</p><blockquote>“Well, I did what I could. Just gotta hope this works out. It doesn’t really matter”.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c51a847168ea" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[About me]]></title>
            <link>https://medium.com/@augustuschang/about-me-aa34a3383618?source=rss-de326187ce15------2</link>
            <guid isPermaLink="false">https://medium.com/p/aa34a3383618</guid>
            <category><![CDATA[jesus]]></category>
            <category><![CDATA[christianity]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Augustus Chang]]></dc:creator>
            <pubDate>Sun, 13 Mar 2016 02:55:13 GMT</pubDate>
            <atom:updated>2016-03-13T02:55:13.593Z</atom:updated>
            <content:encoded><![CDATA[<p>Hi. Hi. Hi. Hi. Hi. Hi. Hi. Hi.</p><p>This Medium thing is really cool. I started out with Tumblr, but Tumblr has turned out not to be a great avenue for me to write in (don’t get me wrong, Tumblr is still awesome) , so I thought I’d make a transition into Medium. So far, it seems like an apt environment to share my ideas and thoughts. I can be as professional or unprofessional in my writing here as I’d like.</p><p>In all my writings you will notice the name <strong>Jesus</strong> appear multiple times (why is that? hint: read the next paragraph!). In all seriousness, I’m not explicitly trying to make this a Christian blog. However, this is a blog about my life and thoughts, of which Jesus is such an integral part of.</p><p><strong>So who am I?</strong> I define myself first and foremost as a follower of Jesus Christ; He has saved my life. I just realized — I don’t know what I would define myself ‘secondly’ as. The thought has never come up because I see my identity in Christ as something that envelops all areas of my life. So that’s who I am. But, if you were looking for a different type of answer, you could say that I’m currently a student at Rutgers University studying Computer Science and Electrical Engineering. My life goal is to share the love of Jesus and help others through whatever platform. I super duper enjoy learning and CS/EE so I hope I can impact others through a technology platform, but you never know.</p><p><strong>What do I think about?</strong> Most of the time I think about human interaction and justice. That’s a great non-answer Augustus. What does that mean? Well, I try to think about others and care for others. But if I’m really honest, like everyone else, I revert thinking about my ego and pride. In the past year especially, I’ve realized how selfish I really am and how much I need God. I try to think about being a better person and doing the most good. I also am finding my way through Computer Science and Electrical Engineering. I view these as tools to do what I’m most passionate to do: help and give.</p><p>So those are really my thoughts. I do think about doing ‘noble’ things, but I fail everyday. And so part of my daily struggle is diverting my mind away from my overinflated ego and turning it toward God, the only one who can fix my mess. I’ve found that there’s so much joy and hope to be found in Jesus. Like its not just a ‘religion’. It is a relationship that is completely shifting my life.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=aa34a3383618" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>