<?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 Darrin Lim on Medium]]></title>
        <description><![CDATA[Stories by Darrin Lim on Medium]]></description>
        <link>https://medium.com/@darrin.s.lim?source=rss-a3e5f90a68ba------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kDVZcl5crWAtTyog9IHl6g.jpeg</url>
            <title>Stories by Darrin Lim on Medium</title>
            <link>https://medium.com/@darrin.s.lim?source=rss-a3e5f90a68ba------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:37:35 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@darrin.s.lim/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[What “Fox News” Teaches You about Rewriting Your Personal Narrative]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@darrin.s.lim/what-fox-news-teaches-you-about-rewriting-your-personal-narrative-ddbb92beb320?source=rss-a3e5f90a68ba------2"><img src="https://cdn-images-1.medium.com/max/2600/1*JXEWWHi2MHuhNtm0QeEXOQ.jpeg" width="5184"></a></p><p class="medium-feed-snippet">The one good lesson I&#x2019;ve learned from Fox News</p><p class="medium-feed-link"><a href="https://medium.com/@darrin.s.lim/what-fox-news-teaches-you-about-rewriting-your-personal-narrative-ddbb92beb320?source=rss-a3e5f90a68ba------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@darrin.s.lim/what-fox-news-teaches-you-about-rewriting-your-personal-narrative-ddbb92beb320?source=rss-a3e5f90a68ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddbb92beb320</guid>
            <category><![CDATA[personal-growth]]></category>
            <category><![CDATA[storytelling]]></category>
            <category><![CDATA[growth]]></category>
            <category><![CDATA[personal-development]]></category>
            <category><![CDATA[growth-mindset]]></category>
            <dc:creator><![CDATA[Darrin Lim]]></dc:creator>
            <pubDate>Sat, 19 Sep 2020 15:13:01 GMT</pubDate>
            <atom:updated>2020-09-19T15:13:01.623Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Is the AWS Big Data Certification Worth It?]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science/is-the-aws-big-data-certification-worth-it-ae1c4de340af?source=rss-a3e5f90a68ba------2"><img src="https://cdn-images-1.medium.com/max/2600/0*gBzqwhgx8WthelQE" width="3936"></a></p><p class="medium-feed-snippet">I spent 100 hours and $560 dollars finding out. That&#x2019;s a lot of hours and mucho dinero, so you should take a gander.</p><p class="medium-feed-link"><a href="https://medium.com/data-science/is-the-aws-big-data-certification-worth-it-ae1c4de340af?source=rss-a3e5f90a68ba------2">Continue reading on TDS Archive »</a></p></div>]]></description>
            <link>https://medium.com/data-science/is-the-aws-big-data-certification-worth-it-ae1c4de340af?source=rss-a3e5f90a68ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/ae1c4de340af</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[certification]]></category>
            <dc:creator><![CDATA[Darrin Lim]]></dc:creator>
            <pubDate>Tue, 17 Sep 2019 12:08:05 GMT</pubDate>
            <atom:updated>2019-09-17T13:21:35.587Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Advice for New and Junior Data Scientists]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/data-science/advice-for-new-and-junior-data-scientists-7c82f1d8b6e4?source=rss-a3e5f90a68ba------2"><img src="https://cdn-images-1.medium.com/max/2000/1*qEW5yvo-SOsiqfgOtmVKLQ.jpeg" width="2000"></a></p><p class="medium-feed-snippet">What I Wish I&#x2019;d Known 2 Years Ago</p><p class="medium-feed-link"><a href="https://medium.com/data-science/advice-for-new-and-junior-data-scientists-7c82f1d8b6e4?source=rss-a3e5f90a68ba------2">Continue reading on TDS Archive »</a></p></div>]]></description>
            <link>https://medium.com/data-science/advice-for-new-and-junior-data-scientists-7c82f1d8b6e4?source=rss-a3e5f90a68ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/7c82f1d8b6e4</guid>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[insights]]></category>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[analytics]]></category>
            <dc:creator><![CDATA[Darrin Lim]]></dc:creator>
            <pubDate>Sat, 06 Jul 2019 14:11:24 GMT</pubDate>
            <atom:updated>2020-01-13T15:24:50.974Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Using Machine Learning to Automate Anomaly Detection on a 100,000 Device Network]]></title>
            <link>https://medium.com/inside-outcome/using-machine-learning-to-automate-anomaly-detection-on-a-100-000-device-network-e1f3d0c8876c?source=rss-a3e5f90a68ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/e1f3d0c8876c</guid>
            <category><![CDATA[healthcare]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[anomaly-detection]]></category>
            <category><![CDATA[iot]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Darrin Lim]]></dc:creator>
            <pubDate>Tue, 14 May 2019 15:27:22 GMT</pubDate>
            <atom:updated>2019-05-14T15:27:22.928Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*syhNJybqasymhESxll29gg.png" /><figcaption>How Outcome Health improves the clinical workflow</figcaption></figure><p>Outcome Health is a healthcare innovation company that showcases relevant content to patients, caregivers and healthcare professionals at the point of care. We have <strong>a fleet of over 100,000 devices</strong> in providers’ offices across the country that improve the patient experience by delivering high-quality educational and entertainment content when patients most need it.</p><p>Our Wallboard product, for example, features interactive anatomy models that can help physicians easily explain a patient’s condition.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xm0lWycmuKU0vvkF" /><figcaption><a href="https://www.outcomehealth.com/exam-room-wallboard/">You can find more info about the Wallboard and other products on our website here.</a></figcaption></figure><p>Managing such a large fleet of devices requires significant operational maintenance. <strong>In particular, it can be difficult to understand how new software updates and releases are affecting the business value of our network.</strong> Device up-time, successful content download and play data, and network connection are just a few of the metrics we need to keep track of — and in-house testing can only catch so many bugs.</p><p>In this post, I will describe how Data Scientists and Data Engineers on our Product Analytics team built an <strong>automated Anomaly Detection system</strong> for finding issues on our network caused by software updates and alerting end users with actionable information.</p><h3>1) What are the Product Analytics Team’s KPIs?</h3><p>Before diving into the details, it will help to provide some context on our Product Analytics Team’s KPIs. There are 3 metrics that our Product Analytics team cares about above all others:</p><ul><li>The number of devices in the field</li><li>The number of devices heartbeating (online)</li><li>The number of sponsored content displays/plays on a device</li></ul><p>Anything that affects these 3 critical KPIs requires <strong>immediate attention</strong>, and is therefore a prime candidate for automated anomaly detection.</p><h3>2) Choosing the Right Model for Our KPIs with Jupyter Notebooks</h3><p>Before trying to detect anomalous KPIs, we needed to set expectations for our KPIs in the first place. This was the perfect use case for some basic modeling.</p><h4>How We Prototype</h4><p>We prototype models (and most analytics related functionality) in <strong>Jupyter Notebooks</strong>. They’re perfect for data exploration and testing, which was exactly what we were looking for.</p><p>We’ve built a custom, installable package we’ve creatively dubbed “data-pipeline-utils” that allows a user to pull data from any of our many data sources (Salesforce, Treasure Data, S3, on-premise databases) with the same syntax. This has sped up our development process considerably, as it’s less of a pain to draw data from different sources, which we do all the time.</p><pre>from data_pipeline_utils import Database</pre><pre># Initialize database objects<br>db1 = Database(&#39;db1&#39;)<br>db2 = Database(&#39;db2&#39;)<br>treasure_data = Database(&#39;treasure_data&#39;, &#39;event_metrics&#39;)</pre><pre># Results to dataframe<br>df = db1.to_dataframe(query=&#39;SELECT * FROM heartbeat_logs WHERE created_at &gt; NOW() — INTERVAL 1 HOUR&#39;)<br>df = db1.to_dataframe(table=&#39;statuses_daily&#39;, timestamp_field=&#39;created_at&#39;, start_timestamp=&#39;2018–04–01&#39;, end_timestamp=&#39;2018–04–02&#39;)<br>df = db2.to_dataframe(schema=&#39;master_inventory&#39;, table=&#39;devices&#39;)<br>df = treasure_data.to_dataframe(table=&#39;event_metrics_daily&#39;)</pre><pre># Results to file<br>db1.to_file(query=&#39;SELECT * FROM heartbeat_logs WHERE created_at &gt; NOW() — INTERVAL 1 HOUR&#39;, filename=&#39;db1.heartbeat_logs.csv&#39;)<br>db1.to_file(table=&#39;devices&#39;, compression=&#39;gz&#39;, filename=&#39;db1.devices.csv.gz&#39;)</pre><pre># Results to S3<br>db1.to_s3(query=&#39;SELECT * FROM heartbeat_logs WHERE created_at &gt; NOW() — INTERVAL 1 HOUR&#39;, filename=&#39;db1.heartbeat_logs.csv&#39;, bucket=, key=&#39;db1/2018/04/01/db1.heartbeat_logs.csv&#39;)<br>db1.to_s3(table=&#39;devices&#39;, compression=&#39;gz&#39;, filename=&#39;db1.devices.csv.gz&#39;, bucket=&#39;oh-data-lake&#39;, key=&#39;db1/dt=2018–04–01/db1.devices.csv.gz&#39;)</pre><pre># Execute SQL<br>results = db1.execute(query=&#39;SELECT * FROM devices&#39;)<br>results = treasure_data.execute(query=&#39;SELECT * FROM cmapaign_delivery.deployed_wallboard_daily&#39;)<br>db1.execute(query=&#39;UPDATE devices SET last_seen_at = NOW()&#39;, is_dml=True)</pre><h4>How We Choose Models</h4><p>When it comes to actually choosing a model, we focus first on understanding the relationship we’re trying to model as best we can. While it may be more fun to just try on lots of complex models, that is almost always <strong>less efficient</strong> (and usually much <strong>less effective</strong>) than spending the time to <strong>deeply understand</strong> the relationship you’re modeling.</p><blockquote>We focus first on understanding the relationship we’re trying to model as best we can.</blockquote><h4>Our Use Case</h4><p>In our case, modeling the number of sponsored content displays on a device required understanding how we determined what played on a given device. A breakdown shows a relatively clear, straightforward relationship with only a few key variables:</p><ul><li>Sponsored content plays are limited based on when clinics are open.</li><li>Sponsored content plays are correlated with how many sponsored content items are on a device — the more sponsored content, the more plays, generally speaking.</li></ul><p>By setting up a simple, piecewise linear function based on (1) whether a day was a weekday/weekend and (2) the number of sponsored content items on our devices, we were able to model the majority of the variance in our content plays.</p><p>Not only was this model effective enough for our purposes, it was <strong>easily explainable and intuitive to business users</strong>.</p><h4>Adding Memory to Our Models</h4><p>One added complexity we faced was getting our model to “learn” from previous phases of a release. We release our software updates in phases; Phase 1 includes 1% of the network, Phase 2 includes 5%, phase 3 includes 25%, and so on. In the event that a software update meaningfully changed our KPIs for a product-improvement related reason (playing sponsored content more frequently, for example), we would not want to flag the change in our KPI during every release.</p><p>Instead, we wanted our model to “learn” from previous phases, which entailed some kind of memory. We implemented this by assuming that the pre-to-post-update percentage change to a KPI from a previous phase would propagate through later phases. We then simply applied that percentage change to subsequent expectations.</p><p>This simple methodology has actually worked surprisingly well, as you can see below.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/948/1*GbUikxnXIiRB4ntr2Atf2Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/938/1*_cotRU3Rf4ZSnOcc_QfEwQ.png" /><figcaption>An example of memory being propagated from Phase 2 to Phase 3 of a release.</figcaption></figure><p>While this solution obviously does not cover all cases, and can be thrown off by the small sample sizes of earlier phases, it has been more than good enough for our purposes.</p><h3>3) Choosing the Right Infrastructure — Airflow &amp; Docker</h3><h4>How We Develop Airflow Workflows</h4><p>Deciding where to run and save all of this data was made much easier by our newly built Airflow environment. Airflow is a workflow management tool that allows you to easily build and schedule ETL jobs. It is based on the concept of Directed Acyclical Graphs (DAGs), which can be thought of as a graphed “to-do list”. We ingest all data from all our devices into our data lake via Airflow workflows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/580/0*JmgQUjLfk1o4YpI4" /><figcaption>A basic DAG</figcaption></figure><p>Development of Airflow DAGs has been made much easier with Docker — a containerization service that allows you to run isolated applications on a machine. By pulling down the Docker image of our production Airflow instance into our local environments, then running a copy of Airflow on our local machines, we’re able to rapidly build and test new Airflow workflows. This was a crucial part of building Anomaly Detection within Airflow — our iteration cycles would have been much longer without Docker.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*awxkzgwBQ9YLHFjEK4DQ0w.png" /><figcaption>Running Airflow on your local host is easy with Docker!</figcaption></figure><h4>Our Use Case</h4><p>Although the functionality described here isn’t what would typically be considered an ETL job, it was an output we wanted to provide on a regular, daily basis. This daily cadence would give us time to gather enough content play data to determine whether our KPIs had been meaningfully affected.</p><p>Given those parameters, Airflow seemed like a good fit. So, we extended our Airflow instance to functionality beyond ETL processes, building an Airflow workflow to run the data collection, modeling, visualization, and alerting functionality needed by Anomaly Detection.</p><p>Our next iteration will likely be to turn this functionality into a service that updates in real-time. However, as an initial concept, Airflow has been great for releasing fully-functional data products quickly.</p><h3>4) Creating the Correct, Actionable Output</h3><h4>A Data Scientist’s Chief Responsibility is Instigating Action</h4><p>While modeling is often spoken of as the primary responsibility of a data scientist, at Outcome Health, we believe the primary responsibility of our data scientists is to <strong>translate data</strong> into <strong>immediately actionable insights</strong> that <strong>generate business value</strong>.</p><p>Most of the time, when an insight is delivered and no action is taken, the cause of inaction has more to do with communication than it does with lack of issue urgency. Ambiguous alert messaging, unclear next steps, and friction between message and action all work to prevent insights from being immediately actionable.</p><p><strong>It is a data scientist’s responsibility to either build around or remove those obstacles</strong>. To that end, figuring out how to get end users to take action on the insights we deliver is probably the most important piece of any project. It is where we spend the bulk of our time.</p><blockquote>Figuring out how to get end users to take action on the insights we deliver is probably the most important piece of any project.</blockquote><h4>Our Use Case</h4><p>Our solution for Anomaly Detection was:</p><ol><li>To go to where the users are: Slack.</li><li>To plug everything required for action directly into the Slack message.</li></ol><p>This removed 2 points of friction right off the bat — users were alerted via a pushed message, rather than manually checking a dashboard, and they did not need to go digging for the data related to the alert.</p><p>What is required for action depends on the end user. In our case, our end users wanted to see the KPI data for new software releases graphed — so we provided that to them in Slack. Their response times to issues immediately improved, which fulfilled the “immediately actionable” criteria we were aiming for.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kT8fh1-Z3RbGocZbSV2_mg.png" /><figcaption>An example of a software issue being caught. Want more details? Feel free to reach out!</figcaption></figure><h3>5) Outcomes &amp; Results</h3><p>Since implementing Anomaly Detection, we have saved hundreds of man-hours of manual tracking, significantly reduced operational risk, and greatly improved response time to issues that do arise. All that with nothing more than a simple model, some business logic, and an Airflow workflow.</p><p>Perhaps the most interesting, unexpected outgrowth of this work is the community buy-in and interest in other use cases. Once it became clear what was possible with this simple Anomaly Detection “framework”, the flood gates opened to all kinds of requests. Everything from Salesforce data entry QA to increased visibility into changes in ad campaign status have been proposed and tackled.</p><p>We have, to-date, implemented 10 separate use cases under this ever-broadening umbrella of “Anomaly Detection”.</p><h3>6) Lessons Learned &amp; Looking Forward</h3><p>We’ve learned a great deal in the process of building Anomaly Detection over the past year. However, of all our fresh insights, the following were probably the most beneficial:</p><ul><li><strong>First, Airflow is good for more than just regular ETL:</strong> we’ve expanded our use of Airflow to nearly anything that can be scheduled. It has been highly effective for rapidly building high-fidelity prototypes of data products.</li><li><strong>Second, highly-specific instructions are much more valuable than most dashboards:</strong> our initial methods for identifying operational issues centered on dashboards. While dashboards are useful in many situations, dashboards leave much to be desired when it comes to generating action. There’s simply too much friction between visualization and action — a well-placed instruction reduces that friction to nearly zero.</li><li><strong>As a result, we are able to rapidly iterate on products that generate real business value through action:</strong> this framework has been instrumental in improving how we build systems at Outcome Health.</li></ul><p>Looking forward, we’re beginning to build increasingly technical, interesting systems. The newest use case in development is the most exciting yet — we’ll be using image recognition to ensure that screenshots taken on our devices in the field are close enough to “correct”, validated screenshots. This will catch errors like black screens, blurry videos, and more — all while using some nifty new tech.</p><p>We’re excited to see where the future takes us as we strive to improve the patient point-of-care experience.</p><p><em>Want to join a growing analytics team working to change healthcare? We’re always looking for talented people to join our Product Analytics team! We’re currently actively hiring for Data Analysts and Data Engineers, but regardless of role, if you feel you have something to contribute, we want to hear from you! Feel free to reach out at darrin.lim@outcomehealth.com, or </em><a href="https://outcomehealth.applytojob.com/apply/"><em>check out our careers page here</em></a><em>.</em></p><p><em>Special thanks to Jenny Beightol, Michael Gunn, and Shashin Chokshi for reviewing this blog post.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e1f3d0c8876c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/inside-outcome/using-machine-learning-to-automate-anomaly-detection-on-a-100-000-device-network-e1f3d0c8876c">Using Machine Learning to Automate Anomaly Detection on a 100,000 Device Network</a> was originally published in <a href="https://medium.com/inside-outcome">Inside Outcome</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Hour a Day to Being AWS Big Data Certified]]></title>
            <link>https://medium.com/series/aws-big-data-certified-in-4-months-hopefully-f88281813b12?source=rss-a3e5f90a68ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/f88281813b12</guid>
            <dc:creator><![CDATA[Darrin Lim]]></dc:creator>
            <pubDate>Tue, 05 Feb 2019 02:09:13 GMT</pubDate>
            <atom:updated>2019-05-02T11:29:02.632Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Hi.</strong></p><p>My name’s Darrin. This is a record of my path from (relative) AWS newbie to (hopefully) getting certified as a Big Data specialist!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/512/0*9qBLws4D2mBCZZAx.jpg" /><figcaption>Gimme.</figcaption></figure><p><strong>I’m not a complete data novice, so take this with a grain of salt.</strong></p><p>I’ve been working in data and analytics for about 3 years now, and I’m probably somewhere between a junior and associate <a href="https://www.linkedin.com/pulse/one-data-science-job-doesnt-fit-all-elena-grewal/">Data Scientist in Analytics</a>.</p><p>I’m also an engineer at heart. I love this kind of stuff! (I have a degree in engineering, although it’s the kind companies don’t always know what to do with — see <a href="https://en.wikipedia.org/wiki/Biomedical_engineering">Biomedical Engineering</a>).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/850/0*WR710AGajs4fkyj6.jpg" /><figcaption>Take that, traditional engineering disciplines.</figcaption></figure><p>If you’re reading this, I’m assuming you like data and analytics, too. The title “AWS Big Data Certified in 4 Months (Hopefully)” isn’t exactly riveting stuff to most people.</p><p><strong>That’s all for now.</strong></p><p>I’m embarking on a quest for that sweet, sweet certification and all the accolades and respect that come with it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/480/0*tWEX3Eu8jI8K4ZSS.jpg" /><figcaption>Me, in 4 months.</figcaption></figure><p>If you’d like to check out my notes as I go along, they’re at <a href="https://www.notion.so/darrinlim/AWS-Big-Data-Notes-c2b942e80aa8411ca6ddae9dd9d67287">this Notion page here</a>. Hope you have fun following along!</p><h4><strong>Day 1: The Beginning</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/0*dw93VLQGMIHacl5Y.png" /><figcaption>Would recommend.</figcaption></figure><p>I’m using A Cloud Guru as my method of study. They’re a fantastic educational platform. I used them to pass the AWS Cloud Practitioner Certification (which is an incredibly easy certification), so I’m hoping their content is just as high quality for the Big Data Certification.</p><p>So far, I’m a bit worried. Having finished the introduction, there seems to be a lot more assumed knowledge in this course — knowledge I’m not certain I have. But, we’ll have to just keep moving forward!</p><p>I also felt slightly weird about the disclaimer. There’s a short 1 minute video that essentially reminds you that finishing this course does not guarantee you’ll pass the exam. Kind of strange to me. I guess enough people complained about not passing?</p><h4><strong>Day 2: Setup &amp; A Touch of Kinesis</strong></h4><p><strong>Today was mostly about setting up the data I’ll be using later on in the course.</strong></p><p>Downloaded something called the TPC-H dataset, which is apparently commonly used for database testing.</p><p>Everything was really quite straightforward (although it took longer than expected to download everything). Set up a few S3 buckets via the AWS CLI, using an m5.large EC2 instance to download the dataset — nothing too fancy.</p><p><strong>The first, non-setup part of the course focuses on data collection, so that’s where we started.</strong></p><p>The main topic we touched on today was Kinesis — its AWS’s real-time data streaming and processing platform. There’s Kinesis Streams, Kinesis Analytics, and Kinesis Firehose. I’m not certain of all the differences quite yet, but that’s what studying is for!</p><h4>Day 3: Kinesis Streams Core Concepts</h4><p><strong>So, Kinesis Streams makes building massive data pipelines silly easy.</strong></p><p>It basically allows you to ingest tons of data at the same time in parallel via these components called <strong>shards</strong>. You can put data into shards and get data out of shards, and if you need a bigger data pipeline, you can add as many shards as you want!</p><p>For huge data pipelines, this is a great option. Plus, there are libraries for building applications that send data to shards (Kinesis Producer Library) and applications that consume and transform shard data (Kinesis Consumer Library).</p><p>There are lots of nitty gritty details to learn, but that’s really the gist of the service!</p><h4>Day 4: The Kinesis Connector Library &amp; MangaTracker</h4><p><strong>The Kinesis Connector Library is one way you can get data from Kinesis into other AWS services.</strong></p><p>You can emit data to S3, Redshift, DynamoDB, and ElasticSearch. There was a quick demo I watched that showed how easy it is to set up the connection. It’s a very powerful tool for archiving your streaming data, putting into dashboards, sticking it into a data warehouse — just about anything you can think of!</p><p>Obviously, you can also use Lambda functions to transfer data between services, but those are entirely custom, whereas the Connector Library handles a lot of the tedious details.</p><p><strong>As a personal side project, I’m starting work on something called MangaTracker.</strong></p><p>The project should use at least some of what I’m learning for the Big Data Certification. Wrote up a <a href="https://www.notion.so/darrinlim/MangaTracker-ef04731e4a564369a0a8ed6190aa88c3">Statement of Purpose</a> here if you’re curious.</p><h4>Day 5: Kinesis Firehose</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/300/0*TB04MgLa7gJ042JI.jpg" /><figcaption>Relatable.</figcaption></figure><p><strong>Kinesis Firehose is a fully managed data ingest service.</strong></p><p>As nice a packaged lectures are, sometimes lecturers miss key concepts. In this case, after the lecture, I still had no idea the main differences between all these Kinesis services.</p><p>That’s what Google is for. What is the difference between Kinesis Streams and Kinesis Firehose? <a href="https://www.sumologic.com/blog/devops/kinesis-streams-vs-firehose/">This was the best explanation I found</a>.</p><p>The essence of it is Kinesis Firehose is a fully managed (scales up and down, easy to set up) service <strong>only for data ingestion</strong>. Kinesis Streams are much more custom and for <strong>building applications on top of streaming data</strong>.</p><p>If you want to build an app on Kinesis Firehose…well, you can’t. You’d set up a Firehose pipeline to S3 or Redshift, then build your app on top of those services.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/550/0*W2Iej9MCzBiKBy21.jpg" /></figure><h4>Day 6: SQS &amp; IoT</h4><p><strong>SQS is for queues.</strong></p><p>It stands for the Simple Queuing Service, so…pretty straightforward. It’s meant for asynchronous messaging — when you want to do things at your own pace.</p><p>SQS is for strong, independent applications who don’t need to react to every little message.</p><p><strong>IoT is for the Internet of Things.</strong></p><p>This was an interesting lecture, mostly because the service is awesome. AWS IoT lets you manage fleets of devices!</p><p>Fleets!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*948qGDdPOMYKHbHX" /><figcaption>You could manage this with AWS IoT.</figcaption></figure><p>Obviously, there’s a lot that goes into making sure no rebel scum sneak into your fleet, polluting your Imperial data with lies and deceit. Authentication, authorization, registries of devices (ships), messaging protocols, rules engines that lead to rule actions taken, device shadows.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/723/0*yBJ2h7k92KttBVBW" /><figcaption>Not the shadow I mean, but still cool.</figcaption></figure><p>All of this is way cooler in the context of Star Wars.</p><p>Hello, useful memory device.</p><h4>Day 7: Review Day!</h4><p><strong>You gotta review before you fully forget.</strong></p><p>If I want to succeed at studying, I have to review (even if it isn’t the most fun thing in the world). So I spent my hour today with my review process:</p><ol><li>Recall everything I can on a blank sheet of paper.</li><li>Go through my notes and see what important details I forgot.</li><li>Add those details into my notes as questions highlighted in yellow.</li><li>Without looking, answer those questions in my notes.</li><li>Check that I got all the important details in answering the questions. Fix any I didn’t get and highlight in red. Those I did get I highlight in yellow.</li><li>Do again next week and check my progress!</li></ol><p>This method allows me to figure out what I’m weak at so I can focus my efforts later on.</p><p><a href="https://www.notion.so/darrinlim/Review-1-2019-02-10-3feddfd71fdf46acafdf3ccf225d81be">My first review looks like this</a>.</p><p>Happy reading!</p><h4>Day 8: Data Pipeline &amp; A Quiz</h4><p><strong>Data Pipeline just moves data around.</strong></p><p>It’s pretty much exactly what it sounds like — you can move data from on-premise to AWS, from AWS region to AWS region, from AWS service to AWS service.</p><p><strong>A quiz. Yikes.</strong></p><p>So, I didn’t do so hot on the quiz (7/12 = 58%). There were a lot of little details I wasn’t certain of, since I just covered all of the services. It seems this exam is going to assume complete mastery with and familiarity of the capabilities of each service, and ask questions a level above that.</p><p>Good to know!</p><p>And I know I can improve. It can be discouraging to think you’re not doing well, but what’s important is how fast you’re improving, not where you’re at right now.</p><p>I mean, a week ago, I’d probably be at 2/12. So that’s a +5 right there.</p><h4>Day 9: Glacier &amp; An Intro to DynamoDB</h4><p><strong>Glacier is great for compliance. How fun.</strong></p><p>The brief overview of Glacier was focused on how its data archival capabilities (specifically <strong>Vault Lock</strong>) could be utilized for data compliance. This is especially relevant in the financial industry, where they need to save data for a specified time by law.</p><p>Beyond that, all you need to know is that Glacier makes things cheaper.</p><p><strong>DynamoDB is a managed NoSQL database service.</strong></p><p>Don’t know the difference between SQL and NoSQL databases? Neither did I! So you can <a href="https://www.geeksforgeeks.org/difference-between-sql-and-nosql/">quickly learn the difference here</a>.</p><p>DynamoDB is quite powerful because it handles so many of the tedious aspects of managing your own database. It autoscales, abstracts away patching and updates to servers, and has no practical size limitations.</p><p>Hooray for the cloud! Assuming Bezos doesn’t take over the world with all his cloud money.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*K8gqjajaOzE2DmwY" /><figcaption>Cool, but concerning.</figcaption></figure><h4>Day 10: Retrospective &amp; A Break</h4><p><strong>I organize my projects in sprints.</strong></p><p>Every two weeks, I take a pause and reflect on what I did right, what I could have done better, and what I should change moving forward.</p><p>It’s also a good time to take a breather.</p><p><strong>I need more hands-on labs.</strong></p><p>So far, my study method seems to be working, but I’m going to need to add in more hands-on labs if I want to really retain the material.</p><p>Good thing to know moving forward!</p><h4>Day 11: AWS IoT &amp; SNS Lab</h4><p><strong>AWS IoT is exciting. Very exciting.</strong></p><p>I went through <a href="https://docs.aws.amazon.com/iot/latest/developerguide/create-iot-policy.html">this AWS IoT tutorial</a> today. It walked through how to set up and register an IoT device, then link it to AWS SNS to send a text!</p><p>So many ways you could use this: IoT device status monitoring, messaging people when they’re near an IoT device, even just basic alerts automated from a Raspberry Pi.</p><p>Can’t wait to use this more.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5BFMqwdEG8_cQNXaOsMmGQ.png" /><figcaption>It’s a start!</figcaption></figure><h4>Day 12: DynamoDB Partitions and Secondary Indexes</h4><p><strong>I guess I am a nerd.</strong></p><p>I’ve started to realize that learning how to improve efficiency is a fun thing for me. I don’t think that’s normal. I’m guessing learning about how your DynamoDB table performance can be severely limited if you don’t understand how partitions work isn’t incredibly interesting for most people.</p><p>(Although, if you’re curious, it’s because the number of partitions in a table can increase, but not decrease. <a href="https://cloudonaut.io/dynamodb-pitfall-limited-throughput-due-to-hot-partitions/">More on that here</a>.)</p><p><strong>Databases are made the way they are for good reasons.</strong></p><p>I’ve never learned about secondary indexes and why you would need them; I’ve never thought about the benefits of partitioning and why its necessary. I just used my databases and took their inner workings for granted.</p><p>I don’t anymore.</p><p>All of these innovations were created to solve very specific problems, and now that I understand what those problems are, I’m better equipped to envision, debug, and build my own data systems.</p><p>That’s pretty cool.</p><h4>Day 13: More on DynamoDB Secondary Indexes</h4><p><strong>There’s a lot going on behind the scenes to manage a DynamoDB database.</strong></p><p>Especially when you set up a secondary index. How does the table write to the secondary index? What happens when an entry in the table is updated? Does the query always read the secondary index first?</p><p>(In order: asynchronously, with eventual consistency; the secondary index deletes the old entry, then adds the new entry; I’m not sure, I’ll get back to you.)</p><p><strong>There are 2 types of secondary indexes: Global and Local.</strong></p><p>The best way I differentiate the two is that Local Secondary Indexes are parasites — sometimes they’re symbiotic, but they also use the resources of their host.</p><p>On the other hand, Global Secondary Indexes are really more like their own standalone tables/organisms. They can even have their own alternate partition keys!</p><p>Anyway, look forward to even more on databases shortly.</p><h4>Day 14: Review, Review, Review</h4><p><a href="https://www.notion.so/darrinlim/Review-2-2019-02-17-4-Pomodoro-Cycles-3bc79dad077f44779f689f4d40398c31"><strong>Here’s my second review</strong></a><strong>. I remembered a surprising amount!</strong></p><p>I also retook the section 1 exam and only missed 1 question! That’s a good diff week-to-week.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/0*g2WA3dbuqGz-o_MH.jpg" /></figure><h4>Day 15: DynamoDB Performance</h4><p><strong>Distributed databases require more thought than non-distributed ones.</strong></p><p>That’s the lesson I took away from all of this. Because distributed, NoSQL databases like DynamoDB are broken into partitions/individual machines, you need to think carefully about what partition key you use.</p><p>If you don’t, you risk overloading one partition/machine by trying to get that lone resource to do the work of the entire database.</p><p><strong>Basically, parallel processing is great, as long as you’re actually doing things in parallel.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/498/0*03wjKszJ3wX8gxdE.gif" /></figure><h4>Day 16: An Introduction to EMR &amp; Apache Hadoop</h4><p><strong>AWS EMR runs on Apache Hadoop.</strong></p><p>That used to be just a bundle of words for me, but now I actually know what they mean! I’ve always had a basic understanding of EMR and Hadoop — they’re both for big data processing. But now I actually understand the process of EMR and the fact that Hadoop is one of many distributed computing frameworks that utilizes EMR.</p><p>Hooray for learning!</p><h4>Day 17: MangaTracker Work Day</h4><p><strong>I said I needed more project work, so that’s what I’m doing!</strong></p><p>I previously mentioned that I wanted to build something called MangaTracker. I’ve made a bit of progress on the project since then, so if you’re curious, <a href="https://www.notion.so/darrinlim/MangaTracker-Specification-of-Architecture-6423a17c8cad4cfbbf55d0004977a1dd">here’s a diagram of my current plan</a> for the architecture of the system.</p><p>I’m in the process of curating an execution checklist (prior to any coding, I always iteratively make a highly detailed set of steps — it saves so much time in the long run, even though you don’t start “coding” right away). <a href="https://www.notion.so/darrinlim/MangaTracker-Execution-Checklist-3e1fcb5f30414cf594f20b6f7a79b12c">You can check that out here</a>.</p><p>Building is fun! Especially when nobody cares. No pressure!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/500/0*MspWatqyTmSOSN0C.jpg" /><figcaption>You, likely.</figcaption></figure><h4>Day 18: AWS EMR &amp; A Mini-Review</h4><p><strong>Learned a bit about EMR!</strong></p><p>AMS EMR is essentially a managed version of an Apache Hadoop cluster. The basic architecture is the same — there are just some small software differences.</p><p><strong>Mini-reviews are good and necessary.</strong></p><p>I’ve gotten to the point where covering all the material in one sitting is too much, so I’m doing more frequent mini-reviews and less frequent full reviews.</p><p><a href="https://www.notion.so/darrinlim/Mini-Review-3-2019-02-20-1-Pomodoro-Cycle-ae37a68132c54b37b4200e4546f6f0cf">This mini-review went quite well</a>! I remembered everything I learned this week to a pretty good level of detail!</p><h4>Day 19: More MangaTracker!</h4><p><strong>Spent the day further curating my </strong><a href="https://www.notion.so/darrinlim/MangaTracker-Execution-Checklist-3e1fcb5f30414cf594f20b6f7a79b12c"><strong>execution task list</strong></a><strong>.</strong></p><p>Turns out there are lots of cool libraries and services out there. At some point, you have to make a decision to stop researching and optimizing, and start building.</p><p>I’m almost there!</p><h4>Day 20: Diving Deeper into EMR</h4><p><strong>EMR can use S3 for storage.</strong></p><p>One of the coolest features of EMR I can see is it’s ability to connect to S3 for it’s storage. You can set up multiple clusters and have them access and process the same S3.</p><p>Plus, if you want to keep your S3 data on the HDFS storage in your cluster (for repeated processing), you can copy the data into HDFS very easily.</p><p>V. cool.</p><h4>Day 21: Review #3</h4><p><a href="https://www.notion.so/darrinlim/Review-3-2019-02-24-3-Pomodoro-Cycles-976a4f25686248ba973469efc41c8a26"><strong>More review</strong></a><strong>!</strong></p><p>Not a ton to add, besides the fact I’m going to start removing info I already know very well from future reviews.</p><p>It becomes an unsustainable time sink if I try to recall everything every review.</p><h4>Day 22: EMR Operations</h4><p><strong>EMR is easy to understand, but decently complex to run.</strong></p><p>All EMR is is a service meant to provide distributed computing power for a given task. Simple enough.</p><p>But, when you actually need to put it in practice, there is a list of considerations you have to go through:</p><ul><li>How many and of what size nodes do you need?</li><li>Should your cluster be transient or long-running?</li><li>Which framework should you use? Spark? Hive? Presto? Hadoop?</li><li>What kind of data store fits your use case best? EMRFS? Instance store? EBS?</li><li>How are you going to monitor your instances? AWS’s CloudWatch? An open-source web interface?</li><li>Do you want to run any other software as your cluster is booting up?</li></ul><p>All of these questions require careful weighing of specific pros and cons. Wondering how to answer them?</p><p>Shoot me a message!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/460/0*IavAW64HwsLdE3tF" /><figcaption>Ta-da.</figcaption></figure><h4>Day 23: Hue with EMR</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*0L4BaPS4MxCgDVs0.png" /><figcaption>Image of a very useful thing.</figcaption></figure><p><strong>Why did no one tell me this existed at the beginning?</strong></p><p>Hue is an open-source web console for managing jobs on your Hadoop cluster. It integrates with a <strong>bunch</strong> of other open-source tools allowing you to:</p><ul><li>Schedule and manage workflows (Oozie)</li><li>Query data (Pig &amp; Hive)</li><li>Browse your data (S3 &amp; HDFS)</li><li>Browse your metadata (Hive Metastore)</li><li>And more!</li></ul><p>Man. I know I wouldn’t have appreciated it near as much without knowing all the complexity of EMR first, but still. Would’ve been nice to know about earlier.</p><h4>Day 24: Sprint Retrospective</h4><p><strong>Today was a retrospective day.</strong></p><p>I look back on the last 2 weeks and assess what went well, what I could improve, and and other things I learned.</p><p>The main takeaways, which I’ve implemented slightly already, are:</p><ul><li>More labs! Hands-on is the best way to learn.</li><li>Mini-reviews are good. They enforce the principle of <a href="https://en.wikipedia.org/wiki/Spaced_repetition">spaced repetition learning</a>.</li><li>Long reviews don’t always need to cover all the material. Again, spaced repetition means I don’t need to keep reviewing the same stuff.</li></ul><p>It’s also pretty interesting how much I’ve learned already. I’m definitely on a different level of understanding that I was at the start.</p><p>Growth!</p><h4>Day 25: Mini-Review</h4><p><strong>Did my second mini-review today.</strong></p><p>Most of what I covered this week was about the nuts and bolts of actually setting up an EMR cluster. It turns out that that information is very hard to retain if you don’t actually do the steps themselves.</p><p>I recalled about 50% of the details, and was able to recall all of them when I saw the main topics, but what this means is <strong>I need to mess around with EMR</strong>.</p><p>Labs!</p><h4>Day 26: Hive &amp; HBase</h4><p><strong>Hive is a Data Warehouse infrastructure built on top of Hadoop.</strong></p><p>Hive allows you to write SQL queries to access data on your distributed storage in HDFS. It can be very fast, but you should partition your data properly in order to keep it performant.</p><p>This is great for complex SQL queries and analyst-type work.</p><p><strong>HBase is a distributed data store.</strong></p><p>HBase allows for high throughput and updates to data in its tables. I think of HBase as a faster, more scalable version of DynamoDB, although HBase does have a more manual process of index creation.</p><p>HBase is great for quickly running simple analyses on vast amounts of data.</p><p>Man. There are lots of services that sit on top of Hadoop. Wild.</p><h4>Day 27: Presto &amp; Spark</h4><p><strong>I actually use Presto every day, and finally know why it’s so much faster than Hive.</strong></p><p>At Outcome Health, we use a service called Treasure Data. Couldn’t recommend it highly enough for lean, mean data teams. It’s essentially a web console interface that sits on top of middleware which allows you to query data from a whole bunch of different sources with either Presto or Hive.</p><p>This is how I know that Presto is fast. Super fast.</p><p>It’s also how I know Presto craps out on you if you try to process too much data. I finally know why!</p><p>Presto is an in-memory SQL engine, whereas Hive is not. Since Presto requires everything to be done in-memory, your cluster can reach capacity for huge datasets. In Hive, the data is saved between stages of MapReduce, meaning a much larger amount of data can be processed, albeit at a slower rate.</p><p><strong>Spark. At last.</strong></p><p>I’ve been hearing about Spark for a long time. I even know, generally, what it’s used for and why it’s important. It is effectively the same data science workflow I have on my laptop (query, develop in Jupyter Notebook, train simple models, test and deploy those models) with distributed processing.</p><p>But now, I finally have confirmation! If half of what Spark promises is true, it’ll be more than worth it to learn.</p><p>The Spark libraries range from SparkSQL to Spark Streaming to MLLib and GraphX. That’s enough for all the use cases I encounter at work — pulling data, analyzing streaming data, and training models.</p><p>GraphX is for the fancy. I’ll be fancy someday.</p><h4>Day 28: Another Full Review</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/653/0*vcLSqE-Grd2K4jk-.jpg" /><figcaption>Look at that brain sweat.</figcaption></figure><p><strong>Active reviewing is like lifting brain weights — it should be tiring.</strong></p><p>The main goal of good reviewing is to identify weaknesses in your memory and thinking so you can focus on those points.</p><p>That means you spend the most time on the hardest parts.</p><p>Tiring though it may be, it seems to be working — I can recall a ton of information from the past few weeks. <a href="https://www.notion.so/darrinlim/Review-4-2019-03-03-4-of-Pomodoro-Cycles-cda9dfee50b545ffab3d351130de11bb">You can see what I could recall and what I couldn’t here</a>.</p><p>Also, if you’re interested in some learning/memory tips, <a href="https://www.supermemo.com/en/articles/20rules">this link is pure gold</a>.</p><h4>Day 29: Spark Integrations &amp; EMR Compression</h4><p><strong>Spark integrates with a bunch of stuff.</strong></p><p>The lecture covered integrations with Kinesis Streams, Redshift, and DynamoDb, but there are plenty more connections to be had!</p><p>Spark really is just an all purpose data querying and processing tool. It’s much faster than Hive for processing, allows for distributed processing of ML algorithms, and also integrates well with various visualization features.</p><p>It does everything. No wonder everyone uses it.</p><p><strong>Great Compression == $$$</strong></p><p>As anyone who watches Silicon Valley knows, great compression saves buku-bucks.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/808/0*TOgwRdzVwdJZ6RcO.jpg" /><figcaption>How many datas can we fit in one hand?</figcaption></figure><p>EMR supports a number of different compression algorithms, but the most important, overlooked factor to consider is whether a given compression algorithm can split data. This is important because Hadoop and Spark split data into blocks, as we learned earlier.</p><p>Cool stuff! Really. Makes me want to learn more about the nuances of compression algorithms.</p><p>People sure are smart sometimes.</p><h4>Day 30: Lambda &amp; More MangaTracker Work</h4><p><strong>AWS Lambda can do everything.</strong></p><p>Well, not everything. But it can do a whole lot. You could build copies of almost every AWS service with Lambda and S3, if you really wanted to.</p><p>For my purposes, Lambda is the core of my MangaTracker infrastructure. Which leads me to…</p><p><strong>Setting up Lambdas with packages is annoying.</strong></p><p>It turns out there are 1001 steps to setting up Lambdas when you want them to be dependent on packages. I’m going through that now, but it’s involved me:</p><ol><li>Having to install the AWS SAM CLI to package those dependencies, which required…</li><li>Docker, which was only allowed on Windows 10 Pro, which I tried to avoid by…</li><li>Using Docker Toolbox, which led me down the rabbit hole of trying to debug a bunch of things, which I eventually gave up on. Which led to me…</li><li>Having to purchase Windows 10 Pro in order to…</li><li>Get Docker to work in order to…</li><li>Get the AWS SAM CLI to work in order to…</li><li>Prototype my Lambdas locally and create a dependency package to upload to AWS in order to…</li><li>Actually run my Lambda.</li></ol><p>Boo. Luckily, I’m very patient in the morning. Would have been a grouch if this was during the day.</p><p>Hopefully, this new Windows 10 Pro fix does everything I need it to do.</p><p>Fingers crossed!</p><p>UPDATE: IT WORKED! Docker is now up and running, and the SAM tutorial I’m walking through seems to be working fine so far.</p><p>LESSON LEARNED: Sometimes paying for software is worth it, especially if it’ll save you lots of debugging time now and later (Docker Toolbox is legacy, so I likely would’ve hit a ton of other errors later on).</p><h4>Day 31: HCatalog &amp; The Processing Quiz</h4><p><strong>HCatalog allows you to access the Hive Metastore from Pig or SparkSQL.</strong></p><p>This was a pretty short lecture, and the main thing I took from it is that Hive stores data in a particular format, and HCatalog allows you to access tables in Hive from Pig or SparkSQL despite this format difference.</p><p>This post can help further explain HCatalog’s use.</p><p><strong>This was the end of the Processing section!</strong></p><p>I took the end of section quiz and got a 10/11! So, not too shabby.</p><p>This was the 2nd longest section in the course, and marks my halfway point! Even if it doesn’t always feel like it, I’m making surprisingly good time!</p><p>I’m proud that I’ve been able to move along at a steady clip. How fast you go matters less than that you’re steadily moving in the right direction.</p><p>If you’re also studying, keep up the good work! An hour a day can get you pretty damn far.</p><h4>Day 32: The Basics of Redshift</h4><p><strong>We use Redshift daily at my job.</strong></p><p>It really is a useful tool for business analytics. But, understanding when and where it should be used and when and where it shouldn’t is something I’m hoping to understand more deeply.</p><p>Our business analytics teams tend to complain about “slow performance” often, and I’d be willing to bet that has more to do with how they’re using Redshift than with Redshift itself.</p><p>That said, Redshift is a parallel computing data warehousing service that is super flexible.</p><h4>It can also integrate with a ton of AWS services. AWS is great at integration.</h4><h4>Day 33: Redshift Table Design — Distribution Style &amp; Sort Keys</h4><p><strong>Redshift tables require you to think about Distribution Style.</strong></p><p>Distribution Style is how data is distributed across nodes in Redshift. You can distribute EVENLY, by KEY, or by ALL.</p><p>Even distribution is essentially random, with keys being spread across nodes in no particular order. If you’re not joining, and don’t want to worry about keys, this can be a good option. It’s Redshift’s default option.</p><p>Key distribution moves all data with a specific key value into the same compute node. This makes this optimal for joins, like if your data was organized in the STAR schema.</p><p>Finally, All distribution is where you copy the entire table on every node. This could be useful for a small master table that doesn’t change much — especially if lots of analysts are querying the entire table.</p><p><strong>Sort keys can massively improve Redshift query times.</strong></p><p>Sort keys are a major way you can optimize query performance. They improve data retrieval by removing the need for scans when data is properly sorted.</p><p>Lots left to learn about Redshift, but this is a good start!</p><h4>Day 34: Redshift Table Design — More on Sort Keys</h4><p><strong>There are 2 kinds of sort keys in Redshift: compound and interleaved.</strong></p><p>Compound sort keys are the type of sort keys you tend to think of — where the first key is the main sort, and every key after that is weighted less than that main one. Most time-series sorts are this type of sort.</p><p>Interleaved sort keys are more complicated — they give equal weight to every sort key assigned. This means that regardless of whether you filter by variable x, y, or z, the amount of time that filter takes could be roughly the same. It’s a good method for tables that are filtered in many different ways.</p><p>P cool. P cool.</p><h4>Day 35: A Long Review</h4><p><strong>Reviews are tiring.</strong></p><p>My reviews emphasize recall, and things that are just on the edge of memory. It’s a lot of effort. Blegh.</p><p><a href="https://www.notion.so/darrinlim/Review-5-6-2019-03-10-2019-03-4-X-of-Pomodoro-Cycles-6515e25f7d434e77b274c0688e543de9">But it also shows how much I’ve learned</a>. So far, the main barrier for my reviews is actually how much time it takes to recall everything.</p><p>I’m breaking up my reviews into smaller parts, but even then, they’re a bit long.</p><p>I’m going to start prioritizing what to review more, and maybe only do a full review once a month or so.</p><p>Onwards!</p><h4>Day 36: Redshift Data Types, Compression, Constraints, and More!</h4><p><strong>There are 3 main ways to improve Redshift performance: distribution keys, sort keys, and compression.</strong></p><p>I covered distribution and sorting earlier — compression is more interesting! The lectures here don’t get into much detail on how compression works, but it is magical in its ability to reduce I/O and your storage costs.</p><p>There are also interesting points on constraints in Redshift. Constraints are just rules your incoming data should follow (unique, primary key, not null, etc.). However, most of these rules aren’t enforced — they’re mostly used for query optimization and informational purposes.</p><p>There’s also a <a href="https://github.com/awslabs/amazon-redshift-utils/blob/master/src/AdminScripts/table_inspector.sql">handy dandy script</a> that allows you to view these 3 important factors on your entire cluster!</p><p>Good work, Redshift team.</p><h4>Day 37: Redshift Workload Management &amp; A Frustrating Day of MangaTracker</h4><p><strong>Redshift Workload Management uses some of the architecture I learned from SQS on setting up job queues for Redshift queues.</strong></p><p>It’s pretty interesting how you can use queues to set up concurrent jobs.</p><p><strong>Now, more importantly, I spend an hour and a half struggling to get a Lambda development environment set up.</strong></p><p>None of it worked. Builds failed, dependencies could not be found, folder structures were incomprehensible.</p><p>I’m going to have to do some work here. It’s frustrating, but this happens sometimes. It’s a part of being a software engineer.</p><h4>Day 38: A Rest Day</h4><p><strong>It’s another bi-weekly retrospective!</strong></p><p>Things are progressing well, although I have some heavy work stuff creeping up on the horizon. Going to not let it affect my study habits, but it may affect my pacing.</p><p>But, such is life! It’s good to learn how to balance multiple difficult tasks.</p><h4>Day 39: Loading Data into Redshift</h4><p><strong>You can copy data from many different sources into Redshift.</strong></p><p>Although the easiest methods are via S3, DynamoDB, EC2, and EMR, you can also copy data indirectly by piping it through S3 from Kinesis, Lambda, and various data migration services in AWS.</p><p><strong>You can specify what to copy with a manifest file.</strong></p><p>This is particularly useful when you want to copy specific files into a table in Redshift — whether that means files across buckets or chosen files in the same bucket.</p><p><strong>You can speed up copying with compression and file splitting.</strong></p><p>Obviously, compression makes copying faster, but you can also make copying faster by splitting files.</p><p>Redshift runs on a cluster of machines which split their compute into slices. By splitting your data into equally-sized chunks (ideally, the number of chunks is some multiple of the slices, so your slices all finish at the same time), you can parallel process the data copy.</p><p><strong>You can check for errors with system tables.</strong></p><p>This was cool. There’s also a stv_slices table that allows you to look up the number of slices in your cluster. Standard tables are underappreciated.</p><p><strong>You can modify records with staging tables.</strong></p><p>I’m not a DBA, so I don’t understand why not having UPSERT is a big deal, but Redshift doesn’t have it. You can create a workaround by using UPDATE, DELETE, and INSERT separately with a staging table, though.</p><p>I mean, this is what I usually do anyway. Lol.</p><h4>Day 40: More on Loading Data into Redshift + Redshift Operations</h4><p><strong>There’s a bunch of options for managing and operating a Redshift cluster.</strong></p><p>Understanding how to optimize your cluster (VACUUM and ANALYZE), monitor your cluster, resize your cluster, backup and restore your cluster, encrypt data on your cluster, and choose instance type and number are all things you need to consider.</p><p><strong>The general principle is to understand your primary needs and build requirements based on those.</strong></p><p>Redshift is very flexible! So, you can use it for a lot of things.</p><p>I will also say that it isn’t meant for everything. I’m currently working on a project at work that is essentially deconstructing a very complicated “application” built on Redshift. It’s complicated because Redshift wasn’t built for that.</p><p>Analysts are great for some things. Building infrastructure is not one of those things.</p><h4>Day 41: Redshift Lab</h4><p><strong>Followed along with a Redshift Lab lecture.</strong></p><p>Learned that distribution styles and sort keys really don’t matter much for smaller data (dozens of GBs), but for much larger data, they matter a lot.</p><p>Besides that, it’s always good to walk through some actual implementation. Makes it easier to set up your own cluster when you’re ready.</p><h4>Day 42: Machine Learning</h4><p><strong>As a data scientist, almost all of this was simple review.</strong></p><p>Essentially, AWS ML allows you to train and deploy supervised models incredibly quickly. It’s a very handy tool that provides most of the infrastructure you could need!</p><p>Obviously, there are plenty of small operational details the lecture had to cover, but high-level, that’s all AWS ML is!</p><h4>Day 43: ElasticSearch</h4><p><strong>This was a pretty dense lecture.</strong></p><p>I haven’t finished all of it because it was so dense. There’s just a lot of random details about what ElasticSearch is and what it does — especially all this stuff about ElasticSearch Service domains.</p><p>Gotta spend more time here!</p><h4>Day 44: More ElasticSearch &amp; Athena</h4><p><strong>It’s amazing what some rest and fresh eyes can do.</strong></p><p>ElasticSearch is so much clearer this second time around. It’s just a document store that allows you to search for a given document.</p><p>You can access it via an HTTP web interface, and it can work in conjunction with other AWS services. You could, for example, dump log data into ElasticSearch via Logstash, then visualize it with Kibana. This is common enough, it is referred to as the ELK stack.</p><p><strong>Athena is just a serverless querying service.</strong></p><p>It does, however, provide a ton of value because it integrates with Amazon Glue. Glue crawlers can scan S3, determine the database and table schema of a given file, and turn that file into a table for Athena to scan.</p><p>This means you can query S3 data without having to manually define your table schema.</p><p>Pretty awesome!</p><h4>Day 45: The End is in QuickSight</h4><p><strong>The end is in sight! Quicksight, that is. Lmao.</strong></p><p>After nearly 7 weeks of daily work, I’m nearly done! I covered the Visualization section very quickly — I use tools like these all the time in my day job:</p><ul><li>Quicksight is very, very similar to Tableau.</li><li>I use Jupyter Notebooks all the time.</li><li>Zeppelin is essentially Jupyter Notebooks for Spark.</li><li>D3.js is a software framework for browser-based visualizations I’ve known about and been meaning to use for a long time.</li><li>MicroStrategy is just a 3rd-party visualization provider that integrates with AWS.</li></ul><p>I missed 1 question on the Analysis quiz and no questions on the Visualization quiz. Both very good signs! Since these are the majority of my day job, I’ve got experience that made studying for these directly applicable and easier.</p><p><strong>Only one section and 1 hour of content away from finishing these lectures!</strong></p><p>Then, it’s on to exam prep and full review!!! Almost there! I’m out of the middle section — that’s always the deepest dark. You’re far from the newness of the beginning and from the hope at the end there. It seems 7–8 weeks is the perfect amount of time.</p><h4>Day 46: Finished! Now What?</h4><p><strong>I finished the lectures!</strong></p><p>The final security lectures were pretty dense — a lot of new information. There are different types of key storing, at-rest vs in-transit encryption, hardware vs file-based keys.</p><p>But I finished the lectures!!!</p><p><strong>That said, the exam looks pretty difficult.</strong></p><p>It’s apparently one of the most difficult certifications out there because it requires an integrated understanding of how to balance business needs within the entire ecosystem of services.</p><p>I’m going to focus my next steps preparation on:</p><ul><li>Reading through all the whitepapers</li><li>Recalling entire sections of what I’ve learned</li><li>Finding high-quality practice exams and taking those</li></ul><p>I think if I can focus on those 3 things for the next 2–3 weeks, I’ll be ready to take the exam.</p><p>Nearly there!!!!!</p><h4>Day 47: Reading through Whitepapers</h4><p><strong>AWS has a host of whitepapers.</strong></p><p>I read through the following today, which were quite helpful for both review and gaining a deeper knowledge of what was possible with these services.</p><ul><li><a href="https://aws.amazon.com/blogs/big-data/implementing-efficient-and-reliable-producers-with-the-amazon-kinesis-producer-library/">A Deeper Explanation of What Core Issue the Kinesis Producer Library Solves</a></li><li><a href="https://aws.amazon.com/blogs/big-data/snakes-in-the-stream-feeding-and-eating-amazon-kinesis-streams-with-python/">A Basic Walkthrough of Sample Kinesis Code</a></li><li><a href="https://aws.amazon.com/blogs/big-data/processing-amazon-kinesis-stream-data-using-amazon-kcl-for-node-js/">How to Develop a Basic Kinesis Consumer in Javascript with the Kinesis Client Library</a></li><li><a href="https://aws.amazon.com/blogs/big-data/hosting-amazon-kinesis-applications-on-aws-elastic-beanstalk/">How to Host a Kinesis Application on Elastic Beanstalk</a></li><li><a href="https://d1.awsstatic.com/whitepapers/core-tenets-of-iot1.pdf">The Core Tenets of IoT (SUPER USEFUL)</a></li></ul><h4>Day 48: Even More Whitepapers!</h4><p><strong>I dug through whitepapers on DynamoDB (more documentation than whitepapers, but eh).</strong></p><ul><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/bp-general-nosql-design.html">How NoSQL Design Differs from Relational Database Design</a></li><li><a href="https://aws.amazon.com/blogs/big-data/scaling-writes-on-amazon-dynamodb-tables-with-global-secondary-indexes/">An Example Use Case for DynamoDB</a></li><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/SecondaryIndexes.html">Local vs Global Secondary Indexes</a></li><li><a href="https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.CrossRegionRepl.htmlhttps://docs.aws.amazon.com/amazondynamodb/latest/developerguide/Streams.CrossRegionRepl.html">Cross-Region Replication of Databases</a></li></ul><h4>Day 49: Back to MangaTracker</h4><p><strong>It’s been a while since I last touched my MangaTracker project.</strong></p><p>There’s been a lot of material to cover. However, after finally getting back to it, I made great progress today — ironing out the logic that will go into each of the Lambdas in my architecture took a while, but I did it!</p><p>Now, I just need to:</p><ul><li>Wrap that logic within an actual Lambda</li><li>Test the Lambdas locally</li><li>Push the Lambdas to AWS</li><li>Test the Lambdas in the cloud</li></ul><p>Pretty soon, I’ll be able to trigger all of that logic in the cloud, at which point, it’ll feel like magic is happening.</p><p>It already kind of does feel like magic when everything works locally, to be honest. The data just appears in S3 and DynamoDB.</p><p>Crazy.</p><h4>Day 50: Whitepapers &amp; Day 50</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/233/0*Vi4FhNG8Tz2zEhIO" /><figcaption>Most Improved Darrin Award!</figcaption></figure><p><strong>Day 50!</strong></p><p>Wow. It doesn’t feel like 50 days. And I’m sure I’ve learned a lot, but to be honest, it all seems so obvious in retrospect.</p><p>I know that sounds ridiculous, and it hasn’t been that that long, but it’s hard to remember what it was like to not know what all these services did.</p><p>I’ve learned quite a bit. I’m still learning a ton. And all of this material has made it much easier to tackle areas of AWS I don’t know. It’s provided me with a solid foundation of knowledge off of which to work — I don’t constantly feel like I might be missing something.</p><p>I’ve also gained a much better understanding of data and cloud architecture principles. Those will be useful for forever.</p><p>So, regardless of where I end up using this, it has definitely been a worthwhile investment of my time.</p><p><strong>On that note, I covered this whitepaper on </strong><a href="https://d1.awsstatic.com/whitepapers/machine-learning-foundations.pdf"><strong>EMR Best Practices </strong></a><strong>today.</strong></p><p>Great stuff. Reminded me how much I actually learned the past 2 months.</p><h4>Day 51: AWS Blog Posts</h4><p><strong>Read through some AWS blog posts today on actual implementation.</strong></p><ul><li><a href="https://docs.aws.amazon.com/emr/latest/ManagementGuide/emr-web-interfaces.html">How to View the Web Interfaces You can Set Up on Your EMR Cluster</a></li><li><a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-hbase-access-hive.html">How to access HBase tables with Hive</a></li><li><a href="https://aws.amazon.com/blogs/big-data/analyze-your-data-on-amazon-dynamodb-with-apache-spark/">How to Connect DynamoDB data to Apache Spark</a></li><li><a href="https://aws.amazon.com/blogs/big-data/analyze-realtime-data-from-amazon-kinesis-streams-using-zeppelin-and-spark-streaming/">How to Analyze Real-Time Data Using Zeppelin and Apache Spark</a></li></ul><h4>Day 52: Retrospective</h4><p><strong>Took a break today for my biweekly retrospective.</strong></p><p>Things have been ramping up at work, and I’ve been getting pretty tired out. May need to slow things down, make a list of areas to work on/study more, and take my time.</p><h4>Day 53: A Full Day of Review</h4><p><strong>I spent all day today recalling what I’ve learned from this course.</strong></p><p>That means no looking back, no refreshing my memory, just a straight recall of everything I can remember off of the top of my head.</p><p><a href="https://www.notion.so/darrinlim/Exam-Lead-Up-Review-1-2019-03-28-9a69d821199540a680abb1dad3b00a27">That attempt looks like this.</a></p><p>Clearly, I have a gap in my knowledge when it comes to security, so I’m going to have to spend time reviewing there.</p><p>Besides that, I’m going to go over what I missed this weekend, highlight those problem areas, then make a list of specific concepts to review.</p><p>That should fill in my weaknesses.</p><h4>Day 54: Practice Test Time</h4><p><strong>Practice tests are hard to find for this exam.</strong></p><p>I’m currently working off of WhizLabs’s AWS Big Data Certification practice exams, but they’re riddled with spelling and grammatical errors, and some of the questions aren’t even really questions.</p><p>Not ideal.</p><p>But hopefully this will give me some idea of what the test will be like.</p><p>I’m not doing too hot (~60% on my first try), so I’ll need to put in some elbow grease into the areas I’m weak on.</p><h4>Day 55: Review &amp; Reassessment</h4><p><strong>After taking the practice exam and reflecting, I’ve decided to take more time to review and test out all these services.</strong></p><p>This is useful in 2 ways:</p><ol><li>I will have hands-on experience that will build intuition for the exam.</li><li>More importantly (and more excitingly), I can start building a portfolio of products with my newly learned knowledge.</li></ol><p>I took a step back and realized I’m not on a timeline. I’m moving at my own pace. And even if I deeply wanted to take the exam and get it over with, I’d rather pass with flying colors than barely scrape by.</p><p>I also don’t want to be a “paper tiger” — getting certifications without actually having the technical skill to back it up.</p><p>So, I’m going to spend the next several weeks reviewing during the weekdays and diving deep into services during the weekends — reading documentation, building products, testing new services.</p><p>My first step was to find all the areas I wasn’t 100% on in my recall — <a href="https://www.notion.so/darrinlim/Exam-Lead-Up-Review-Missed-1-2019-03-29-33b028c1d0b3489daecf584ef65cf984">I’ve started compiling that list here</a>. It may look like a lot, but compared to what I recalled, it’s mostly just very fine grained details!</p><p>All will be remembered in due time.</p><h4>Day 56: More Review</h4><p><strong>Spent today continuing to find areas I’m weak in.</strong></p><p>There’s a lot of material to cover, so this review is going to span multiple days.</p><p>So far, again, lots of stuff I forgot, but mostly just details. Just gotta keep refining what I remember.</p><h4>Day 57: Finished Finding Weak Areas</h4><p><strong>I finished finding the areas I was weak in today.</strong></p><p>It took a while, but I’m done with that part! Now, I just need to study these weaknesses for a few weeks will I’m much more polished.</p><p>Progress!</p><h4>Day 58: Going through AWS Docs</h4><p><strong>I worked through half of the WhizLabs questions today.</strong></p><p>The explanations for the questions contained a lot of links to AWS documentation. I’m making a list of all these documentation resources, and over the coming weeks, I’ll be reading through them.</p><p>Hooray for learning!</p><h4>Day 59: Finished Aggregating Docs</h4><p><strong>I finished the second half of the WhizLabs questions today.</strong></p><p>I’ve aggregated a complete list of all the docs referenced in the questions <a href="https://www.notion.so/darrinlim/WhizLabs-Missed-1-30774367167949f68be5f4d014351e2a">here</a>. My next step is to group the questions according to service and read them all.</p><h4>Day 60: Diving into Docs — Kinesis Video Streams</h4><p><strong>The course didn’t cover Video Streams, so I’m reading the docs.</strong></p><p><strong>Basic Commands</strong></p><p>It’s a pretty cool service! You can stream video content that gets broken into fragments to Kinesis Video Streams via the PutMedia command. Those fragments can then be read with the GetMedia or GetMediafromFragmentList commands.</p><p><strong>Live Streaming</strong></p><p>You can also stream via HLS (which is HTTP Live Streaming. It looks pretty simple to set up a live stream on your own, which is crazy! I would’ve thought that to be highly involved, but a lot of people have spent a lot of time building tools to let you do so on your own.</p><p><strong>Security</strong></p><p>Video Streams also encrypts all data at-rest. It’s mandatory! So, good on AWS for data security. Encryption works via AWS’s Key Management Service — you can choose a key, provide a key, or let AWS set a default key, but there must always be a KMS key for server-side encryption.</p><p><strong>Metadata</strong></p><p>There’s also a data model for stream and video metadata, but that’s a bit too granular for what I need right now.</p><p>Tomorrow, I’ll dive into the specific Kinesis Parser and Producer libraries!</p><h4>Day 61: Kinesis Data Analytics Doc Dive</h4><p><strong>Kinesis Data Analytics allows you to run SQL queries on streaming data.</strong></p><p>This is pretty interesting and enables use cases like real-time anomaly detection or light streaming data processing.</p><p>You can even create streams that feed into other streams with “pumps”!</p><p>That said, there are some technical challenges to querying streaming data: primarily how you query the streamed data. Kinesis Data Analytics provides 3 methods:</p><ul><li>Staggered — triggered intervals</li><li>Tumbling — regular intervals</li><li>Sliding — continuous intervals (like tumbling, but constant)</li></ul><p>Pretty neat!</p><h4>Day 62: Key Management Service</h4><p><strong>We didn’t talk much about the Key Management Service in the ACloudGuru lectures.</strong></p><p>And it’s a pretty cool service. It works with Customer Master Keys (CMKs) that encrypt data keys that encrypt your data. This kind of multi-layered encryption is called envelope encryption, and it allows you to use more secure, slower types of encryption with your CMKs, while using faster, less secure types of keys for your data keys.</p><p>Since your data keys are relatively small, decrypting them, even with a heavyweight encryption algorithm (asymmetric keys, for example), is pretty fast.</p><p>Then, you can use your data keys to decrypt your data using a faster, lighter-weight encryption algorithm (symmetric keys, for example).</p><p>Also, since your data keys are encrypted, you can store them with your data!</p><p>Crazy!</p><h4>Day 63: Project Planning</h4><p><strong>I spent the day planning what my projects (after I finish MangaTracker) should be, in order to know how I’ll be polishing the skills I’ve learned here.</strong></p><p>My two main, vetted ideas are:</p><ol><li>A mushroom growth tracking video stream</li><li>A visualization of Twitter-reported illnesses.</li></ol><p><strong>The mushroom growth tracking video stream would be a cool use of Rekognition.</strong></p><p>I’ve been meaning to set up the Raspberry Pi I have sitting around, and this is finally a great reason to do so. The general idea is to have a Pi watch seeded mushroom substrate as mushrooms grow out of it. Then, it can send me messages and images when the mushroom reaches different phases of its growth cycle.</p><p><strong>The Twitter-reported illness project could be a really cool visualization.</strong></p><p>Basically, the idea is to pull tags related to self-reported illness and map them. I’m also planning on using Comprehend to analyze general sentiment (are people excited about their sick day? upset?). This could turn out to be a really cool visualization, if done properly.</p><p>Framing projects is fun! Pure potential, at this point.</p><p>Next step is to properly scope the end outputs, so I don’t spend forever on these projects.</p><h4>Day 64: Aurora, RDS, Databases, &amp; Redshift</h4><p><strong>I started with the docs for RDS and Aurora today.</strong></p><p>Both are pretty straightforward, although this resource I found was very helpful in explaining the complete list of Amazon’s database offerings. I’ll be digging into the high-level view on all of these at some point.</p><p><strong>I also dug into the Redshift docs.</strong></p><p>Most of this was review, but it was good to have a refresher, and to find useful, highly technical tables I’ll probably need to memorize for the exam.</p><p>In general, reading docs can be pretty interesting if you already understand the high-level.</p><h4>Day 65: More Redshift, EFS, Cloudsearch</h4><p><strong>I’m getting better at reading docs.</strong></p><p>Having read a bunch of them, I generally know where to focus, what to skim, and what to dive deep on. The repeating structure of AWS docs also makes reading them easier over time.</p><p>Today, I touched on Redshift, EFS, and Cloudsearch.</p><p>Today, I finished a few docs on Redshift best practices — distribution styles, loading data, node sizes and types — and read through the high-level docs on Cloudsearch and EFS.</p><p>EFS is Amazon’s Elastic File System, which I view as appendable, scalable storage for EC2 instances.</p><p>Cloudsearch is a managed version of Elasticsearch, both of which enable document-searching functionality that can be accessed through a web front-end.</p><h4>Day 66: Rest &amp; Reflection</h4><p><strong>I took a rest day today.</strong></p><p>I think it was much needed — things have been pretty busy at work. I’m having a hard time gauging my progress on this front, but I’m hoping that the next time I take a practice exam, I’ll do much better.</p><p>Just gotta keep chugging away for the next few weeks.</p><h4>Day 67: AWS Lambda &amp; Step Functions Docs</h4><p><strong>I’ve been working with Lambda on my own, so having time to go through the docs on a finer level was helpful.</strong></p><p>The best practices and “how to develop on AWS Lambda” would have been especially useful to read from the get-go, rather than just diving in (although that helps me build momentum). Now that I’ve read quite a few of AWS’s docs, I’ll be sure to put some time into reading the docs before diving right in.</p><p>That said, their deployment mechanisms are still a bit clunky for Lambda, so I’m going to stick to trying Serverless for testing and deploying Lambdas, at least initially.</p><p><strong>Also dipped my toes into Step Functions!</strong></p><p>I should spend more time here, it looks like a promising way of developing serverless applications quickly.</p><h4>Day 68: Kinesis Data Streams &amp; More Redshift Docs</h4><p><strong>I got into the nitty gritty of producers and consumers in Kinesis Data Streams today.</strong></p><p>Specifically, I learned about something called <strong>enhanced fan-out</strong>, which allows you to give a Kinesis consumer a dedicated 2 MiB/second/shard stream from all Kinesis shards to that consumer. The data is pushed to the consumer as well, rather than the consumer having to poll the shards, as it usually does.</p><p>I dug deeper into the Kinesis Producer Library — it’s so easy to send data to Kinesis Streams with it! Streams really is a useful service.</p><p>I also learned a bit about how encryption works in Streams. Data is encrypted before it is stored at rest within Streams, meaning, if you enable encryption, your data is encrypted the entire time it is within Streams storage. Pretty cool!</p><p>Monitoring is also an important area — CloudWatch is automatically set up with Kinesis Data Streams at the stream-level, making monitoring easy.</p><p>Can’t wait to get hands on with the service.</p><p><strong>I spent more time looking through Redshift docs.</strong></p><p>Learned about the system tables — STL (for logs), STV (data snapshots), system views (common aggregations of STL and STV tables), and system catalogs (schema metadata on tables and columns). All of these would be super useful if I was a DBA, but even as a data scientist, knowing what they do and why they’re important is helpful for optimizing my own queries and understanding what our DBA does.</p><p>I also learned what Redshift Spectrum was and how it works, generally. It essentially enables you to query data from your data lake in S3 directly from Redshift (as long as you have a data catalog of your table structures contained somewhere — Glue or Athena are likely places for this).</p><h4>Lots to learn — data is deep.</h4><h4>Day 69: ElasticTranscoder and Quicksight Docs</h4><p><strong>ElasticTranscoder is a service for transcoding media files.</strong></p><p>I recently learned the importance of transcoding at my day-job, since I work for a health tech company that focuses on patient education.</p><p>Transcoding determines file formats, video quality, rate of playback, compression, and many other factors that are critical to saving costs in terms of content delivery while also setting the standard for media quality.</p><p>So, it’s super important for any kind of media company.</p><p><strong>Quicksight is Amazon’s BI tool.</strong></p><p>That stands for business intelligence, if you don’t like acronyms. I don’t either, but sometimes, I get lazy.</p><p>It essentially allows you to make all kinds of different graphs on data pretty quickly. This is useful for quick visualization, analysis, and insight generation.</p><p>Onwards!</p><h4>Day 70: Amazon Machine Learning &amp; Related Services</h4><p><strong>There are a whole bunch of machine learning offerings in AWS.</strong></p><ul><li>Rekognition for computer vision.</li><li>Comprehend for NLP.</li><li>Transcribe for voice-to-text.</li><li>Polly for text-to-voice.</li><li>Machine Learning for common classification and regression problems.</li><li>SageMaker for custom model development.</li></ul><p>All of these are right up my alley and offload a lot of the infrastructure work that is usually the hard part of ML. Now, all you need are processes for ingesting useful data, and you can start training and making predictions pretty quickly!</p><p><strong>I also spent some time looking through D3.js.</strong></p><p>D3.js is a powerful library for making visualizations. It allows you to manipulate the DOM (basically how your webpage is organized and presented) with data.</p><p>Excited to mess with these tools!</p><h4>Day 71: More Docs</h4><p><strong>I covered a few random docs from various services today.</strong></p><ul><li>Data Pipeline Concepts on the major parts of Data Pipeline — the difference between a pipeline, a task, and an attempt.</li><li>IoT Concepts on user authentication; Cognito pools, certificates, IAM users/roles/groups, and federated identities.</li><li>Kinesis Video Streams monitoring (CloudWatch) and logging (CloudTrail).</li></ul><p>Just working my way through, bit by bit!</p><p><strong>Also spent a ton of time working with Serverless yesterday for my MangaTracker project.</strong></p><p>If you’re curious, <a href="https://github.com/dsl16/darrin-services">that repo is here</a>.</p><h4>Day 72: DynamoDB, Kinesis Data Pipeline, and Random Database Services</h4><p><strong>Dug into more docs today.</strong></p><p><strong>DynamoDB docs were mostly a review of write sharding, how to handle hot partitions, adaptive capacity, and global secondary index usage.</strong></p><p>One cool feature I learned was adding a global secondary index partition key field to your main table. This allows you to populate a sparse global secondary index very quickly, and if you break the field into 0-N values, you can have 0-N partitions in your secondary index.</p><p><strong>Kinesis Data Pipeline docs were also a review.</strong></p><p>It was good to remember that you can deliver source records and transformed records in parallel, and that only Redshift requires delivery of data to S3 first, followed by a copy. S3, Elasticsearch, and Splunk can all have records delivered directly.</p><p><strong>There are a whole bunch of AWS database services for specific uses!</strong></p><p>I went down a small rabbit hole learning about the various offerings AWS has:</p><ul><li>Neptune is a graph database service.</li><li>Timestream is a timestream database service.</li><li>DocumentDB is a document database service.</li><li>Elasticache is an in-memory database for real-time applications.</li><li>Quantum Ledger is a blockchain “database”.</li></ul><p><strong>Finally, I reviewed the various data migration services:</strong></p><ul><li>Data Migration Service allows copying from a source database to a target database.</li><li>DataSync is specifically for migrating on-premise databases to the cloud.</li><li>MigrationHub is for managing migrations.</li><li>Schema Conversion is for (you guessed it) schema conversion between different data types.</li></ul><p>I’m almost done with my review of all the docs I determined I should read! Just a few more sessions, and we’ll be ready for another test.</p><h4>Day 73: Amazon EMR, JupyterHub, &amp; EMR Notebooks</h4><p><strong>As a data scientist, I work with Jupyter Notebooks most days.</strong></p><p>It’s a great interface for prototyping, data exploration, and visualization. EMR provides a lot of the same functionality through multiple services.</p><p><strong>EMR Notebooks are just like Jupyter Notebooks.</strong></p><p>EMR Notebooks are essentially remote notebooks that pull their compute from a cluster you assign. These are automatically backed up to S3.</p><p><strong>JupyterHub is the Google Docs of Jupyter Notebooks.</strong></p><p>JupyterHub is different from EMR Notebooks in that it was made for collaboration. You can collaborate with others on the same notebook in near real-time, but everyone needs to SSH into the cluster (which in Google Docs, is just logging in).</p><p>Also, if the cluster dies, and you haven’t backed up your data to S3, your notebook data dies with it. So, configuring regular backups is critical. <a href="https://docs.aws.amazon.com/emr/latest/ReleaseGuide/emr-jupyterhub-s3.html">Jupyter makes this relatively easy</a>.</p><p><strong>Apache Livy is the glue between the front-end notebook and the back-end Spark cluster.</strong></p><p>Both of these services use Apache Livy to schedule Spark tasks under the hood. This enables a Jupyter Notebook front-end that has the speed of Spark on the back-end (I think — I’m less confident on this interpretation, so I’d love some feedback).</p><p>Reviewing these docs was super useful, and likely something I’ll be using in my day job soon!</p><h4>Day 74: Apache Services &amp; AWS Step Functions</h4><p><strong>There are a thousand Apache services that perform many similar functions to AWS services.</strong></p><ul><li>Tez is like MapReduce (and somewhat similar to Airflow).</li><li>Kafka is like Kinesis Streams.</li><li>Flink is similar to Kinesis Streams — it’s a bit hard to separate Kafka and Flink without actually using them.</li></ul><p>Understanding these on at least a high level helps me understand the wider range of services I can use outside of AWS.</p><p><strong>AWS Step Function is super cool.</strong></p><p>It allows you to view your Lambda functions in a workflow — similar to Airflow workflows.</p><p>Used correctly, it could make development of AWS “functions” much faster!</p><h4>Day 75: DynamoDB Review</h4><p><strong>Spent most of the day reviewing my own ACloudGuru DynamoDB notes.</strong></p><p>Lots of review about partitions, throttling, and more. I remembered most of it, so feeling good about this part.</p><h4>Day 76: Compression &amp; Redshift Node Sizes</h4><p><strong>There were a few specifics that I was told to memorize for the exam.</strong></p><p>Compression and node specifics were two of those things.</p><p><strong>Compression is important specifically because whether a compression algorithm is “splittable” will affect whether or not it can work well with distributed architectures.</strong></p><p>The benefit of distributed architectures is parallel processing, and if a compression algorithm cannot split compressed files, the main benefit of distributed architecture is rendered moot. Therefore, it is very important to understand that LZO and bzip2 compression algorithms are splittable, and that LZO is faster, but has a lower compression ratio.</p><p><strong>Redshift node sizes are important to understand to know what type of node you should use.</strong></p><p>As for Redshift node sizes, the dense compute node sizes have 2 slices per node with 160 GB of SSD storage and between 1 and 32 nodes for dc.xlarge nodes. The only difference between dc.xlarge and dc.8xlarge is the node numbers: between 2 and 128 nodes.</p><p>Dense storage nodes are the same except for the amount of storage (as expected) — each node has 2 TB of HDD storage space.</p><h4>Day 77: Redshift, Elasticsearch, Athena, &amp; Visualization Notes</h4><p><strong>I spent more time looking through Redshift notes, as well as visualization notes.</strong></p><p>This included covering Quicksight (BI), D3 (Javascript), Jupyter (Python), and Zeppelin (Spark). All of these are useful visualization tools useful in different scenarios.</p><p>I reviewed Redshift VACUUM and ANALYZE commands, as well as the Athena and Elasticsearch services. Nothing new here, but good to review.</p><h4>Day 78: Encryption</h4><p><strong>I reviewed my ACloudGuru notes on encryption today.</strong></p><p>They’re a bit light, especially considering 17% of the test is on encryption and the course only spent an hour covering the subject.</p><p>My main takeaways are that I should understand the difference between KMS and HSM (basically, software vs hardware keys) and where at-rest and in-transit encryption come into play for the various services (at-rest is data sitting in servers, in-transit is…data in-transit).</p><p>That’s really the end of all my notes. I’ve read just about everything I was meant to read, and studied on a very regular basis. I think it’s about time to take another practice test, then maybe gear up for the real deal.</p><h4>Day 79: Rest Day</h4><p><strong>I’m going to take the next 3 days as rest days from studying.</strong></p><p>This will allow me to forget (which is an important part of remembering), and will provide breathing room I haven’t had in a while.</p><p>I’ll return Friday with an hour of studying, followed by a practice test. Depending on how that practice test goes, I’ll schedule the actual exam the following Tuesday morning.</p><p>We’re almost there!</p><h4>Day 80: Rest Day 2</h4><p><strong>Another rest day.</strong></p><p>I feel it’s well deserved, so I’ll enjoy it!</p><h4>Day 81: Rest Day 3</h4><p><strong>Spent the day traveling to Puerto Rico — no studying today!</strong></p><h4>Day 82: Big Data Practice Exam &amp; Exam Prep Course</h4><p><strong>I tried another WhizLabs quiz.</strong></p><p>It was terrible. I wouldn’t recommend them to anyone. Most of the questions are written in very poor English — some of them aren’t even really questions at all. Just reading them made my brain hurt.</p><p>It was also impossible to tell if my getting an answer wrong was due to lack of comprehension due to terrible English or actually not knowing the material.</p><p><strong>Instead, I found an exam prep course that helped me feel more prepared.</strong></p><p>A lot of the knowledge I already know was covered in the exam prep; it seemed to help much more than those badly worded questions.</p><p>So, despite the fact the practice test didn’t go so well, and because of the fact that the exam prep I seemed relatively ready for, I booked my test for May 1st! That’s in about a week, so I have a bit of time for review.</p><p>Almost there! For real, this time!!</p><h4>Day 83: Puerto Rico Day 1</h4><p><strong>I am technically on vacation, so I actually took a day to treat it as such.</strong></p><p>I still have a morning routine I follow, but I spent the day socializing, going to beaches, watching Avengers: Endgame (amazing), and having a good time.</p><p>We’ll get back to it on Monday.</p><h4>Day 84: Puerto Rico Day 2</h4><p><strong>Another day off — I’ve been exploring caves and beaches with friends! It’s been a great time.</strong></p><p>Also, Game of Thrones was tonight, so that was something!</p><p>Back at things tomorrow.</p><h4>Day 85: Traveling</h4><p><strong>I spent the whole day in the air, reading Caliban’s War (A++, by the way).</strong></p><p>Didn’t actual do any studying.</p><h4>Day 86: Acclimation to Home</h4><p><strong>Spent the day at work, getting used to things again.</strong></p><p>Traveling and trying to study are very difficult to do at the same time, I’ve found.</p><p>I just focused on having a clear space and mind for the test tomorrow.</p><h4>Day 87: The Test</h4><p><strong>Spent the morning studying for the test.</strong></p><p>It’s in just a little bit, so we’ll see how it goes!</p><p><strong>UPDATE: I PASSED!!!!! VICTORY!!! AFTER 87 DAYS AND NEARLY CONSTANT EFFORT, I PASSED!!!</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f88281813b12" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[There are Two Kinds of Conversation]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@darrin.s.lim/the-two-kinds-of-conversations-a-guide-to-fighting-less-with-your-partner-85968f7f30e9?source=rss-a3e5f90a68ba------2"><img src="https://cdn-images-1.medium.com/max/2600/1*pu1usWrvReOAggh9-LX3Bw.jpeg" width="3024"></a></p><p class="medium-feed-snippet">A Guide to Fighting Less with Your Partner</p><p class="medium-feed-link"><a href="https://medium.com/@darrin.s.lim/the-two-kinds-of-conversations-a-guide-to-fighting-less-with-your-partner-85968f7f30e9?source=rss-a3e5f90a68ba------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@darrin.s.lim/the-two-kinds-of-conversations-a-guide-to-fighting-less-with-your-partner-85968f7f30e9?source=rss-a3e5f90a68ba------2</link>
            <guid isPermaLink="false">https://medium.com/p/85968f7f30e9</guid>
            <category><![CDATA[communication]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[relationships]]></category>
            <category><![CDATA[relationships-love-dating]]></category>
            <category><![CDATA[love]]></category>
            <dc:creator><![CDATA[Darrin Lim]]></dc:creator>
            <pubDate>Sat, 18 Aug 2018 01:58:34 GMT</pubDate>
            <atom:updated>2019-07-25T14:39:13.379Z</atom:updated>
        </item>
    </channel>
</rss>