<?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 Sabyasachi Ruj on Medium]]></title>
        <description><![CDATA[Stories by Sabyasachi Ruj on Medium]]></description>
        <link>https://medium.com/@sabya?source=rss-bbe02884db8d------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*6OsDoPOATEJxgL5fcJ7qdA.jpeg</url>
            <title>Stories by Sabyasachi Ruj on Medium</title>
            <link>https://medium.com/@sabya?source=rss-bbe02884db8d------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 04:48:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sabya/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[Machine Learning — How to keep an ‘Experiments Journal’ of your projects]]></title>
            <link>https://medium.com/@sabya/journaling-the-experiments-of-ml-projects-635de236f4d1?source=rss-bbe02884db8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/635de236f4d1</guid>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[collaboration]]></category>
            <category><![CDATA[programming]]></category>
            <dc:creator><![CDATA[Sabyasachi Ruj]]></dc:creator>
            <pubDate>Thu, 07 Mar 2019 11:51:16 GMT</pubDate>
            <atom:updated>2019-03-07T15:58:33.834Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xiQKyTEE_eHP2b1jkDRwqQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/I4YsI1zWq_w?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Katya Austin</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Machine Learning — How to keep an ‘Experiments Journal’</h3><p>Machine Learning projects involve a lot of experiments. Most of them are discarded before we arrive at a point that shows some promise.</p><p>Then we work further in that direction, continuously tweaking something or the other. It could be changing anything in the pipeline: data collection, cleansing, a different learning algorithm, the cost function, the network architecture, post-processing, anything.</p><p>Along the journey, we also discard many experiments that didn’t work so well. Once we pick the one we are happy with, the history of the experiments is forgotten.</p><p><strong>Keeping a journal of these experiments could be useful.</strong></p><p>Why? When we involve a new member to work on the same project (or a similar one), they can easily catch up. Later if they think about improving the results, it is likely that they will bump into many of the ideas we have discarded. It need not even be a new person, the original author won’t remember all the details after a few months.</p><p><strong>What to write in the journal:</strong></p><p>Usually, for every experiment, we note down these points:</p><ul><li><strong>Experiment serial number: </strong>Enumerating the experiments makes it is easy to refer to them. You can just say “Experiment 8 didn’t work so well because the data cleansing had a bug, let’s retry that”.</li><li><strong>Change:</strong> What did we change in this experiment? Needless to say, try to change only one thing at a time. Otherwise, you won’t know how the result is affected by a particular change. Worse, the net result might not even show any change, because one change made it better while the other made it worse.</li><li><strong>Expectation:</strong> Why did we change that? What was the expectation/thinking behind this change?</li><li><strong>Result:</strong> Did the results match the expectation? Keep a record of the relevant metrics and charts.</li><li><strong>Remarks:</strong> Closing thoughts. Especially, if the results didn’t match the expectation, you should note down your thoughts on why they didn’t. This often leads you to the next experiment idea.</li><li><strong>Link to Code:</strong> how to access the relevant code quickly. It could just commit hash or a link to the Github commit.</li></ul><p>Hope you find this useful!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=635de236f4d1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Great books]]></title>
            <link>https://medium.com/@sabya/great-books-f77e4a28e1a0?source=rss-bbe02884db8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/f77e4a28e1a0</guid>
            <category><![CDATA[readinglist]]></category>
            <category><![CDATA[books]]></category>
            <category><![CDATA[book-review]]></category>
            <category><![CDATA[book-recommendations]]></category>
            <dc:creator><![CDATA[Sabyasachi Ruj]]></dc:creator>
            <pubDate>Tue, 04 Sep 2018 09:33:26 GMT</pubDate>
            <atom:updated>2026-09-26T07:17:51.445Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FhbZlADy1sXQWdnKrJBKjw.jpeg" /><figcaption>By <a href="https://unsplash.com/glennoble">Glen Noble</a></figcaption></figure><h3>Fiction</h3><ul><li><a href="https://en.wikipedia.org/wiki/Dune_%28novel%29"><strong>Dune</strong></a><strong>: </strong>I haven’t read a better science fiction since Dune.</li><li><a href="https://en.wikipedia.org/wiki/The_Catcher_in_the_Rye"><strong>Catcher in the Rye</strong></a></li><li><a href="http://www.amazon.com/Sh-t-My-Dad-Says/dp/0061992704"><strong>Sh*t My Dad Says</strong></a><strong>: </strong>One of the funniest books I’ve read. See tweets by <a href="https://twitter.com/shitmydadsays">@shitmydadsays</a> to get a taste</li><li><a href="http://www.amazon.com/dp/0307377342"><strong>Sum</strong>: Tales from the afterlives</a>: This book tells us forty brilliantly imagined possibilities for life after death through short essays.</li><li><a href="https://www.goodreads.com/book/show/18007564-the-martian"><strong>The Martian</strong></a></li><li><a href="https://www.goodreads.com/book/show/28921.The_Remains_of_the_Day"><strong>The Remains of the Day</strong></a><strong>: </strong>I learned about this book from another book — “<a href="https://www.goodreads.com/book/show/17660462-the-everything-store#other_reviews">The Everything Store</a>”. You will marvel at the level of attention to detail of the protagonist, an English butler.</li><li><a href="https://en.wikipedia.org/wiki/Buddha_(manga)"><strong>Buddha</strong> (manga)</a>: Osamu Tezuka classic.</li><li><a href="https://www.goodreads.com/book/show/223380.Stories_of_Your_Life_and_Others"><strong>Stories of Your Life and Others</strong></a>: science fiction novellas. Brilliant.</li></ul><h3>Non-Fiction</h3><ul><li><a href="https://en.wikipedia.org/wiki/Thinking,_Fast_and_Slow"><strong>Thinking, Fast and Slow</strong></a><strong>: </strong>It’s a dense read and takes a lot of effort. As you work through the book, you will start seeing the intricacies of how we think and judge.</li><li><a href="https://www.goodreads.com/book/show/5544.Surely_You_re_Joking_Mr_Feynman_"><strong>Surely You’re Joking, Mr. Feynman!</strong> Adventures of a Curious Character</a>: A delight to read. It’s impossible not to notice the wonderful curiosity Feynman had! Curiosity about everything, however small. For example, can an ant find out which direction it is walking? Say, you pick up an ant on a piece of paper, turn it around and around and put it back on the original trail. The same trail it was walking before you picked it up. Would the ant figure out if it is going in the correct direction or the opposite? This book will make you love science.</li><li><a href="http://www.paulgraham.com/hp.html"><strong>Hackers and Painters</strong></a></li><li><a href="https://en.wikipedia.org/wiki/The_Goal_(novel)"><strong>The Goal: </strong>A Process of Ongoing Improvement</a>: It’s a novel about how Alex Rogo, manager of a dying manufacturing plant, tries to save it. The plant has become unreliable and unprofitable. He has three months to turn it around. It’s an engrossing novel about a manufacturing plant. Also learned about <a href="https://en.wikipedia.org/wiki/Socratic_method">Socratic Method</a> — an excellent tactic for fostering critical thinking.</li><li><a href="https://37signals.com/rework/"><strong>Rework</strong></a></li><li><a href="https://37signals.com/remote/"><strong>Remote</strong></a></li><li><a href="http://www.amazon.com/dp/0465050654/"><strong>The Design of Everyday Things</strong></a><strong>:</strong> This book talks about how humans behave when interacting with “ everyday things”. You will start appreciating the thinking that has gone on making a product delightful.</li><li><a href="https://www.goodreads.com/book/show/6708.The_Power_of_Now"><strong>The Power of Now: </strong>A Guide to Spiritual Enlightenment</a></li><li><a href="https://www.goodreads.com/book/show/8520610-quiet"><strong>Quiet</strong>: The Power of Introverts in a World That Can’t Stop Talking</a></li><li><a href="https://www.goodreads.com/book/show/25613396-when-breath-becomes-air"><strong>When Breath Becomes Air</strong></a></li><li><a href="http://www.amazon.com/gp/product/B00ICS9VI4"><strong>Reinventing Organizations</strong></a><strong>: </strong>You should watch the author talking about the theme of the book <a href="https://www.youtube.com/watch?v=gcS04BI2sbk">here</a>.</li><li><a href="http://themindilluminated.com/"><strong>The Mind Illuminated</strong> — A Complete Meditation Guide Integrating Buddhist Wisdom and Brain Science</a></li><li><a href="https://www.goodreads.com/book/show/25744928-deep-work"><strong>Deep Work</strong>: Rules for Focused Success in a Distracted World</a></li><li><a href="https://www.goodreads.com/book/show/857333.The_Art_of_Learning"><strong>The Art of Learning</strong>: A Journey in the Pursuit of Excellence</a></li><li><a href="https://www.goodreads.com/book/show/17255186-the-phoenix-project"><strong>The Phoenix Project</strong>: A Novel About IT, DevOps, and Helping Your Business Win</a></li><li><a href="https://www.goodreads.com/book/show/12609433-the-power-of-habit"><strong>The Power of Habit</strong>: Why We Do What We Do in Life and Business</a>: Habit is “cue, routine, reward” in a loop. Fourth ingredient is “belief”. Discusses creating new habits, replacing old ones, persisting through stressful situations.</li><li><a href="https://www.goodreads.com/book/show/28257707-the-subtle-art-of-not-giving-a-f-ck"><strong>The Subtle Art of Not Giving a F*ck</strong>: A Counterintuitive Approach to Living a Good Life</a></li><li><a href="https://www.goodreads.com/book/show/18668059-the-obstacle-is-the-way"><strong>The Obstacle Is the Way</strong>: The Timeless Art of Turning Trials into Triumph</a></li><li><a href="https://www.goodreads.com/book/show/36613747-how-to-change-your-mind"><strong>How to Change Your Mind</strong>: The New Science of Psychedelics</a></li><li><a href="https://www.goodreads.com/book/show/818063.Calculus_Made_Easy"><strong>Calculus Made Easy</strong></a></li><li><a href="https://www.goodreads.com/book/show/4069.Man_s_Search_for_Meaning"><strong>Man’s Search for Meaning</strong></a></li><li><a href="https://www.goodreads.com/book/show/217494.Prakriti"><strong>Prakriti</strong>: Your Ayurvedic Constitution</a></li><li><a href="https://www.goodreads.com/book/show/33514.The_Elements_of_Style"><strong>The Elements of Style</strong></a></li></ul><h3>Computer Programming</h3><ul><li><a href="https://www.goodreads.com/book/show/548914.The_Little_Schemer?from_search=true&amp;search_version=service"><strong>The Little Schemer</strong></a><strong>: </strong>The Little Schemer is my fallback pass-time for coding amusement. I started liking Lisp even more after reading this book.</li><li><a href="https://www.goodreads.com/book/show/6713575-coders-at-work"><strong>Coders at Work</strong>: Reflections on the Craft of Programming</a>: Peter Seibel interviewed 15 highly accomplished programmers. Legendary programmers interviewed by a programmer himself. Read the review by Jeff Atwood <a href="http://blog.codinghorror.com/the-interview-with-the-programmer/">here</a>. Full of nuggets of wisdom about the craft.</li><li><a href="http://cc2e.com/"><strong>Code Complete 2</strong></a><strong>: </strong>Recommended by Joel Spolsky <a href="http://www.joelonsoftware.com/navlinks/fog0000000262.html">here</a>. If you are in the business of writing code, please read it.</li><li><a href="http://www.amazon.com/Structure-Interpretation-Computer-Programs-Engineering/dp/0262510871/"><strong>Structure and Interpretation of Computer Programs</strong></a><strong>: </strong>Recommended on <a href="http://www.amazon.com/Structure-Interpretation-Computer-Programs-Engineering/dp/0262510871/">Amazon</a> by Paul Graham and Peter Norvig. SICP is a book on Computer Science, based on Lisp.</li></ul><h3>Wishlist</h3><ul><li><a href="https://www.goodreads.com/book/show/24113.G_del_Escher_Bach">Godel, Escher, Bach</a></li><li><a href="https://www.goodreads.com/book/show/28293.Life">Life: a User’s Manual</a>. <a href="https://en.wikipedia.org/wiki/Donald_Knuth">Donald Knuth</a> <a href="http://www-cs-faculty.stanford.edu/~uno/retd.html">recommends</a>.</li><li><a href="https://www.goodreads.com/book/show/27543.Artificial_Intelligence">Artificial Intelligence: a modern approach</a></li><li><a href="https://www.goodreads.com/book/show/23692271-sapiens">Sapiens</a></li><li><a href="https://www.goodreads.com/book/show/23281639-the-upside-of-stress">The Upside of Stress</a></li><li><a href="https://www.goodreads.com/book/show/15898640-the-one-world-schoolhouse">The One World School House</a></li><li><a href="https://www.goodreads.com/book/show/66354.Flow">Flow</a></li><li><a href="https://www.goodreads.com/book/show/4224060-the-element">The Element</a></li><li><a href="https://www.goodreads.com/book/show/324750.High_Output_Management">High Output Management</a></li><li><a href="https://www.goodreads.com/book/show/18131.A_Wrinkle_in_Time">A Wrinkle in Time</a></li><li><a href="https://www.goodreads.com/book/show/71730.Nonviolent_Communication">Nonviolent Communication</a></li><li><a href="https://www.goodreads.com/book/show/2845024-anathem">Anathem</a></li><li><a href="https://www.goodreads.com/book/show/149267.The_Stand">The Stand</a></li></ul><h3>Reading-Lists I follow</h3><ul><li><a href="https://fs.blog/reading/">A Guide to Intelligent Reading</a> — By Shane Parrish of the Farnam Street</li><li><a href="https://sivers.org/book">Books I’ve finished recently</a> — By Derek Sivers</li><li>My Top 100 Programming, Computer and Science Books: Part <a href="http://www.catonmat.net/blog/top-100-books-part-one/">One</a>, <a href="http://www.catonmat.net/blog/top-100-books-part-two/">Two</a>, <a href="http://www.catonmat.net/blog/top-100-books-part-three/">Three</a>, <a href="http://www.catonmat.net/blog/top-100-books-part-four/">Four</a> — By Peteris Krumins</li><li><a href="http://blog.codinghorror.com/recommended-reading-for-developers/">Recommended Reading for Developers</a> — By Jeff Atwood</li><li><a href="http://www-cs-faculty.stanford.edu/~uno/retd.html">Recommended Books</a> — by Donald Knuth</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f77e4a28e1a0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The art of logging]]></title>
            <link>https://medium.com/newton-mail/the-art-of-logging-5f22da3d0fd8?source=rss-bbe02884db8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f22da3d0fd8</guid>
            <category><![CDATA[engineering]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[logging]]></category>
            <category><![CDATA[opinion]]></category>
            <dc:creator><![CDATA[Sabyasachi Ruj]]></dc:creator>
            <pubDate>Tue, 18 Apr 2017 11:27:00 GMT</pubDate>
            <atom:updated>2017-04-18T14:28:08.318Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*D1DuoHlLR7dICaIT5PXd0w.png" /></figure><h4>Best practices for writing, accessing and managing log files in a distributed environment.</h4><p>Designing how various services in a distributed environment write their logs and how a team can efficiently access them requires thoughtful consideration of many factors. When we have hundreds of instances, the amount of logs written per day can be huge. The number of different components and services make it even more complex. In such environments, the simple go-to-the-host-to-check-logs don’t work. In this post, I’ll talk about the best-practices we have found helpful.</p><ul><li><strong>Use a log aggregator</strong>: once you have more than a handful of hosts, you need a central place for accessing logs. Otherwise, you end up doing a lot of grunt work for simple things, especially when you need to correlate events to debug an issue. That’s why we need to ship all logs to a central place. There are many open source and commercial tools that solves centralized log management. Few open source tools are <a href="https://www.elastic.co/webinars/introduction-elk-stack">Elastic Stack</a>, <a href="https://www.graylog.org/">Graylog</a>, <a href="https://en.wikipedia.org/wiki/Syslog">syslog</a>, etc.</li><li><strong>Standardize the log format</strong>: use a standard format to be used by every component your team has created. We like JSON because we can feed them to a log aggregator and query based on various properties. Also, use standard key names. For example, if you are logging user ID along with a log message, use same key names everywhere. Don’t mix “user_id” and “userID”. It will save a lot of time when you’ll need to query logs for a particular user across components.</li><li><strong>Have filtering capability</strong>: Another reason why we like JSON is that filtering relevant logs is a simple task. We can easily filter logs for a particular user, role, service, source file, etc. JSON has few great advantages: 1) we can introduce any number of custom properties when it makes sense. For example “job_id” might be present only in the logs that are written by a background worker. For web services, http_status_code might be an important attribute to log. 2) JSON is easier for humans to read. Saves loads of time during debugging sessions when we want to create complex filters. 3) `<a href="https://stedolan.github.io/jq/">jq</a>` is an excellent tool for working with JSON in CLI.</li><li><strong>Log most commonly used filters</strong>: user id, job id, request id, service name, role of the instance, hostname of the instance, log message, severity level (info, warning, critical), timestamp. Basically, log anything that you think you’ll need during debugging minus the sensitive data. Log most commonly used data that aid debugging: error no, error message, stack, source file and line.</li><li><strong>Convert logs written by 3rd party applications</strong>: other than services written by ourselves, most of us also use applications like Nginx, MySQL, PHP, etc. These third party tools don’t usually use JSON. We convert these logs to JSON before we send it to the aggregator. Most log aggregator agents (fluentd, logstash) have the capability of using regexes to parse these logs and convert them to JSON before sending it to the aggregator. We also have standard OS logs like /var/log/message that should be converted.</li><li><strong>Clean up sensitive data</strong>: we should be careful about what we log. Remove any sensitive data before logging. Examples are: user credentials, sessions, user content, etc. should not be present in the log files.</li><li><strong>Storing and purging</strong>: a large system can generate hundreds of GBs of logs per day. Storing all of them in the disks is not feasible. After a certain period, logs can be pushed to services like AWS S3 for a duration and then to AWS Glacier. Finally, they should be deleted altogether from Glacier. AWS policies make it <a href="https://aws.amazon.com/blogs/aws/archive-s3-to-glacier/">very easy</a>.</li><li><strong>Use dashboards</strong>: We have dashboards for each component like APIs, sync engine, push notifications, etc. Additionally, it’s a great thing if each developer can create their own dashboards and filter relevant logs. They can quickly focus on their components when debugging an issue. We use Kibana as it works well alongside ElasticSearch.</li><li><strong>Include request ID</strong>: including a unique id with each request and logging it at every component lets you trace a particular request across all the components. Generate this unique ID at the client side. An example scenario is if the client has logged a timeout for a request id but it’s not logged anywhere on your server, it was probably a network issue, provided other requests were being served normally at that time.</li></ul><p>Useful things we can do with such a logging system are:</p><ul><li>Each log entry has a severity category. We can use this to monitor error-rate for each module. Monitoring error rate is vital for alerting.</li><li>Another nice use-case of error-rate monitoring is when we roll out an update. We can roll out the update to a percentage of our instances and monitor error rates only for these instances. If there is an increase in error rate, we probably have a problem. Otherwise, we can start rolling out to more instances.</li><li>When debugging an issue for a user, we can filter all the relevant logs for that user’s id and identify the component at fault by correlating logs from different modules.</li><li>Tech Support can use logs for replying to tickets. Create tools and dashboards to make it easier for the support team to get a ‘status report summary’ for a user. They will be able to give more meaningful replies instead of robotic ones. Train them to use these tools.</li></ul><p>References:</p><ul><li><a href="http://jasonwilder.com/blog/2012/01/03/centralized-logging/">Centralized Logging</a></li><li><a href="https://docs.google.com/document/pub?id=1IC9yOXj7j6cdLLxWEBAGRL6wl97tFxgjLUEHIX3MSTs">Introducing the Journal</a></li><li><a href="https://aws.amazon.com/blogs/aws/archive-s3-to-glacier/">Archiving Amazon S3 Data to Amazon Glacier</a></li><li><a href="https://aws.amazon.com/blogs/aws/amazon-s3-object-expiration/">Amazon S3 — Object Expiration</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f22da3d0fd8" width="1" height="1" alt=""><hr><p><a href="https://medium.com/newton-mail/the-art-of-logging-5f22da3d0fd8">The art of logging</a> was originally published in <a href="https://medium.com/newton-mail">Paper Planes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Aspects of running a cloud backend]]></title>
            <link>https://medium.com/newton-mail/aspects-of-running-a-cloud-backend-e4caebe29c32?source=rss-bbe02884db8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4caebe29c32</guid>
            <category><![CDATA[opinion]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Sabyasachi Ruj]]></dc:creator>
            <pubDate>Tue, 14 Mar 2017 13:25:42 GMT</pubDate>
            <atom:updated>2017-03-15T06:10:14.902Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BTP4Ny-UX_6JZ8P0w-WesQ.jpeg" /></figure><p>As with anything in life, managing a cloud backend also is an act of balance. It’s a balance between the three aspects: <em>Improving Quality</em>, <em>Reducing Cost</em>, and <em>Reducing Toil</em>.</p><p>Let’s go through each one.</p><p><strong>Improving Quality</strong>: Quality can be defined as how well a service serves its purpose. The way to measure “how well” can be different for various services and teams. Let me give an example, for one particular service, it could be measured as how quickly the service responds to its users. For another, it could be how many tasks it can complete processing per unit of time. Few standard metrics for measuring the quality of a cloud service are <em>Request Latency</em>, <em>Error Rates</em>, <em>Availability</em>, <em>Durability</em>, etc. Ignoring this aspect will result in poor product and users will lose trust in it. Quality of a product has many other attributes associated with it, but I’ll focus on things that are mostly related to SRE/DevOps engineering. For example, how good a typography an application has, is also a quality, but we won’t go there :-)</p><p><strong>Reducing Cost:</strong> Running a cloud infrastructure has two major associated costs: <em>infrastructure cost</em> and <em>engineering cost</em>. Infrastructure cost is the money spent for procuring and operating the hardware and software. Engineering cost is engineering effort spent in developing and maintaining the system. Often, improving quality also increases cost. Ignoring cost means we end up spending more money than necessary to maintain the same quality.</p><p><strong>Reducing Toil:</strong> I was struggling to come up with a name that describes this aspect well. Initially, I was thinking of using “interrupt driven work”, “stressful on-call situations”, etc. Then I picked up “toil” from the <a href="https://landing.google.com/sre/book/index.html">Google SRE</a> book. The authors define this as:</p><blockquote>Toil is the kind of work tied to running a production service that tends to be manual, repetitive, automatable, tactical, devoid of enduring value, and that scales linearly as a service grows… SREs report that their top source of toil is interrupts (that is, non-urgent service-related messages and emails). The next leading source is on-call (urgent) response, followed by releases and pushes.</blockquote><p>If you ignore this aspect you risk losing good team members due to career stagnation, burn-out, boredom.</p><p>Is there a way to know how well we are doing on each? Yes. We must have a few objectives to maintain for every aspect. Not only those objectives give us a “standard” to refer, we can also use them for prioritizing and scheduling our tasks. Any debate regarding what next to work on can be settled by using these objectives as guidelines. Selecting and designing these objectives require thoughtful consideration of various moving parts in the system. Below are few pointers and guidelines to think about each aspect.</p><h4>Improving Quality</h4><ul><li>Objectives related to a service has a formal name: <a href="https://en.wikipedia.org/wiki/Service_level_objective">Service Level Objective</a>(SLO). Understand the relation between <a href="https://landing.google.com/sre/book/chapters/service-level-objectives.html">SLI, SLO, and SLA</a>. Set few relevant and quality SLOs that every engineer in your team strives to maintain.</li><li>Design monitoring based on two simple guidelines: i) have alerts to inform when (and only when) something is broken or is about to break. Based on the urgency we can use either call-alert or tickets. ii) collect metrics and data to aid debugging “why is it broken”.</li><li>For each incident, solve the root cause. Sometimes solving root cause can take its own time. In that case, see if such situations can be handled automatically. If automation is not feasible, have a playbook for each situation. People go blank when their phone rings at 3 am.</li><li>Collect metric data at these levels: Hardware/VM, Network, OS, process, and service/application. To start with, collect data about latency, error rates, saturation, demand/traffic for each level. Beware about collecting unnecessary data.</li><li>Alerting about an imminent downtime is better than alerting when a service is already down.</li><li>Create tickets for regular maintenance work and assign to people(e.g. “disk will be full in next 48 hours”). These things go a long way to prevent unexpected downtimes.</li><li>Do not optimize systems for lack of failure. Think of failures as something inevitable. Design recovery process to be quick.</li><li>While designing the system, consider fault tolerance. There are few standard ways to be more fault tolerant: <strong>Redundancy and failover</strong> — keeping standby systems to failover to when the primary fails. <strong>Selective degradation of the service</strong> — selectively degrading user experience for less important features in favor of more important ones. We can gracefully degrade the service rather than going down.</li></ul><h4>Reducing Cost</h4><ul><li>Monitor resource utilization. Bring to notice any wastage of resources. Example: by identifying unused deployments, under-utilized resources, etc.</li><li>Try designing your systems that can be scaled up and down (or scaled out and scaled in) according to demand. Use proactive scaling and reactive scaling.</li><li>Identify modules that can be made more performant. Work on those tasks which will give you biggest savings per unit of effort.</li><li>Step back and think if some parts of the system can be simplified. This can save engineering cost by reducing the time spent for maintaining them.</li><li>Set a max cap to ensure you don’t end up provisioning insane amount of infra erroneously. We do it for EC2 instances, DynamoDB.</li></ul><h4>Reducing Toil</h4><ul><li>Alert engineers only when the users are getting impacted and a human needs to intervene. Strive for high signal and low noise alerting. Otherwise your team will suffer from alert-fatigue. As a result, they will start ignoring valid alerts.</li><li>Don’t send emails as alerts. For less urgent incidents have dashboards and tickets.</li><li>Each call alert should be actionable. Do you have alerts that are triggered as “something looks fishy call a human to find out if something is wrong”? If yes, scope out the exact case where it needs a human to do something.</li><li>Monitor how many call alerts each team member is getting. Maybe send a weekly report.</li><li>If calls and interrupts are creating fatigue, slow down feature development to fix things rather than building new things. Inform product owners about the situation.</li><li>Remove redundant alerts. If you are getting multiple alerts for a single incident, scope out the overlaps between them.</li><li>When you have a non-trivial cloud setup, manually creating environments for testing and development can consume a lot of time. Automation here reduced our environment setup time from two and a half days to 40 mins.</li><li>For engineers, reduce the time spent on interrupt-driven work. Have a cap for time spent on such work. For example, say an engineer should spend 20% time doing firefighting and rest of the 70% they should do engineering work.</li></ul><p>I’ll elaborate on some of the above guidelines in future posts. Also, if you write software for the cloud, I highly recommend reading the <a href="https://landing.google.com/sre/book/index.html">Google SRE book</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4caebe29c32" width="1" height="1" alt=""><hr><p><a href="https://medium.com/newton-mail/aspects-of-running-a-cloud-backend-e4caebe29c32">Aspects of running a cloud backend</a> was originally published in <a href="https://medium.com/newton-mail">Paper Planes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Our take on how to hire engineers]]></title>
            <link>https://medium.com/@sabya/our-take-on-how-to-hire-engineers-dac8b648635a?source=rss-bbe02884db8d------2</link>
            <guid isPermaLink="false">https://medium.com/p/dac8b648635a</guid>
            <category><![CDATA[hiring]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[engineering]]></category>
            <dc:creator><![CDATA[Sabyasachi Ruj]]></dc:creator>
            <pubDate>Wed, 02 Sep 2015 13:05:21 GMT</pubDate>
            <atom:updated>2015-09-02T14:55:23.341Z</atom:updated>
            <content:encoded><![CDATA[<h3></h3><p>At <a href="https://cloudmagic.com/">CloudMagic</a>, we are always looking for great engineers to join our team. We believe in “always be hiring” and “hire slow”. We think if we hire when we <em>have to</em>, it’s tempting to compromise and settle for less than the best. It takes hard work and discipline to always keep screening, interviewing and then selecting only the best.</p><p>I thought sharing what we value in a candidate would be a good way to reach out to the kind of people we are looking for. We have designed our hiring process based on a few values that have been working well for us.</p><p><strong>Step 1</strong></p><h4>Starting a conversation from the application form</h4><p>We pay very less attention to resumes; they talk mostly about irrelevant things like GPA and years of experience. Some candidates think filling resumes with coolest tech buzzwords makes them stand out. That might work for other companies but does not help us one bit.</p><p>Instead, here is what we ask when you apply for a job</p><ul><li>What do you like/dislike about our product? Why?</li><li>Tell us a little bit about yourself. Why are you looking to join our team? How can you help us?</li></ul><p>I think, if you care about your work you must care about what you are working on. That’s why we assume, you would have tried and played with our product before applying. Great candidates will try to judge the quality of the team by looking at the product. In response to the first question, they will talk about things that are specific to our product. They will construct a thoughtful answer about the “why?” component. Average candidates will respond with “I like what you guys are working on” or “I like your technology stack”.</p><p>In response to the second question, we expect candidates to tell us about themselves, which is basically about their accomplishments, what they are proud of, what do they care about and what can they bring to the table.</p><p>The free-form nature of these questions is what makes them effective. We assess how the candidates think and communicate, what are some of the things they have created and what do they value. This is like having a conversation with the candidate.</p><p>In comparison, resumes are like “classified ads”.</p><p><strong>Step 2</strong></p><h4>Code challenge — getting hands on with coding</h4><p>After we like a candidate’s application, we generally send a small coding challenge over email. The challenge itself would not take more than 2 hours to solve. This is an important step because many candidates, who apply, are afraid of coding!</p><p>While sending the answer for the challenge, a candidate will also have to answer a few related questions. This helps us further in understanding their thinking process.</p><p><strong>Step 3</strong></p><h4>Interview rounds for more in-depth conversation</h4><p>Typically there are three to four rounds of interviews (including a “phone screening” for outstation candidates). During these we try to find out the following:</p><ul><li><strong>Can you think clearly?</strong></li></ul><p>Part of being able to think clearly is the ability to divide a larger problem into smaller ones and work out a solution. One sample question is: Given a description of a small application, can you figure out the components needed to make the application work?</p><p>We also ask general aptitude questions at this point of time.</p><ul><li><strong>Can you communicate your ideas clearly?</strong></li></ul><p>I can not emphasize enough how important this is. If you can structure your thoughts in a presentable way, you are doing great at this stage. We are not looking for fluency like a native English speaker; but you should be able to express your ideas clearly without frustrating the listener.</p><ul><li><strong>Technical knowledge</strong></li></ul><p>Here we look for your command on programming, clarity on basic Computer Science concepts and whether you actually care about your craft and skills.</p><p>Assuming, you can write code, what we look for here is the thinking approach, readability and modularity of your code. Some of these are difficult to judge in an interview; but we try to find this out by discussing the way you work.</p><ul><li><strong>Curiosity and continuous improvement</strong></li></ul><p>Did you figure out why things work the way they do? OK, it is not possible for everyone to know everything, but how deep is your understanding about your craft? Did you go beyond the call of duty to learn things?</p><ul><li><strong>Can you ship?</strong></li></ul><p>Shipping is more than just writing good quality code. We discuss about the things that you have shipped recently. This is by far the most difficult thing to figure out from an interview. Again, we discuss and try to assess the way you work.</p><p>That’s it. If you think the above values resonate with you, <a href="https://cloudmagic.com/k/careers"><strong>please apply</strong></a>!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dac8b648635a" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>