<?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 Christian Heinzmann on Medium]]></title>
        <description><![CDATA[Stories by Christian Heinzmann on Medium]]></description>
        <link>https://medium.com/@sirchristian?source=rss-861fa1a1c1b1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*FPhIJCUCQrMn2kRSLoQXQg.jpeg</url>
            <title>Stories by Christian Heinzmann on Medium</title>
            <link>https://medium.com/@sirchristian?source=rss-861fa1a1c1b1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 05 Dec 2026 05:25:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sirchristian/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[Tail of two 10% Rye Loaves]]></title>
            <link>https://medium.com/breadcalc-online-blog/tail-of-two-10-rye-loaves-3708a6ea2e71?source=rss-861fa1a1c1b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/3708a6ea2e71</guid>
            <dc:creator><![CDATA[Christian Heinzmann]]></dc:creator>
            <pubDate>Sun, 25 Oct 2020 20:15:10 GMT</pubDate>
            <atom:updated>2020-10-25T20:15:10.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*n99ZXOCLVSc3nnYvREoeiw.jpeg" /></figure><h4>Weekends of Oct 16 &amp; Oct 23</h4><p>Instead of looking for recipes online I decided to try my hand at making my own. In general a lot of rustic sourdoughs seem to start with a base of 1000g flour and are around 70–90% hydration, so somewhere between 700g and 900g water. They also seem to mostly come in at and 20g salt.</p><p>The amount of levain however seems to differ depending on fermentation time (which makes sense). Since I still have some <a href="https://www.castlevalleymill.com/store.html#!/2lb-Whole-Rye-Flour/p/79849272/category=36740013">Castle Valley Mill Whole Rye</a> I wanted at least some rye in there. Here is the recipe I started with:</p><ul><li>900g White flour (Bread or All Purpose)</li><li>100g Rye flour</li><li>750g H2O</li><li>200g Levain</li><li>20g Salt</li></ul><p>The amount of levain I used was 200g because I wanted to follow a similar schedule as the <a href="https://medium.com/breadcalc-online-blog/100-bolted-whole-wheat-5cb18673c9c5">100% bolted whole wheat</a> I made last week.</p><p>I ended up making this two weekends in a row. What I should have learned on last week’s dough being slightly under fermented was temperature here in PA has started to fall and my cool kitchen make the fermentation take WAY longer.</p><h4>Levain</h4><p>Both weeks I went with</p><ul><li>100g all purpose flour</li><li>50g rye flour</li><li>150g of H2O</li><li>60g starter</li></ul><p>The biggest different was first week I used 70 degree water, second week I used 85 degree water.</p><p>Both were mixed in the evening.</p><p>The second week we also just finished using the stove so there was an area that was 90 degrees that I let the levain sit for 30 min or so.</p><p>One other difference was the first week had a much cooler night and ambient temperature in my kitchen was 62 degrees overnight, second week ambient temperature was closer to 67 degrees overnight.</p><p>The amount of activity I had in the levain the first week was so disappointing I didn’t even take a picture of it.</p><p>Week two was active and ready to go by 9am</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*F_ysGN49zfpV-ejqbdWmIg.jpeg" /></figure><h4>Recipes</h4><ul><li>Week 1: Same as above, used 900g bread flour</li><li>Week 2: Added 50g water, flour breakdown was 188g bread flour, 712g all purpose flour (I ran out of bread flour)</li></ul><h4>Autolyse</h4><p>Week 1 — started at 9:45am, mixed together all of the flour with 700g of 74 degree water</p><p>Week 2 — started at 9:15am, mixed together all the flour with 750g of 90 degree water</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*meMQ1qGrZ983aCqZ-XtXTg.jpeg" /></figure><p>Hard to tell from the photo, but the dough for the autolyse week one was pretty shaggy, week two was better.</p><h4>Mix</h4><p>Week 1 — started at 10:30am, final dough temperature 73 degrees</p><p>Week 2 — started at 10:00am, final dough temperature 77 degrees</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VLSqL1Y32mD_yfoGBxCumg.jpeg" /></figure><p>I don’t recall the doughs being drastically different at this point. When I took the pictures I didn’t intend them to be compared side by side like this so angle is a bit different.</p><h4>Bulk ferments</h4><p>Week 1 —fermented for 9.5 hours with folds at 10:47am, 11:06am, and 11:27am</p><p>Week 2 —fermented for 8.75 hours with folds at 10:24am, 10:41am, 11:04am and 12:41pm</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*glvuGE6vRcRF0qve78TvlQ.jpeg" /></figure><p>Whoa! What a difference. The second week had way more fermentation activity, even with being fermented 45 minutes less.</p><h4>Shaping</h4><p>Week 1 — Started the shaping around 8pm.</p><p>Week 2 — Started the shaping around 6:45pm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*K3tIuQH9A4x_TOipqm740w.jpeg" /><figcaption>Pre-shaping</figcaption></figure><p>Then I put them in proofing baskets in the refrigerator overnight. At this point I sort of knew in week number one that my dough felt under fermented. So I left that one out at room temperature for another hour before putting it in the refrigerator</p><h4>Scoring and baking</h4><p>Both weeks followed the same baking schedule. Preheated the oven to 500 degrees at 7am with <a href="https://amzn.to/3jMi4eA">cloches</a>. At 8am put them in the oven, dropped the temperature to 745 degrees immediately, and baked with cover on for 30 min, cover off for 15 min.</p><p>The only difference was when I took them out of the refrigerator</p><ul><li>Week 1 — took the dough out of the refrigerator at 6am (before preheating the oven — I was still afraid of under-fermenting)</li><li>Week 2 — took the dough out of the refrigerator at 7:45am</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Ildslja1JQjYzmYUjOVpPg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zRT7FKWsQxpNc9BbRhKP0w.jpeg" /></figure><p>Shape wise there was definitely a better scoring &amp; shaping going on week 1, however what the picture doesn’t show is how much tinier the loafs were. The scores in the second week weren’t as deep I think.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aTvRHOo_808v5zCXUw9YXw.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xEYk8fvJnhJ1uEkVtsVqVg.jpeg" /></figure><p>However proof of the ferment is in the crumb and alas as expected the first week’s was under fermented.</p><p>The second week’s was definitely more pleasant to eat. Lesson learned — temperature matters!</p><p>Note: This post contains affiliate links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3708a6ea2e71" width="1" height="1" alt=""><hr><p><a href="https://medium.com/breadcalc-online-blog/tail-of-two-10-rye-loaves-3708a6ea2e71">Tail of two 10% Rye Loaves</a> was originally published in <a href="https://medium.com/breadcalc-online-blog">breadcalc.online blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[100% Bolted Whole Wheat]]></title>
            <link>https://medium.com/breadcalc-online-blog/100-bolted-whole-wheat-5cb18673c9c5?source=rss-861fa1a1c1b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/5cb18673c9c5</guid>
            <category><![CDATA[bread]]></category>
            <category><![CDATA[sourdough]]></category>
            <category><![CDATA[whole-grains]]></category>
            <dc:creator><![CDATA[Christian Heinzmann]]></dc:creator>
            <pubDate>Sun, 11 Oct 2020 14:00:37 GMT</pubDate>
            <atom:updated>2020-10-11T14:02:27.797Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KlBehVCEtIfovxkEKFieaQ.jpeg" /></figure><h4>Weekend of October 9th 2020</h4><h4>Planning — Thursday Night</h4><p>Thursday night is planning the weekend baking. I have to work around:</p><ul><li>Saturday 2pm to 6pm : Kid’s soccer tournament</li><li>Sunday 1pm to 4pm : Eagles Game</li><li>Chores Saturday or Sunday morning</li></ul><p>I also am thinking I’ll use the discard to make <a href="https://www.theperfectloaf.com/my-top-3-leftover-sourdough-starter-recipes/#h-golden-sourdough-starter-waffles">Golden Sourdough Waffles from The Perfect Loaf</a>, and pizza dough.</p><p>Other variables I have is the kind of flour I have at home. I have some <a href="https://www.castlevalleymill.com/store.html#!/2lb-Bolted-Hard-Wheat-Flour-bread-pasta-pizza/p/79849245/category=36741011">Castle Valley Mill Bolted Hard Wheat</a> &amp; some <a href="https://www.castlevalleymill.com/store.html#!/2lb-Whole-Rye-Flour/p/79849272/category=36740013">Castle Valley Mill Whole Rye</a> along with some <a href="https://amzn.to/2Fh2MzI">bread flour</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ZeJ1EWDYl76uaW7jhArkkA.jpeg" /></figure><p>Since I haven’t seen many recipes for bolted whole wheat I think I’ll try to adapt this <a href="http://girlmeetsrye.blogspot.com/2017/12/hand-bolted-100-whole-wheat-loaves.html">100% bolted whole wheat from Girl Meets Rye</a>.</p><p>My starter is a 1:1 (100% hydration) starter with all-purpose flour. I also like to make 2 loaves a weekend and the Girl Meets Rye recipe is only for 1 loaf. My planned schedule &amp; recipe below.</p><blockquote>Friday night (10pm) mix a levain that can be used for pizza &amp; bread</blockquote><ul><li>150g all purpose flour</li><li>150g rye flour</li><li>300g of 70 degree H2O</li><li>50g starter</li></ul><blockquote>Saturday morning (9am) mix dough for autolyse</blockquote><ul><li>850g of 70 degree H2O (using less water than the Girl Meets Rye recipe as I want to see how much the bolted flour that I have will absorb.</li><li>1000g of bolted whole wheat</li></ul><blockquote>Saturday morning (11am) fully mix dough by adding to the dough</blockquote><ul><li>20g fine sea salt (Wegmans)</li><li>200g levin</li></ul><p>I am going for a longer bulk fermentation than the original recipe. Because of this I am using water on the cooler side (70 degrees F) and less levin. I plan for bulk fermenting for 8ish hours.</p><p>I’ll still do a set of 3 folds in the first 2 hours. This should leave me time to get to the soccer game while the bread is fermenting.</p><blockquote>Saturday night (7pm) shape the loaves and retard in fridge overnight</blockquote><blockquote>Sunday morning (6am) bake the loaves</blockquote><p>At 6am I’ll preheat the oven to 500 degrees F with my <a href="https://amzn.to/3jMi4eA">cloches</a> (dutch oven would work great too) inside.</p><p>At 7am put the bread in the oven with lid on, after 15 min turn the oven down to 475, then after another 15 min take the lid off then cook for another 15–20 min or until the internal temp reaches 210 degrees.</p><h4>Levain — Friday night</h4><p>Ended up mixing at 8pm. The rye really soaks up the water so it looks pretty stiff.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lJvINjR4vx3nAhbnjvMwyw@2x.jpeg" /></figure><p>Temperature in the room was 72 degrees F and left overnight.</p><h4>Mixing — Saturday Morning</h4><p>Saturday morning was a bit cooler, 67 degrees in the kitchen. Glad I mixed the levain a bit early, at this temperature I think a few extra hours to ferment is a good thing.</p><p>9:03am : Coffee ready, starting mixing for the autolyse</p><p>9:10am : Mixing finished, cover the dough and leave out. The flour did take quite a bit of the water. For temperatures the flour was 60 degrees (I keep my whole grains in the refrigerator; I tried to take it out to come up to room temp), the water ended up being 80 degrees, and left me with a final dough temperature of 75 degrees.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FFRiLDA9eq01C0VVZ1grkw.jpeg" /><figcaption>Looks like I caught the thermometer mid digit change — it did mostly say 75 degrees for final dough</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iaX-YFKUUhotMqvypRI31Q.png" /><figcaption>Mixed dough for autolyse</figcaption></figure><p>11:03am : Time to put it all together. To the already mixed dough I added 200g levain. The dough looked a little dry so I added another 50g of water, dissolved 20g salt in that water. Final dough temperature was 72 degrees F.</p><p>11:09am : Put the dough in my proofing container.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L-gZ3MObttBb7GisDdutyw.png" /></figure><p>I performed 4 folds</p><ul><li>11:22am</li><li>11:44am</li><li>12:10pm</li><li>1:00pm</li></ul><p>Then I let it sit out at room temperature (70 degrees) while I went to the soccer tournament.</p><h4>Shaping — Saturday Evening</h4><p>The dough obviously fermented, although didn’t quite rise as much as was expected (hoped?)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JUu70OzAUfAxAfD3cmofgQ.png" /><figcaption>After primary fermentation</figcaption></figure><p>7:21pm : Took the dough out of the proofing container and did a pre-shape. Let it sit covered with a kitchen towel for a bit.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oHGitHiyeUBqQ4A5eQeTwA.jpeg" /></figure><p>7:50 pm : Time for doing the shaping and putting in the proofing baskets.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ao7q40M3IbXZ0vLBbCBcWA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gC8vwm0HVPMlBFFQ4a9rfQ.png" /></figure><p>7:55pm : Covered the baskets with plastic (I find the plastic bags from the produce section of the grocery store work perfectly) and put in the refrigerator overnight.</p><h4>Baking — Sunday Morning</h4><p>Got the stove on at 6:50am, going to let it preheat for an hour or so with my <a href="https://amzn.to/3jMi4eA">cloches</a> inside.</p><p>Took the loaves out of the refrigerator at 7:40am, started the scoring process around 8am</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*drbInHNUtjalpv9jwkuWMw.jpeg" /></figure><p>Started baking at 8:05am — I followed the cooking time tables above, covered 500 degrees for 15 min, then 475 for 15 minutes, then uncovered at 475 for another 15 minutes.</p><h4>Final Result</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KlBehVCEtIfovxkEKFieaQ.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*1HqkYojOENiYL5wYMz8MTg.jpeg" /></figure><p>If definitely got some good oven spring, but also tore in places I didn’t quite want it to. This may mean my scoring wasn’t deep enough. I suppose it’s also possible that it was a bit under fermented.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ubxzw2_rKRY6pKnbgQhjRQ.png" /><figcaption>Crumb</figcaption></figure><p>The inside is a bit tacky (that could be because I couldn’t wait the full hour until it cooled ) and some unevenness of the holes. Taste is of a decent whole wheat, not amazing (compared to other artisan loaves, compared to mass produced bread it tastes amazing).</p><p>Overall I’m happy with the loaves. They will get gobbled up shortly and this gives me a good baseline to experiment with.</p><p>Note: This post contains affiliate links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5cb18673c9c5" width="1" height="1" alt=""><hr><p><a href="https://medium.com/breadcalc-online-blog/100-bolted-whole-wheat-5cb18673c9c5">100% Bolted Whole Wheat</a> was originally published in <a href="https://medium.com/breadcalc-online-blog">breadcalc.online blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Tartine Basic Country with Pennsylvania Blue Cornmeal]]></title>
            <link>https://medium.com/breadcalc-online-blog/tartine-basic-country-with-pennsylvania-blue-cornmeal-a1060dbc0df7?source=rss-861fa1a1c1b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a1060dbc0df7</guid>
            <dc:creator><![CDATA[Christian Heinzmann]]></dc:creator>
            <pubDate>Thu, 08 Oct 2020 20:25:47 GMT</pubDate>
            <atom:updated>2020-10-08T20:25:47.412Z</atom:updated>
            <content:encoded><![CDATA[<p>The idea of this log is to start logging weekly my bread baking. Sometimes it’ll be the same recipe, sometimes different. This is to force me to start writing down some of the variables so I can try and recreate the loaves that I like best.</p><p>That said…</p><p>I baked these loaves 2 or 3 weeks back, I didn’t take good pictures, or record in detail what I did. However it was tasty! I had to start this blog somewhere.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*p1_zCLXKI-qN8APWWJBLgg.jpeg" /></figure><p>To bake these loaves I started with the basic <a href="https://tartinebakery.com/stories/country-bread">Tartine Country Bread recipe</a>. For the whole wheat flour I used <a href="https://www.castlevalleymill.com/store.html#!/2lb-Whole-Rye-Flour/p/79849272">Castle Mill Whole Rye</a>, the bread flour is <a href="https://amzn.to/2Fh2MzI">King Arthur bread flour</a>. I modified the recipe with some <a href="https://www.castlevalleymill.com/store.html#!/2lb-Heirloom-Bucks-County-Blue-Cornmeal/p/157890053/category=40268218">Castle Mill Heirloom Bucks County Blue Cornmeal</a>.</p><p>For the modification right before I mixed the dough I boiled 100g of the corn meal in 1 cup of water (I think — this is via memory, it should come out looking a little bit like wet sand). Actually the <a href="https://amzn.to/30JHpyA">Tartine Bread Book</a> has a pretty good section on modification of the Basic Country loaf. I tried to stay close to that.</p><p>Then before the 2nd fold and after the corn meal porridge has cooled down I put the corn meal into the dough and folded it in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GaAPkytohGGUhT6F7Jm9sA.png" /><figcaption>Crumb of finished loaf.</figcaption></figure><p>Next post will have more details on time tables, ambient temperatures, and more pictures.</p><p>Happy baking.</p><p>Note: This post contains affiliate links.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a1060dbc0df7" width="1" height="1" alt=""><hr><p><a href="https://medium.com/breadcalc-online-blog/tartine-basic-country-with-pennsylvania-blue-cornmeal-a1060dbc0df7">Tartine Basic Country with Pennsylvania Blue Cornmeal</a> was originally published in <a href="https://medium.com/breadcalc-online-blog">breadcalc.online blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Scaling ETL: How data pipelines evolve as your business grows]]></title>
            <link>https://medium.com/grubhub-bytes/scaling-etl-how-data-pipelines-evolve-as-your-business-grows-72ff6c744e6e?source=rss-861fa1a1c1b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/72ff6c744e6e</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[information-architecture]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[redshift]]></category>
            <dc:creator><![CDATA[Christian Heinzmann]]></dc:creator>
            <pubDate>Mon, 24 Sep 2018 16:36:00 GMT</pubDate>
            <atom:updated>2019-07-11T18:43:51.022Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gLGT1fxRG-0gLW57Da8xhg.jpeg" /></figure><p>Data drives so much of what we do here at Grubhub. Every order, every dish you search for, every favorited restaurant tell us something about our diners and what they want to eat. But there’s two types of data: the source data we gather and provide when a customer orders from one of our apps and the compiled data our analysts use to improve our apps.</p><p>These two sets of data contain the same information but differ in form and scope. When you open up <a href="http://www.grubhub.com/">Grubhub.com</a> looking to order pad thai, you see your favorite restaurants, search results for restaurants for that provide pad thai, and your previous orders that may or may not have been pad thai. When an analysts looks at data, they want to see when people order pad thai the most, what restaurants are most popular for pad thai, and which diners regularly order pad thai.</p><p>As you can see, the source data serves a single data point and needs to serve it fast. Analytics data gathers data from a lot of points — not only different production systems, but CRM systems, customer care systems, third party analytics, etc. Pulling everything into one spot is very powerful, but it can be resource heavy and slow.</p><p>To get from our source data to analytics data without affecting performance for our diners requires a data pipeline.</p><h3>Building a data pipeline</h3><p>For the last few years, the standard business practice was to setup an ETL pipeline. The steps are:</p><ul><li>Extract: take data from a source system.</li><li>Transform: modify the data in some way. This can be renaming fields, combining data, calculating metrics, refactoring to a different granularity, etc.</li><li>Load: save the data to a new (target) system.</li></ul><p>Not all companies need to build this kind of pipeline. If you are a young company/startup and still have questions about your product and market fit, do not spend any time setting up a sophisticated pipeline. All you need is a set of SQL scripts that run as a cron job against the production data at a low traffic period and a spreadsheet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/809/0*kmvgSaZHgzRFgQAM" /></figure><p>But once your product has found a market, you’re going to want to grow your share of that market. It’s at this growth stage where laying down some more dedicated infrastructure for data pipelining and analytics starts to make sense. Your customers give you data every day; analytics helps you use that data to drive improvements to your product.</p><p>How your pipelines and analytics are constructed is going to vary on your use case and scale. However there are some patterns to follow.</p><p>The start of your pipeline will be your customer-facing source data. We mostly use Cassandra, as it performs fast in high-availability environments while allowing seamless multi-region warehouses. But it’s not indexed, which means we tailor each database for each customer query. Even if you use an indexed database like MySQL, you don’t want these databases constantly bombarded with requests, potentially affecting customer experiences.</p><p>That’s where the first step, <strong>extract</strong>, comes in. Most companies set up some sort of scheduler to execute various pieces of code, called jobs. During slow periods, these jobs run and extract all of the data gathered during the day. Again, this data comes from production systems, CRM systems, third party data providers, custom care interactions, and more.</p><p>Once you’ve extracted that data, another set of jobs comes through and <strong>transforms</strong> it using any amount of business logic. Personally, I think transform is the most critical step in the entire process. If you take enough due diligence to be consistent in naming, provide accurate timestamps (in the <a href="https://www.youtube.com/watch?v=-5wpm-gesOY">right timezones</a>!), filter out junk data, obfuscate sensitive information, calculate baseline metrics, and provide enough numbers for new metrics to be calculated, the discoverability and usability of the data in the warehouse increases tenfold. In turn, this increases the efficiency of everybody analyzing the data in the warehouse.</p><p>Finally, a job <strong>loads</strong> this transformed data into a data warehouse that your analysts can access when they need to. Because this warehouse doesn’t face customers, it can perform slower.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/978/0*DgoXlf2VyRW5TeU3" /></figure><p>There are plenty of enterprise solutions doing ETL like this. The various cloud providers have offerings to help set this up, plus there are plenty of good open source tools that can be installed and customized to your environment.</p><h3>The limits of traditional ETL</h3><p>This sort of pattern worked well for many years for us, and continues to work for hundreds of companies. It pulls all data into one place and provides excellent separations between the transactional system and the analytical system. However, there are some pitfalls to be aware of.</p><p>First and foremost, every piece of data that needs to flow into the data warehouse will have some sort of code that goes along with it. This can result in the following issues:</p><ul><li>Long wait times and backlogs to get data from source into the data warehouse.</li><li>Changes at the source could break jobs, which impacts the business and can lead to developer burnout. Constantly fixing breakages is no fun.</li><li>Difficulties in QAing data accuracy against un-transformed raw data.</li></ul><p>Typically this is done in batch mode, which means all the data will be processed at once on some regular basis (typically a day, but could be hourly or weekly). As the amount of data increases, this puts strains on the systems and can cause performance failures. When this happens, your data pipeline can be more trouble than it’s worth.</p><p>You can address some of these pitfalls in a number of ways. The first way is to get rid of the complex workflow engine that transforms the source data. Throw together a few SQL scripts, and/or use one of the various SaaS providers to pull data in from the source and put them in the warehouse. Then transforms are done on query or built into the different views you setup.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/777/0*H96ZKIw5_3HfcIWi" /></figure><p>This eliminates the resource-intensive transformation portion of the ETL pipeline. Your data moves directly to the data warehouse, where it can be accessed as needed by analyst queries. No backlogs, no broken transform jobs, no QA nightmares. Just the data, all in one place.</p><p>For a company in the middle of a growth stage, this is a completely appropriate milestone. You may still have plenty of unknowns in the data and business model which make the transform queries change rapidly. Your source data may be changing just as rapidly. Your data pipeline needs to be flexible enough to adapt to this change. You can use third party services or some very generic scripts to pull in the data and will ensure the reliability of the pipeline.</p><p>However, as your business crystalizes, your metrics get more complex and the amount of data you have starts growing exponentially. You’ll want to codify key metrics and data points in a standard fashion to maintain reliability across your growing organization. Just loading all of your data into a warehouse and hoping that the queries built on top of it remain consistent won’t cut it. You’ll need some way to manage the data before analysis.</p><p>However, injecting a scheduler workflow before that data warehouse (as in the ETL flow above) could potentially compromise some of the pieces already built. So to get transform processes in your pipeline, you can add the scheduler / workflow engine <em>after</em> the raw data already sits inside a data store.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xEAbZeWM4McAd2em" /></figure><p>This kind of architecture has a lot of benefits:</p><ul><li>Data governance becomes easier, as access controls can be different between the raw data and the transformed data.</li><li>The transformations allow for active development and pre-calculation of important business metrics.</li><li>Each piece in the pipeline (shown above) is much easier to scale.</li></ul><p>This pipeline isn’t for everybody — there is definitely some complexity and cost associated with this architecture. You should have already reached some amount of scale before laying this out. However, it’s a good pattern to keep in mind as you are setting up your pipeline, as your early decisions will make this kind of architecture either difficult to setup or easy.</p><p>You can make these pipeline transitions much smoother by creating an explicit interface — usually an API contract — between your production application and your data. This lets you develop for the business needs of your application and the data in parallel. These contracts can make getting data in and out of your warehouse much smoother as your business needs grow and mature. Realtime/streaming data becomes easier to adopt when your business is ready for it.</p><p>Without this explicit interface, your production schema becomes the de facto interface. At that point, you’re stuck with it without some serious rework. Development work can be slow as every change on both sides of the pipeline needs to account for the existing schema. The pipeline itself can become very brittle, as every change to application data can break the pipeline. As companies grow, more engineers means more opportunities to forget to communicate changes.</p><h3>How we pipeline at Grubhub</h3><p>At Grubhub, we currently have a pretty typical ETL pipeline setup with a homegrown ETL scheduler that populates <a href="https://aws.amazon.com/redshift/">Amazon Redshift</a>. But we found that this pipeline started to become cumbersome to maintain as we started to reach some amount of scale. Also it became difficult to track where transformations were happening. So we are transitioning to something that looks more like the last architecture presented above.</p><p>Our new architecture extracts data into a data lake on Amazon’s S3. Then, our scheduler — <a href="https://azkaban.github.io/">Azkaban</a> — transforms the data for analysis. Azkaban both populates the raw data lake as well as our data warehouse, for which we use <a href="https://hive.apache.org/">Hive</a>. We have an excellent team of data engineers that works closely with our business users to come up with a defined set of transformations to present as our standard business object.</p><p>This allows us to decouple the source ingestion from the business level transformations. Allowing one set of engineering to concentrate on optimizing the flow from our production system into Hive tables and another set of engineers working on optimizing the data for the business.</p><p>Also this means that as services are spun up on our <a href="https://bytes.grubhub.com/cloud-infrastructure-at-grubhub-94db998a898a">excellent microservice architecture</a> the access to source data is almost immediately available. This allow for insights into the data before engineers can transform it. Mitigating the downsides of the traditional ETL where business users would have to wait week or even days before measuring a new piece of the business.</p><h3>In closing</h3><p>ETL pipelines are constructed so we can get faster insights into the business from our data. This is true no matter the scale. The architecture of the pipeline will depend on the scale of the business as well as how well the company has reached product/market fit. It’s valuable to know all kinds of architecture so you can pick what is appropriate for you <em>today</em>, but also put down building blocks for what may be coming up in the future.</p><p>We’re still learning and growing our pipeline here at Grubhub as well, and we’ve definitely learned from some mistakes along the way. We’d love to hear from you on how you’ve architecture your pipeline and answer any question you have on how you may want to approach your pipeline today.</p><p><em>Do you want to learn more about opportunities with our team? Visit the </em><a href="http://bit.ly/WORK4GH"><em>Grubhub careers</em></a><em> page.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=72ff6c744e6e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/grubhub-bytes/scaling-etl-how-data-pipelines-evolve-as-your-business-grows-72ff6c744e6e">Scaling ETL: How data pipelines evolve as your business grows</a> was originally published in <a href="https://medium.com/grubhub-bytes">Grubhub Bytes</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Software Architecture at a Startup]]></title>
            <link>https://medium.com/@sirchristian/software-architecture-at-a-startup-d166c7f060ca?source=rss-861fa1a1c1b1------2</link>
            <guid isPermaLink="false">https://medium.com/p/d166c7f060ca</guid>
            <dc:creator><![CDATA[Christian Heinzmann]]></dc:creator>
            <pubDate>Fri, 28 Mar 2014 09:50:34 GMT</pubDate>
            <atom:updated>2014-03-28T09:50:34.735Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>TLDR — Don’t over architect.</blockquote><p>As a technical person I tend to think about how code and systems will be structured. I start geeking out over folder structure, object hierarchy, separation of concerns, testability, mutability, scalability, etc, etc, etc. However <strong>THIS. IS. WRONG..</strong></p><p>Software architecture must first be thought of in terms of what the business is trying to do, then architect from there. Let’s take a journey through the stages of a typical startup product and explore what kinds of architecture is appropriate for that stage.</p><h3><strong>Product Discovery</strong></h3><p>This stage is the hardest for a software engineer turned entrepreneur. There should be no architecture at this stage. That’s right.<strong>NOTHING.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*XnXGLpNtwpwR2Gl6OmMxJQ.jpeg" /><figcaption>“Empty Parking Lot” by Joe Shlabotnik</figcaption></figure><p>Put your coding tools down before someone gets hurt. You need something that can show off an idea so people can get some idea of what you are doing. For this use <a href="http://wordpress.com/">WordPress</a>, <a href="http://simplpost.com/blog/simplpost-does-custom-web-apps-prototypes-and-mvps/">Simplpost</a>, <a href="http://launchrock.co/">LaunchRock</a>, etc. Something that allows for quick iterations and capturing of something (hint: email addresses are great to collect) that can validate your idea. Before there are any ideas of downloading a CMS and hosing it on a home built linux server, or spinning up a shiny new instance in the cloud. No. Use a tool hosted by experts. There are a billion free options out there. Pick the first tool that looks good enough. Don’t sweat the details.</p><p>Beside some sort of landing page and tools to build one the only other tool you are allowed during product discovery is a spreadsheet. Spreadsheet are great to keep track of whatever your business needs to keep track of.</p><h3><strong>Minimally Viable Product (MVP)</strong></h3><p>Congratulations. There is some inkling that your idea may actually be worth pursuing.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*YyVF7WIraAOvAyp_8G_n1Q.jpeg" /><figcaption>“porsche 911 pinewood derby car” by <a href="http://www.flickr.com/photos/lodefink/">steve lodefink</a></figcaption></figure><p>Before laying out the architecture for the MVP make sure you aren’t lying to yourself, just so you can use your comfy dev tool. Take 5 minutes and think about it. Are you <em>really </em>ready to build the MVP for your startup? I’ll wait while you think about your answer.</p><p>For your Minimally Viable Product the architecture should really be something quick. You will be building the wrong thing at first and it will need to be thrown away. Once you are on track to be building the right thing, that product also will be thrown away. Don’t burn up all your time on something that will be scrapped later.<br>High level architecture should not be a concern when building an MVP. This is creating <a href="http://www.construx.com/10x_Software_Development/Technical_Debt/">Technical Debt</a>. Starting a business takes SOME investment. It’s okay to take on Technical Debt now.</p><p>Creating an MVP is all about quickly getting something in the hands of potential customers so then can test it out.</p><p>Here is an outline of the architecture to use.</p><ul><li>Use the language you are most comfortable with.<br>Any language will do for an MVP. This is not the time to learn a new language. Learning a new language is great, and side projects are the perfect place to learn a new language. Early stage startups are not the right place.</li><li>Use SQL.<br><a href="http://architects.dzone.com/articles/2010-why-startups-should-not">Do not use NoSQL</a>. Software engineers like myself love the idea of using a NoSQL data store. There is an elegance to NoSQL. NoSQL has its place, just not now. Do not think about WebScale while building your MVP. The data you get from having your MVP out in the wild may be the most valuable thing you get out of your MVP. SQL insures that the data is there, and since it is relational you can query data out into different forms depending on how the business evolves.</li><li>No Unit Testing<br>Unit testing at this stage will slow you down. Yes there will be bugs, nobody will care.</li></ul><p>That’s all the guidelines needed for an MVP. Again MVP is all about quick, lean, and discovery.</p><h3><strong>Beta Product</strong></h3><p>Once you have customers, now you can build your beta product.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*TLNqRPTvQmshk0s7An6ngw.jpeg" /></figure><p>Here is where you can start tackling some of the technical debt left by the MVP. If you really truly kept your MVP barebones, from the tech stack point of view, you can start a new codebase. Most likely though your MVP has moving parts that will be hard to write over from scratch. Plus <a href="http://www.joelonsoftware.com/articles/fog0000000069.html">a full rewrite normally isn’t the right answer</a>. (Yes, the MVP section said we’d be throwing out the MVP, that was a little white lie to make you write your MVP faster.) Writing a beta is taking the technical and business lessons learned from the MVP and migrating them to a more stable, <em>slightly </em>more scalable package.</p><p>What kinda of things should be include in the beta product?</p><ul><li>Measurements and metrics.<br>Building a business isn’t a static thing. Events are always in motion. Being able to measure and analyze technical and business metrics will be critical to growth. Now is a great time to put some thought into how you will capture and report on this data. Don’t go crazy measuring. Pick a few critical metrics and start there. This may or may not include an A/B testing framework</li><li>Use SQL.</li><li>Automation frameworks.<br>Much like the MVP a beta product will constantly be developed and released. Investing in automating some of the technical processes will help with continuous deployment.</li><li>Testing<br>By now SOME of code base has become “core”. Using unit tests sparingly in the core part of the application will allow for some confidence when moving parts around the core need to change. A word of caution, unit test too much and development will slow down. Pick your critical application parts carefully.</li></ul><p>A beta product is where some more “traditional” software development processes start to be acceptable. This is also a time where you may want to look for additional technical help. Be it a permanent addition to your team, a contractor, or extra time for you to spend on product.</p><h3><strong>v1.0</strong></h3><p>Going from Beta to v1.0 will be less of a clear line than it was between MVP and Beta.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/603/1*ApohjaDhE2r2FE2wR3opcg.jpeg" /><figcaption>Science museum [CC-BY-SA-3.0 (<a href="http://creativecommons.org/licenses/by-sa/3.0">http://creativecommons.org/licenses/by-sa/3.0</a>)], via Wikimedia Commons</figcaption></figure><p>You may arrive at v1.0 quite organically. Arguably it would be better to arrive at v1.0 after doing multiple iterations of your product based on customer interviews, metrics, and internal dialogs. A v1.0 product needs a balance of features, stability, and flexibility. Your v1.0 product may not completely pay back the technical debt left over by the MVP, however some of that debt will start becoming a headache at this point. There needs to be at least a plan to tackle that technical debt.</p><p>Product scalability should be thought about it this stage, <strong>not implemented. </strong>This means architecture hooks can be put in place for future scalability. It means you can design for easy migration to a more scalable product. Scalability should not be the main focus.</p><p>Architecting a v1.0 product is going to be fairly comfortable for a traditional software engineer.</p><ul><li>Tackle technical debt.<br>At least have an eye toward how you will tackle the technical debt</li><li>Still use SQL</li><li>Enhance your automation suite</li><li>Enhance your metrics</li></ul><h3><strong>v.Next</strong></h3><p>Now your product is “real”.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/640/1*JqTDXKglQrfe4R-drQkq9g.jpeg" /><figcaption>By Royalbroil (Own work) [CC-BY-SA-3.0 (<a href="http://creativecommons.org/licenses/by-sa/3.0">http://creativecommons.org/licenses/by-sa/3.0</a>)], via Wikimedia Commons</figcaption></figure><p>People know about you. Congratulations you are now thrown into the bucket of “successful startup” (even though failure is still a real possibility). At this point you may even get to use NoSQL! Business and technical scalability will be a real concern. There is no real set of bullet points of a product like this. This is what all those programming courses and blog entries have been training you for.</p><p>Like this post? Follow me on twitter, <a href="https://twitter.com/sirchristian">@sirchristian</a>. This was originally was posted on my own <a href="http://www.sirchristian.net/blog/2014/03/15/software-architecture-at-a-startup/">personal blog</a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d166c7f060ca" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>