<?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 Kyle Galbraith on Medium]]></title>
        <description><![CDATA[Stories by Kyle Galbraith on Medium]]></description>
        <link>https://medium.com/@kyle.galbraith?source=rss-9c730136e183------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*N3AvBKA3iSLb2OfnBf7OWg.jpeg</url>
            <title>Stories by Kyle Galbraith on Medium</title>
            <link>https://medium.com/@kyle.galbraith?source=rss-9c730136e183------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 24 Nov 2026 02:50:42 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@kyle.galbraith/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[To aspiring software developers: the interview is a two-way street]]></title>
            <link>https://medium.com/free-code-camp/to-aspiring-software-developers-the-interview-is-a-2-way-street-dfec43ffcc6e?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/dfec43ffcc6e</guid>
            <category><![CDATA[careers]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[career-advice]]></category>
            <category><![CDATA[jobs]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Tue, 17 Jul 2018 20:29:45 GMT</pubDate>
            <atom:updated>2018-07-28T18:09:10.856Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tWMo-uiJW-MqoyexkEJMpQ.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/geM5lzDj4Iw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Sydney Rae</a> on <a href="https://unsplash.com/search/photos/message-they-need-you?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>All new software developers entering into tech are hungry to land their first job. It is the breakthrough moment for many. Most folks I meet that are out of college or code school are passionate and hungry to learn.</p><p>Some are willing to do anything to land that first position. I often mentor folks that are so excited at the prospect of writing code for a living that they lose sight of key things during the interview process. Some companies exploit this excitement during the interview/offer stage.</p><p>So I am here to remind you, the aspiring developer, that the interview is a two-way street. You are evaluating the company as much as the company is evaluating you.</p><p>In that vein, here are three things that I evaluate when I am considering a company.</p><h3>1. Is the work impactful and interesting?</h3><p>Do you enjoy having your teeth pulled for 8 hours? No, probably not. For me, sitting at a desk for 8 hours a day doing work that isn’t impactful to the business or its customers is a waste of my time.</p><p>Do work that matters and that interests you.</p><p>As someone with a brain that is never on pause, I can assure you the worst thing for me to do is meaningless work. I view meaningless work in the same arena as sitting in traffic, having my teeth pulled, or [insert some other uncomfortable activity].</p><p>Therefore, for me to move to a company, the work needs to be impactful to the business. If it’s a Software Engineer position, I want to know that I am going to build features that delight customers. If it’s a Developer Advocate position, I want to know that I am going to help customers/developers solve problems they are facing by educating them.</p><p>This isn’t complicated. It is dependent on the definition of impactful within your context. Only you know the things that interest you versus the things that don’t. But, you <strong>must</strong> evaluate those things during the interview.</p><p>Here are some common questions I ask to help uncover the answer to this:</p><ul><li>What is the most impactful thing a person in this position could do?</li><li>Who is the customer/consumer of my work? What is the goal of my work?</li><li>How does this role impact the business?</li></ul><h3>2. Is this a place where I can evolve?</h3><p>Stagnation. Lack of learning opportunities. Pigeonholed.</p><p>These are all the enemies of you evolving into who you want to be. Everyone has an idea of who they want to be, and that idea almost always changes. Therefore, a position or company has to be elastic and able to adapt to that evolution as well.</p><p>I am someone who prefers to wear multiple hats and not be tied down to a job description. This is how I evolve both in my career and personally. Not everyone is in this <a href="https://en.wikipedia.org/wiki/Dinghy">dinghy</a> with me and that is perfectly OK. If staying down one track for the entirety of your career is your jam, go for it.</p><p>To join a company and be happy means that a company needs to offer the ability for me to go outside my comfort zone. Take on new responsibilities, learn different ways of doing things, and evolve into the person I want to be tomorrow.</p><p>A few simple questions I ask to help me see if a company supports this type of career evolution:</p><ul><li>What are the career growth opportunities for someone in this position?</li><li>If I had an idea for <em>X</em>, but <em>X </em>was outside my responsibilities, what is the company philosophy on me doing <em>X</em>?</li><li>How do you help developers stay in sync with current technologies?</li></ul><h3>3. Would I enjoy sitting next to these individuals for 8 hours a day?</h3><p>You are potentially going to be spending 40 hours/week with people you meet during an interview. Which means you should enjoy speaking with them. Even if the position is remote, team collaboration and communication can either make your job enjoyable or absolutely miserable.</p><p>The tricky part is that this is very hard to determine in a 45-minute interview with someone.</p><p>The best approach I have found is to chat with folks about what they are passionate about. Don’t know what they are passionate about? That’s your first question to them. For me, when someone is passionate about something, they exude their true personality and what motivates them.</p><p>What if they have no passions? There is nothing wrong with that. Go further and figure out what they enjoy about their job. Get them talking about the things they like/dislike so that you can have a conversation.</p><p>The point here is to have more of an informal conversation than to ask a specific set of questions. In my experience, informal conversations bring out more of what a day to day interaction would look like. From there it&#39;s all about assessing that interaction and whether it was pleasant.</p><h3>To conclude</h3><p>This is not a comprehensive list of everything you as a developer should evaluate when considering a new position. The three things discussed here are my own personal opinions. I believe these likely overlap with a lot of others’ views as well.</p><p>The point here is that a job interview, developer or not, is a two-way street. As technical individuals, we can become obsessed with working with Big Company A because they are the leader in X. This isn’t a bad thing. But it shouldn’t be the only reason you decide to take a position there.</p><p>When you interview at a company, evaluate them for what is important to you and your career. Don’t take the responses as the full truth either — do some research on your own as well.</p><p>Remember, they need to hire you as bad as you want to work there.</p><p>Thanks for reading!</p><h4>PS: are you hungry to learn about Amazon Web Services?</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqpqxIxmMWTvRzKraxQOKg.png" /></figure><p>Want to learn more about AWS? I recently released an e-book and video course that cuts through the sea of information. It focuses on hosting, securing, and deploying static websites on AWS. The goal is to learn services related to this problem as you are using them. <a href="https://www.kylegalbraith.com/learn-aws">If you have been wanting to learn AWS, but you’re not sure where to start, then check out my course.</a></p><h4>👏 If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dfec43ffcc6e" width="1" height="1" alt=""><hr><p><a href="https://medium.com/free-code-camp/to-aspiring-software-developers-the-interview-is-a-2-way-street-dfec43ffcc6e">To aspiring software developers: the interview is a two-way street</a> was originally published in <a href="https://medium.com/free-code-camp">We’ve moved to freeCodeCamp.org/news</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to continuously deploy a static website in style using GitHub and AWS]]></title>
            <link>https://medium.com/@kyle.galbraith/how-to-continuously-deploy-a-static-website-in-style-using-github-and-aws-3df7ecb58d9c?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/3df7ecb58d9c</guid>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Sun, 22 Apr 2018 00:32:43 GMT</pubDate>
            <atom:updated>2018-04-25T13:14:30.288Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*akiMv4-XYWEzq_wyhUVUjw.jpeg" /></figure><p>In this post we are going to learn how to use AWS CodePipeline and CodeDeploy to automatically retrieve the source code for a static website from GitHub and deploy that website onto S3.</p><p>We will configure the deployment to happen on any new commit to our master branch.</p><p>We begin by creating a code pipeline with a source stage linked to our GitHub repository. When a new commit is pushed to our master branch, the pipeline automatically checks out the latest code. We can then trigger a build step in our pipeline. This step can install dependencies, run tests, and package our site for deployment. Our final step then deploys our static website to our S3 static website bucket.</p><p>Now that we know what we are going to build, let’s jump in and learn even more by building this out.</p><p><strong>AWS CodePipeline Prerequisites</strong></p><p>To stand up an AWS CodePipeline in our account that communicates with our GitHub repository, there are some prerequisites that you need to take care of.</p><ol><li>You should have an AWS account already setup.</li><li>You should have CLI access configured for your account.</li><li>Your static website should already be hosted out of AWS S3. If not, <a href="https://medium.freecodecamp.org/how-to-host-a-website-on-s3-without-getting-lost-in-the-sea-e2b82aa6cd38">check out this link</a>.</li></ol><h3>Configuring GitHub and AWS Communication</h3><p>In order for AWS to be able to poll for changes to our master branch in GitHub, we need to be able to generate an access token for our GitHub repository. We can generate a personal access token by completing the following steps from within GitHub.</p><ol><li>While logged into GitHub, <strong>click your profile photo</strong> in the top right, then click <strong>Settings</strong>.</li><li>On the left, click <strong>Developer settings</strong>.</li><li>On the left, click <strong>Personal access tokens</strong>.</li><li>Click <strong>Generate new token</strong> and enter <strong>AWSCodePipeline</strong> for the name.</li><li>For <strong>permissions</strong>, select <strong>repo</strong>.</li><li>Click <strong>Generate token</strong>.</li><li>Copy the token somewhere so we can use it later.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*r4nblgja-EQOiJt12au7FQ.jpeg" /></figure><h3>Creating Our CodePipeline By Hand</h3><p>The first thing we need to provision is CodePipeline. Our pipeline is going to consist of two stages, a <strong>Source</strong> stage connected to GitHub, and a <strong>Build</strong> stage that deploys our static website.</p><p>Let’s go ahead and create our CodePipeline via the AWS Console:</p><ol><li>Navigate to <strong>CodePipeline</strong> in the AWS Console.</li><li>Click <strong>Create Pipeline</strong>.</li><li>Enter a <strong>name</strong> for your Pipeline.</li><li>Select <strong>GitHub</strong> as the <strong>source provider</strong>.</li><li>Click <strong>Connect to GitHub</strong>. This will open a separate window where you sign into your GitHub account. Once signed in, you must grant repo access to AWS CodePipeline. This is the communication link between your GitHub repo and CodePipeline.</li><li><strong>Select the repository</strong> you want to use in this Pipeline.</li><li>Enter <strong>master</strong>, or your default branch, in the Branch input.</li><li>Click <strong>Next</strong>.</li><li>For the Build provider we are going to <strong>choose AWS CodeBuild</strong>.</li><li>Select <strong>Create a new build project</strong>.</li><li><strong>Enter a name</strong> for your Build project.</li><li>For the <strong>Environment image</strong> we will use an image provided by AWS CodeBuild.</li><li>Select <strong>Ubuntu</strong> as the operating system.</li><li>Select <strong>Node.js</strong> as the Runtime and <strong>nodejs:6.3.1</strong> as the Version.</li><li>Leave Build specification as the <strong>buildspec.yml option</strong>.</li><li>In the CodeBuild service role section, we want to <strong>create a new service role</strong>.</li><li><strong>Enter a name</strong> for the service role CodeBuild will use.</li><li>Leave the rest of the values at their <strong>default</strong> settings.</li><li>Click <strong>Save build project</strong> and then click <strong>Next</strong>.</li><li>For Deployment provider we want <strong>No deployment</strong>.</li><li>Click <strong>Next</strong>.</li></ol><h3>Who likes clicking buttons? Not me.</h3><p>That was a lot of button clicking right? Could you do that again without looking at all 21 steps? I know I couldn’t.</p><p>Good news! There is a far better way of creating and managing your code pipelines, or any AWS infrastructure for that matter. You may have heard of the term Infrastructure-as-Code, and it is pretty much exactly as it sounds. Represent your infrastructure as code so that you can create, maintain, and destroy it without ever opening a GUI.</p><p>There is nothing wrong with starting with the GUI if you’re new to AWS, or any new cloud provider. But we want to aim for automation as we scale.</p><p>There are many tools out there that make this very easy to do. AWS provides CloudFormation, which allows you to define your resources inside of JSON or YAML templates.</p><p>CloudFormation is great but there are other tools out there as well. One I have been using a lot recently is <a href="https://www.terraform.io/">Terraform</a>. It is cloud provider agnostic and supports a variety of providers via community developed modules.</p><p>For this blog post, I put together a quick Terraform template that provisions our AWS infrastructure.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/ab58903454fe28b4e9845fc72683e4a0/href">https://medium.com/media/ab58903454fe28b4e9845fc72683e4a0/href</a></iframe><p>Let’s take a quick journey through what this template is doing.</p><p>At the top, we are defining the variables to be passed into the template. To provision the resources, we need to pass in the following:</p><ul><li>name of our pipeline</li><li>our GitHub username</li><li>our GitHub token from earlier</li><li>the GitHub repository we want to link to our pipeline</li></ul><p>Than we specify that we want to use AWS as our provider with the region passed in as a variable. As we will see in a minute, this loads a provider from Terraform that supports most AWS resources. You can checkout what AWS resources Terraform supports <a href="https://www.terraform.io/docs/providers/aws/">here</a>.</p><p>The next set of resources we are creating are for our AWS CodePipeline.</p><ul><li>We create an S3 bucket that will hold the artifacts/outputs from each stage in our pipeline.</li><li>We need to create an IAM policy that allows CodePipeline to assume a role we create here in our template, codepipeline_role. That role has a policy attached to it, attach_codepipeline_policy. The policy grants access to AWS services that we need to call during an invocation of our pipeline.</li><li>We configure the resources needed in order for CodeBuild to work as expected. We define an assume role policy that allows CodeBuild to assume a role and access services via the codebuild_policy.</li><li>We create our actual CodeBuild project, build_project, that runs the build stage of our CodePipeline. Notice here we specify the source to be codepipeline and our buildspec to be buildspec.yml.</li></ul><p>To provision our CodePipeline, we assign the artifact store to be the S3 bucket we provisioned earlier. The role is the codepipeline role that we defined earlier as well. The Source stage uses the GitHub provider and the token we generated over on GitHub. We want to send the output of this stage to a label called code via the output_artifacts property.</p><p>The last stage in our CodePipeline resource is the Build stage. Here the provider is CodeBuild and we have defined our input_artifacts to be the code output_artifacts from our Source stage. Then we specify the ProjectName for the CodeBuild project that will be responsible for executing the Build stage.</p><p>Everything we need to provision for our continuous deployment pipeline is in this template. If you are just looking to get up and running with AWS, then configuring this by hand might be faster than writing your first Terraform template. But in the long run, defining your infrastructure as code has massive benefits:</p><ul><li>Your infrastructure definition lives in source control. It can be iterated on as code would be.</li><li>Your infrastructure is now repeatable. If you need to move it to another AWS region, you can run the template in that region.</li><li>You can quickly make changes by changing the template and applying updates.</li></ul><p>Now that we know what this template is doing and we have Terraform installed, we can run this template from the command line.</p><p>First we run terraform init from the directory where our template lives. This pulls in the dependencies Terraform needs to run the template.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*S53nYUCEa1YJ2cjmchFwVA.png" /></figure><p>Once our Terraform template has been initialized we can use the “plan” command in order to see what exactly is going to be created.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4fu76COEoAplllSEIndAVA.png" /></figure><p>Notice everything in green? These are the resources that will be created. If there were resources in yellow, these would be resources that were going to be updated. Then if there were resources in red, they would be deleted.</p><p>You can then run the apply command to actually create everything in the template. There is a confirmation prompt, simply type in yes.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*I4HplNYdKsO4PIzCyAPQfw.png" /></figure><p>Once the template has completed, we should see that all of our AWS resources have been created to support our continuous deployment pipeline.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2FCDJo4EgHwbaPS%2Ftwitter%2Fiframe&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2FCDJo4EgHwbaPS&amp;image=https%3A%2F%2Fmedia.giphy.com%2Fmedia%2FCDJo4EgHwbaPS%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="230" frameborder="0" scrolling="no"><a href="https://medium.com/media/f08e7ca6099477063182dfa5c48a12f1/href">https://medium.com/media/f08e7ca6099477063182dfa5c48a12f1/href</a></iframe><h3>Wait, what did we just do?</h3><p>That is a lot of steps and quite a bit of infrastructure we stood up in AWS. So let’s walk through at a high level what we just created.</p><p>At the top of our pipeline we have the Source, in our case this is our GitHub repository. We configured our pipeline to periodically poll the master branch of our repository. If there are new commits in the master branch, then the pipeline activates to kick off a new build process. This is what is often referred to as a trigger for our build pipeline.</p><p>When a new build starts, our pipeline checks out the latest commits from the master branch. Once the changes are checked out, they are passed to the next step in our pipeline, the Build step. For this step, we are using another AWS service, CodeBuild. We have configured our CodeBuild project to use a Node.js image provided by Amazon. This image comes with Node.js installed already so the build machine that builds our repository has access to it.</p><p>But how does AWS CodeBuild know how to build our repository? That is where the buildspec.yml comes in. This is a special file that we will put at the root of our repository. In it we configure different phases of the build process like pre_install, build, and post_build. For our use case we are just going to configure the build process in the buildspec file. This will consist of copying the contents from our Source to our S3 website bucket, effectively deploying our static website.</p><p>Let’s jump over to our static website repository and configure our buildspec file.</p><h3>Setting up our buildspec file</h3><p>We are going to begin by adding a buildspec.yml file to the root of our static website.</p><p>This file is going to be the template that AWS CodeBuild uses to build, and in our case, deploy our static website. It consists of pre-install, install, build, and post build stages. For our use case, we are going to leverage the build stage.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/00361547470e6079165f209e143e2ba0/href">https://medium.com/media/00361547470e6079165f209e143e2ba0/href</a></iframe><p>What we are doing in the above build specification is pretty straightforward, it is just one line in fact. We are taking the contents of our static website and copying it to the S3 bucket that hosts our site via the AWS command line interface. For the other steps, we are echoing out which step ran in our build process.</p><p>Of course we could do even more here if we had a need to do so. For instance, if we needed to run a build process in our package.json, then the build and post_build steps would look like this:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/3f1ae8562cfe5dac678e02020d2a819e/href">https://medium.com/media/3f1ae8562cfe5dac678e02020d2a819e/href</a></iframe><p>Now we are running npm build inside our build step and saving the s3 sync command for our post build step. Our buildspec is giving us the ability to script not only deployments of our site, but how they are built and tested as well. We could also leverage the other stages like install to add any dependencies our build process needs.</p><p>For now let’s stick with our original buildspec file that is copying our static site to S3. Make sure that it is at the root of your repository, as this is where CodeBuild will look for it. Check it into your repository so we can trigger our CodePipeline.</p><h3>Triggering our CodePipeline</h3><p>Earlier we linked the Source stage of our CodePipeline to the GitHub repository of our static website. It is configured to watch for changes in our master branch. So, any new changes pushed to that branch trigger a new CodePipeline run. As we just checked in our buildspec.yml file, we should now see an invocation of our CodePipeline running.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/820/1*koSBSO6UUPW6pesMuH4ASQ.gif" /></figure><p>We see here that our Source stage has been invoked due to the new changes in the master branch of our repository. This completed and sent its artifacts to the Build stage. The build stage took those artifacts and ran the buildspec.yml file to deploy them to our S3 bucket.</p><p>If we were to click on the <strong>details</strong> link on our DeployToS3 stage, we can see the logs that our build process is outputting.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A1rVNAexO3oSjvgDozFQlA.png" /></figure><p>Once our DeployToS3 stage has succeeded we should then be able to reload our static website in the browser and see our changes.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fgiphy.com%2Fembed%2Fo9ggk5IMcYlKE%2Ftwitter%2Fiframe&amp;display_name=Giphy&amp;url=https%3A%2F%2Fgiphy.com%2Fgifs%2Frandom-bam-emeril-o9ggk5IMcYlKE&amp;image=https%3A%2F%2Fmedia2.giphy.com%2Fmedia%2Fo9ggk5IMcYlKE%2Fgiphy.gif&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=giphy" width="435" height="315" frameborder="0" scrolling="no"><a href="https://medium.com/media/482ca7466d46a8024d65a5cae65817bc/href">https://medium.com/media/482ca7466d46a8024d65a5cae65817bc/href</a></iframe><h3>Bam! We have continuous deployment</h3><p>Channeling my inner Emeril here, we now have continuous deployment for our static website. With any new commit to our master branch, a new CodePipeline run is triggered. This checks out the latest code from GitHub and passes it to CodeBuild. Our build project then executes what is in our buildspec file.</p><p>Currently, our buildspec file is just copying the contents of our static website to our S3 bucket. But, we could extend this to do more things. We could run npm tasks to build our site or run tests. If we are also using CloudFront in front of our static website we can issue an invalidation request when we deploy our new site.</p><p>There is so many things you can learn by diving in and actually using AWS. A static website might seem like a simple use case, but it is awesome for learning a wide variety of things.</p><h3>Hungry to learn more Amazon Web Services?</h3><p>I have been using AWS for over six years now and I am always learning new services and new ways to use existing ones. It is a massive platform with a lot of documentation. But, there are times when that documentation can feel like a massive sea of information. To the point to where you get lost in it.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqpqxIxmMWTvRzKraxQOKg.png" /></figure><p>Inspired by this problem, I recently released an ebook and video course that cuts through the sea of information. It focuses on hosting, securing, and deploying static websites on AWS. The goal is to learn services related to this problem as you are using them. <a href="https://www.kylegalbraith.com/learn-aws">If you have been wanting to learn AWS, but you’re not sure where to start, then check out my course.</a></p><h4>👏 If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3df7ecb58d9c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AWS guide to a zombie apocalypse: how regions & availability zones will save the day]]></title>
            <link>https://medium.com/@kyle.galbraith/the-aws-guide-to-a-zombie-apocalypse-an-explanation-of-regions-and-availability-zones-5fd4b7c2b896?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/5fd4b7c2b896</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Sun, 25 Mar 2018 22:39:34 GMT</pubDate>
            <atom:updated>2018-04-10T05:15:46.848Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k0esraLWMTcZ4mDPiD7jSA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/28v9cq7ytNU?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Dawn Armfield</a> on <a href="https://unsplash.com/search/photos/danger?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>The zombie apocalypse could happen any day now…..</p><p>OK, maybe not.</p><p>If we are deploying business critical systems to Amazon Web Services (AWS), we should at least prepare for one. To do that, our system needs to be at least highly available. Some systems need to be fault tolerant.</p><p><strong>Highly available: </strong>If the system goes down, there is the <strong>possibility</strong> of minimal interruption.</p><p><strong>Fault tolerant: </strong>If the system goes down, there is no interruption.</p><p>The trade-off between the two is often cost. A lot of businesses are content with highly available systems. When done right, the down time can be minimal. But mission critical systems often don’t have that luxury, so they must be fault tolerant.</p><p>In the context of AWS, <strong>regions </strong>and <strong>availability zones</strong> are used<strong> </strong>to build both highly available and fault tolerant systems.</p><h3>Regions</h3><p>A region is a collection of data centers located in a specific geographic area. Different regions are at least one airplane ride away from each other. The regions are isolated from one another so that if one is wiped off the map, the others can continue to function.</p><p>One region in AWS is <strong>us-east-1</strong>, in North Virginia. Another is <strong>us-west-2</strong>, in Oregon. These are two different geographic regions, each containing multiple data centers.</p><p>Since two regions are geographically distinct and on separate networks, replicating data from one region to another is more expensive.</p><h3>Availability Zones (AZ)</h3><p>An availability zone (AZ) is one or more data centers inside a <strong>region</strong>. Each AZ is linked to the other AZs via dedicated fiber.</p><p>The <strong>us-west-2</strong> region has three different availability zones that are at least a car drive from one another. If one of the data centers loses power, there is another in the same region that continues to operate.</p><p>Regions and availability zones are core tenets to both fault tolerant and highly available systems. Let’s go through a sample scenario, showing how we can use them to create fault tolerant and highly available systems.</p><h3>Preventing zombies from killing your services</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/960/0*WLSnc-_bDWwTH-U0.jpg" /><figcaption>Your business can survive this. <a href="https://pixabay.com/en/zombie-horror-undead-monster-784914/">Image credit</a>.</figcaption></figure><h4>The benefits of availability zones</h4><p>Let’s say we have a AWS Relation Database Service (RDS) database that is hosted in the <strong>us-west-2</strong> region. This region has three availability zones:</p><ul><li>us-west-2a</li><li>us-west-2b</li><li>us-west-2c</li></ul><p>But our database only exists in the <strong>us-west-2a</strong> availability zone.</p><p>Zombies have breached the perimeter of the data center at <strong>us-west-2a</strong>. They were hungry and chewed through the power lines. The data center has now lost connectivity.</p><p>Users are trying to access local news headlines from our database. They can’t get any news because our database is down.</p><p>How could we have prevented this? Multi-AZ deployments of our RDS database.</p><p>Instead of having our RDS database living in only the us-west-2a availability zone, we need to have it live in more than one zone. This is accomplished with AWS RDS, because we can turn on Multi-AZ deployments. By turning them on, we can have our primary database in us-west-2a and our backup in us-west-2b.</p><p>Multi-AZ deployments will replicate our database from one availability zone to another automatically. As our application makes updates to the database, those changes are replicated to the other availability zone with no action needed from us.</p><p>If for some reason the primary database in us-west-2a fails, RDS automatically switches to the standby in us-west-2b. No action needed from us, and our application continues to function as expected.</p><h3>The benefits of regions</h3><p>What if the zombie apocalypse took out the entire state of Oregon? Then the databases in that entire region are no longer connected.</p><p>This is a much more severe scenario than one data center being down, as now our entire region is gone. Multi-AZ doesn’t help us, because all the AZs in our region are down. What we need now is multi-region support.</p><p>These scenarios are often referred to as Disaster Recovery (DR) scenarios. To support a DR scenario, we need to replicate our database to another geographic region.</p><p>Luckily, we can use RDS to create read replicas that are located in separate regions. Our Multi-AZ enabled database is based in <strong>us-west-2</strong> (Oregon), and we also have a read replica in <strong>us-east-1</strong> (North Virginia).</p><p>If the zombies eat all of Oregon, RDS can use the replica that is in North Virginia.</p><h3>Design Systems For Zombies</h3><p>Regions are geographic locations that are distinct networks across the globe. Each region consists of one or more data centers that are connected via shared fiber.</p><p>If one data center (i.e. AZ) loses power, we want our applications to automatically fail over to another data center in the same region. This is termed Multi-AZ.</p><p>But, if we want our applications to fail over to another data center when the <strong>entire region is gone</strong>, we need multi-region support.</p><p>Regions and availability zones are often glossed over when people are beginning to learn AWS. But these are critical components to understand when creating highly available and fault tolerant systems.</p><h3>Learn AWS By Actually Using It</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqpqxIxmMWTvRzKraxQOKg.png" /></figure><p>If you enjoyed this post and are hungry to start learning more about Amazon Web Services, I have created a new course on how to host, secure, and deliver static websites on AWS! It is a book and video course that cuts through the sea of information to <strong>accelerate your learning </strong>of AWS. Giving you a framework that enables you to learn complex things by actually using them.</p><p><a href="https://www.kylegalbraith.com/learn-aws/">Head on over to the landing page to get a copy for yourself!</a></p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5fd4b7c2b896" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Quick Explanation Of The S3 Consistency Model]]></title>
            <link>https://codeburst.io/quick-explanation-of-the-s3-consistency-model-6c9f325e3f82?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/6c9f325e3f82</guid>
            <category><![CDATA[amazon-web-services]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[tech]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Sat, 10 Feb 2018 20:58:19 GMT</pubDate>
            <atom:updated>2021-01-12T22:07:21.953Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mISLVGC8vEEJ8ueE3YF7tA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/BLjdrEqcwyE?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Tobias Fischer</a> on <a href="https://unsplash.com/search/photos/consistency?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p><strong>**Update 1/12/2021**<br>This year AWS announced an update to the S3 consistency model, making the caveats represented in this post old and outdated. I have put together a new post, </strong><a href="https://blog.kylegalbraith.com/2021/01/12/the-s3-consistency-model-got-an-upgrade/"><strong>The S3 Consistency Model Got an Upgrade</strong></a><strong>, that you can check out for the latest breakdown.<br>******</strong></p><p>Folks that are switching to AWS are often looking to leverage S3 in some form or another. It is one of the foundational services in the AWS ecosystem.</p><p>It also fits a wide variety of use cases. It fits anything from an event driven processing pipeline to a blob store for lots of objects. There is a lot of unique ways to use S3, and a lot of ways you should not use it. Every piece of technology has limits and tradeoffs.</p><p>A common tradeoff that gets asked about a lot is the consistency model of S3. There is a number of <a href="https://en.wikipedia.org/wiki/Consistency_model">different consistency models</a> across computer science. The AWS documentation for S3 states the following for their consistency model.</p><blockquote>Amazon S3 provides read-after-write consistency for PUTS of new objects in your S3 bucket in all regions with one caveat. The caveat is that if you make a HEAD or GET request to the key name (to find if the object exists) before creating the object, Amazon S3 provides eventual consistency for read-after-write.</blockquote><h3>Consistency Scenarios</h3><p>Many developers have fallen into the trap of only reading the first part of this documentation. But there is caveats here that should be thought about.</p><p>First let’s walk through the happy path scenario.</p><pre>PUT /key-prefix/cool-file.jpg 200<br>GET /key-prefix/cool-file.jpg 200</pre><p>In this scenario we have read-after-write consistency. We PUT a new object, cool-file.jpg, into the bucket. The next operation we performed was a GET for that same object. We see that both operations were successful and returned 200 response codes.</p><p>Let’s go through a caveat scenario as mentioned in the AWS documentation.</p><pre>PUT /key-prefix/cool-file.jpg 200<br>PUT /key-prefix/cool-file.jpg 200 (new content)<br>GET /key-prefix/cool-file.jpg 200</pre><p>Here we are making a PUT request for our new object. Then the next operation we perform is another PUT request. This second request is overwriting the previous object with new content. Our final operation is then a GET request for that object.</p><p>This is a key caveat to the AWS documentation. We are overwriting an existing key in the bucket before we read it back out. We no longer have read-after-write consistency in this scenario. Instead we have <em>eventual consistency. </em>Our GET request could return the content of the first PUT or the content of the second PUT. That will remain true until the change propagates.</p><p>Now let’s examine the other caveat scenario.</p><pre>GET /key-prefix/cool-file.jpg 404<br>PUT /key-prefix/cool-file.jpg 200<br>GET /key-prefix/cool-file.jpg 404</pre><p>This is a view of the caveat mentioned in the documentation. Here we make a GET request for our object before it is created. Of course the object does not exist at this point so the response is 404 Not Found. Then we PUT our new object in the bucket and get a 200 response code. The final operation is then another GET request for the object, but we get a 404 Not Found again.</p><p>In this scenario, S3 has eventual consistency. The 404 response for the first GET is returned until the PUT propagates.</p><h3>Conclusion</h3><p>AWS is a very powerful ecosystem. But, there are times when their documentation is hard to decipher. This can make learning AWS difficult and lead to more questions then answers. My hope is that I have provided at least a little more clarity on the caveats of the S3 consistency model. If you have any questions or comments please feel free to reach out.</p><h3>Learn AWS By Actually Using It</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqpqxIxmMWTvRzKraxQOKg.png" /></figure><p>If you enjoyed this post and are hungry to start learning more about Amazon Web Services, I have created a new course on how to host, secure, and deliver static websites on AWS! It is a book and video course that cuts through the sea of information to <strong>accelerate your learning </strong>of AWS. Giving you a framework that enables you to learn complex things by actually using them.</p><p><a href="https://www.kylegalbraith.com/learn-aws/">Head on over to the landing page to get a copy for yourself!</a></p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6c9f325e3f82" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/quick-explanation-of-the-s3-consistency-model-6c9f325e3f82">Quick Explanation Of The S3 Consistency Model</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hands On With Amazon Neptune]]></title>
            <link>https://codeburst.io/hands-on-with-amazon-neptune-f30d708544b2?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/f30d708544b2</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[amazon]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Thu, 30 Nov 2017 14:29:35 GMT</pubDate>
            <atom:updated>2018-04-06T20:49:47.792Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*vQJLVZgRLtz19t18hBzVxg.jpeg" /></figure><p>The third day of re:Invent is a big deal for AWS fans. Why? Because it is the day the first keynote takes place with Andy Jassy. I am going to skip the Day Three recap from here at re:Invent. There was a lot of new services announced so I was geeking out on those.</p><p>Feel free to check out my <a href="https://codeburst.io/aws-re-invent-2017-recap-a-successful-day-one-b49cd4d9776">Day One</a> and <a href="https://codeburst.io/aws-re-invent-2017-recap-a-big-day-two-b195e5f5b577">Day Two</a> recaps.</p><p>There was one session I managed to squeak into as services were being announced. I managed to get into a hands on lab session for the new <a href="https://aws.amazon.com/neptune/">Amazon Neptune</a> service.</p><h3>Introduction to Neptune</h3><p>Neptune is a new managed graph database provided by AWS. You can store complex cross data set relationships and query them fast.</p><p>It is suppose to be a highly available service with all the usual bells and whistles:</p><ul><li>Read replicas</li><li>Point in time recovery</li><li>Backups to S3</li><li>Encryption at rest</li><li>VPC integration with IAM permissions</li></ul><p>If you are not familiar with graph databases and their use cases. The general idea is to provide a representation of relationships between data. A graph database provides quick query capabilities against those relationships.</p><p>You could of course represent these relationships in a relational database. However, querying many relationships across many tables would be complex. This is the core problem graph databases like Neptune are aiming to solve.</p><p>Social networking, threat detection, recommendations, or even genome analysis require building up large relationships and querying them. A graph database fits very well for these.</p><p>That is the 30,000 foot view of graph databases and a brief intro to Neptune.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FcuL5e94W4FXAmu9w_Uv2Q.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/jU9VAZDGMzs?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Joel Filipe</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>The Meat: Hands On with Neptune (kinda)</h3><p>Amazon Neptune is in what AWS calls Preview. What that means at AWS HQ is a bit of a mystery. For example Elastic File System (EFS) was in Preview mode for a long time. Will that be true for Neptune? Who knows.</p><p>What it means right now is that you must be <a href="https://pages.awscloud.com/NeptunePreview.html">white listed</a> by AWS in order to use Neptune. They said at the hands on lab that it takes about 24 hours for them to respond.</p><p>The hands on lab was done in a canned environment that we were granted access to. It consisted of an EC2 instance running a Neptune AMI underneath the hood. We used <a href="https://metaphacts.com/product">Metaphactory</a> to get acquainted with it via a GUI.</p><p>The interesting bits of the hands on lab were around SPARQL, a SQL like query language for RDF databases. Using SPARQL we crafted queries to pull out information from the Neptune database. The canned data came from Wikidata, GeoNames, and Thomson Reuters.</p><p>We walked through a tutorial that explained how we can query Neptune for data relationships or lack thereof. An example:</p><pre>PREFIX organization: &lt;http://permid.org/ontology/organization/&gt;<br>PREFIX vcard: &lt;http://www.w3.org/2006/vcard/ns#&gt;<br>SELECT * WHERE {<br>  &lt;https://permid.org/1-4295902158&gt; vcard:organization-name ?organizationName.<br>  &lt;https://permid.org/1-4295902158&gt; organization:hasRegisteredPhoneNumber ?phoneNumber.<br>}</pre><p>This is a bit jarring on the eyes, but here is a brief explanation as I understood it.</p><ol><li>PREFIX defines a namespace once so you can then use abbreviations later. Notice it is representing a Uri. This Uri is actually an edge between two nodes in the graph.</li><li>SELECT * WHERE should be pretty familiar if you are a SQL person.</li><li>WHERE { &lt;https://permid.org/1-4295902158&gt; vcard:organization-name ?organizationName. … this looks a bit odd. This is get me the organization-name property associated with the node &lt;https://permid.org/1-4295902158&gt;.</li></ol><p>This query will return the organization name and phone number for that given node.</p><p>The rest of the hands on lab was centered around expanding on that query language to do more complex things. We explored querying across multiple data sets in the graph via edges that link the two. Visualizing SPARQL results was an interesting topic to see the relationships you are returning. Loading data into Neptune via INSERT statements, not unlike a traditional relational database.</p><p>There wasn’t a lot of material on the underlying pieces of Neptune and no definitive release date was given. It was said that a service cannot be announced by AWS unless it is going to be generally available within 90 days. Whether or not that is true will remain a mystery.</p><h3>Conclusion</h3><p>The hands on lab was lacking the technical deep dive I wanted. I was hoping to be given more of a peek on what Neptune is and what it is not underneath the hood. That said, I don’t think AWS can answer that yet. They operate on feedback from their customers and they will transform Neptune to match those needs.</p><p>A managed graph database on AWS is a big deal and something folks have wanted for a while. Will it be successful? That remains to be seen. But it is clear they have a strong focus here and idea is sound.</p><h3>Learn AWS By Actually Using It</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqpqxIxmMWTvRzKraxQOKg.png" /></figure><p>If you enjoyed this post and are hungry to start learning more about Amazon Web Services, I have created a new course on how to host, secure, and deliver static websites on AWS! It is a book and video course that cuts through the sea of information to <strong>accelerate your learning </strong>of AWS. Giving you a framework that enables you to learn complex things by actually using them.</p><p><a href="https://www.kylegalbraith.com/learn-aws/">Head on over to the landing page to get a copy for yourself!</a></p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f30d708544b2" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/hands-on-with-amazon-neptune-f30d708544b2">Hands On With Amazon Neptune</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS re:Invent 2017 Recap: A Big Day Two]]></title>
            <link>https://codeburst.io/aws-re-invent-2017-recap-a-big-day-two-b195e5f5b577?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/b195e5f5b577</guid>
            <category><![CDATA[technews]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[learning]]></category>
            <category><![CDATA[development]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Wed, 29 Nov 2017 07:06:45 GMT</pubDate>
            <atom:updated>2017-11-29T17:55:08.734Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*HIQ05fpnuyE9fK70p_IiJA.jpeg" /></figure><p>You can find a good introduction to AWS re:Invent in my <a href="https://codeburst.io/aws-re-invent-2017-recap-a-successful-day-one-b49cd4d9776">Day One recap</a>.</p><p>Welcome reception day. Monday is your appetizer and Tuesday is kinda like that garden salad you get before your entree. At this point most attendees are checked in and ready to hit sessions hard.</p><p>The major events for Tuesday are the Global Partner Summit and Welcome Reception. Global Partner Summit is for those special AWS partners. I have never been to one, but I believe there is likely a few announcements for those in attendance.</p><p>The Welcome Reception is in three locations this year instead of just the one location last year. It is typically a massive tech expo with about every major tech company in attendance. What is the draw of the reception? One word, swag. Of course you are getting free swag in exchange for something, your work email address. Swag carefully my friends, or link your badge to something you can filter out of your email.</p><p>Outside of the major events, there is of course your usual breakout sessions. Here is a breakdown of the sessions I attended today.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ePj3LkPSMlDpUQld8Xy5fA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/8e2gal_GIE8?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">why kei</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>From Minutes to Milliseconds: How Careem Used Amazon ElastiCache for Redis to Acclereate Their Ride Share Application</h4><p>This talk was about how <a href="https://www.careem.com/dubai/node">Careem </a>leverages ElastiCache to improve their ride hailing match making functionality. Careem faces interesting constraints given they are operating in the Middle East. A few they mentioned that jumped out to me:</p><ul><li>Infrastructure is not as matured as our infrastructure in the US.</li><li>Different countries have different legal requirements.</li><li>Low end cell phone technology, cheap Android devices.</li></ul><p>The focus of the session was on how Careem needed to provide low latency matchmaking for both it’s Captains (drivers) and Customers. They needed to decrease the amount of time to matching the two from 2 minutes to 15 seconds. To improve this came down to reducing their ping rate from 1 every 60 seconds to 4 every 60 seconds.</p><p>To make that happen they took on two challenges. One was to change their backing storage from MySQL to DynamoDB. This was to decrease the amount of time to read the Captain ping history. The second was to add caching via ElastiCache in front of Dynamo to quickly get the latest ping for a given Captain.</p><p>I learned a lot from their approach to using ElastiCache. They created a clustered Redis cache keyed off the Captain id combined with the geo-location hash.</p><pre>captain:343,geo:aabbcc</pre><p>These were the keys to a <a href="http://docs.aws.amazon.com/AmazonElastiCache/latest/UserGuide/UseCases.html">sorted set</a> that contained the history of pings for the given Captain. This was a slick solution and something I was not familiar with at all. Leveraging the sorted set to track the pings and geo locations gave Careem the ability to provide far better ETA for a Captain picking up a Customer.</p><p>If you are a bit naive about the Redis implementation of sorted sets, <a href="https://redis.io/commands/zadd">give this a read</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Z68F4SMRusBjJ7Q8ox4Waw.jpeg" /></figure><h4>Learn to Build a Cloud-Scale WordPress Site That Can Keep Up with Unpredictable Changes and Capacity Demands</h4><p>I am not a WordPress person. I don’t run a WordPress site today, but I do receive a lot of questions on <a href="https://twitter.com/kylegalbraith">Twitter</a> about running WordPress on AWS. So I went to this session to learn more about this world.</p><p>I not only got to learn more about this world, but this talk was actually all about using Elastic File System (EFS). It was a double whammy of learning for me.</p><p>The interesting bit about this talk was leveraging EFS to share WordPress files across instances. Effectively making WordPress web servers stateless. You trade a bit of latency for more scalability, resiliency, and durability across your WordPress site. This was a nice example of a use case for EFS that is very practical.</p><p>There was more bits about using Aurora as a database and ElastiCache for caching database reads to reduce query load. But, the focus of the talk was EFS. Using a shared file system across instances makes it simple to remove state from the web servers.</p><p>The downside? Elastic File System <a href="http://docs.aws.amazon.com/efs/latest/ug/performance.html">throughput</a> is quite confusing. The file system is burstable, meaning you can spend burst credits to get higher throughput.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dtVj3Z2X5P5cnBGJreJ8eA.png" /><figcaption>Performance metrics of EFS</figcaption></figure><p>Most WordPress sites I imagine are in the 10 GiB to 100 GiB in file system size. That means your baseline throughput is 0.5 MiB/second or 50 KiB/second for EFS. But you can burst up to 100 MiB/second for ~7 minutes a day. I would need to test this out in a production like scenario but these seem like poor throughput numbers for a WordPress site.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A0rU1kAiJ-e2L0W9CmgokA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/SB0_3iVP29E?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jan Traid</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>ElastiCache Deep Dive: Best Practices and Usage Patterns</h4><p>AWS ElastiCache for Redis is something that continues to keep popping up at this years re:Invent. They have made improvements to the clustered version. Things like encryption at rest and managed sharding are two that I am hearing about the most.</p><p>I have had an itch to try ElastiCache for a while now, so I went to this session to try and do some short circuit learning. I learned a lot of new things that I hadn’t heard about before. I also learned via things that were not said as well.</p><p>A few features I learned from the session:</p><ul><li>There is support for Lua Scripts which allow you to push business logic into the caching layer.</li><li>Pub/Sub is available on ElastiCache for Redis.</li><li>There is the ability to configure encryption at rest when you configure a cluster.</li></ul><p>There was also a lot of interesting use cases that were talked about. A few that jumped out to me because they are relevant to some of my work:</p><ul><li>Caching database reads. This is the most common use case you will see for any caching mechanism. Reduce the load on the database by caching what you read and/or write.</li><li>Caching HTTP responses. This is something I want to try but it is not clear how folks are invalidating these.</li><li>Using ElastiCache as a NoSQL database. For data that can be regenerated from permanent storage you can hold onto it in ElastiCache. This is interesting if you think about things like file metadata.</li><li>Mobile game leader boards. Using the sorted sets functionality of Redis in ElastiCache makes this very easy to do.</li></ul><p>What was missing from this session was the anti-patterns. I wanted to learn more about what others have tried and failed at. I’d rather learn from their failure than make the same mistake.</p><p>I found this was lacking. I also found that there was little talk of cache invalidation. It was often glossed over by saying “use TTL on the keys”. But it seems like there is more to consider there and a session focusing on that would go a long way.</p><h3>Closing Day Two</h3><p>Tomorrow is the first key note. It is always a mad house to see Jassy in person because everyone wants to see what is announced. However, there was quite a few announcements already today. AppSync was the one that was turning heads here in Las Vegas. We will see what tomorrow has in store.</p><h3>Hungry To Learn More?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*2rUDhw8grg9RjGmkzkIe7Q.png" /></figure><p>If you enjoyed this post and are hungry to start learning about Amazon Web Service, I have started putting together a small book! You can learn about AWS services and techniques through the practical example of hosting, delivering, and securing static websites using Amazon Web Services. Stay updated on the progress of the book <a href="http://kylegalbraith.com/learn-aws">here</a>.</p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b195e5f5b577" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/aws-re-invent-2017-recap-a-big-day-two-b195e5f5b577">AWS re:Invent 2017 Recap: A Big Day Two</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AWS re:Invent 2017 Recap: A Successful Day One]]></title>
            <link>https://codeburst.io/aws-re-invent-2017-recap-a-successful-day-one-b49cd4d9776?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/b49cd4d9776</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technews]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Tue, 28 Nov 2017 06:00:11 GMT</pubDate>
            <atom:updated>2017-11-28T12:55:28.154Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aqLhoaBCoR1WwSYopAwZZg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/sN3xqfZZVxw?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Ethan Weil</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>It is one of the most anticipated tech conferences there is. Tens of thousands of cloud nerds scurry across the busy Las Vegas Boulevard. Celebrities like Shaq walk through the halls of the Venetian. Everybody and their sister can are at The Aria trying to get into a serverless session.</p><p>This is AWS re:Invent 2017 and today is the close of day one. This is only my second year at the conference. But, I learned so much last year that I want to make sure I share what I learn this year with all you.</p><p>If you are not familiar with re:Invent, here is a brief run down.</p><p>At re:Invent you will find a variety of talks. There is breakout sessions that focus on how to use AWS services to solve a spectrum of problems. There are hands on labs where you can convert your learning into real practice. Certifications are a hot thing here. Many want to complete them while they are soaking in all the knowledge.</p><p>Then of course there is the key notes. Attendees line up hours in advance tomorrow and Wednesday to get a seat. Why you might ask? Announcements that’s why. Everyone wants to know what the new hot thing is going to be. O and there is the re:Play party as well. Which is pretty much a rave packed with 30,000 cloud nerds. Free food and enough free alcohol to fill any data center in the world.</p><p>It is a fun conference to attend. You focus on AWS for an entire week and go back to office exploding with ideas. There is a lot of networking opportunities as well. I know of a few people who have formed long lasting bonds by having a beer together at re:Invent.</p><p>Enough introduction. Here is my recap of Day One at re:Invent 2017.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Si08VhEnfoAhgNTJdOYosg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/71hQxE-Sfvg?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Jordan Sanchez</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h3>Day One: Landed, Lined Up, and Learned</h3><p>Last year the conference had 30K+ attendees. Today it seemed like a lot fewer people, but then again I spent my entire day at the Venetian. I heard if you were at the Aria where the Serverless sessions were happening, it was a different story.</p><h3>Scott Triglia on Twitter</h3><p>@kylegalbraith Confirmed, it&#39;s a madhouse!</p><p>There was also rumors of 45+ minute shuttle rides to get from the Venetian to the Aria. Hearing that, I opted to stick out day one at the Venetian and take in as many talks as I could there. I managed to sit in on three breakout sessions in between talking with other folks in the expo area.</p><h4>1 Million bids in 100ms using AWS to power your Real Time Bidder</h4><p>This session from <a href="https://www.beeswax.com/about/">Beeswax</a> focused on how they created their Real Time Bidder in AWS.</p><p>It was interesting to see two former Googlers giving a talk at an Amazon conference. More interesting was the amount of data they had to process on a given day to allow quick decisions.</p><p>To enable the performance they needed to leverage Network Load Balancers (NLB). NLB’s allowed them to optimize their network latency. Seeing as they have to provide real time bids, the difference between milliseconds and microseconds is important.</p><p>The take away I had here was actually around SSL termination. They also chose NLB’s because it allows SSL termination at the instance rather than the load balancer. I found this interesting as their reasoning for doing this was again performance.</p><p>The last thing I found interesting from the talk performed by Beeswax was their use of Scheduled Actions. Bidding windows are predictable at Beeswax. As such, they pre-warm instances in the Auto Scaling group via Scheduled Actions. They launch instances before their morning load comes in to enable quicker response.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tjvQ8XV65JcxIETD53CNDg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/TL5Vy1IM-uA?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Iker Urteaga</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Adopting Microservices in Healthcare: Building a Compliant DevOps Pipeline on Amazon ECS</h4><p>This was one of those sessions that you thought was going to be something. But then was more of a sales pitch by an AWS Partner.</p><p>The general topic was that Healthcare has massive compliance obligations (i.e. HIPAA). Blue Cross Blue Shield of New Jersey talked a lot about how they were going from an on premise monolith to microservices in AWS. This was a journey to say the least. There was no lifting and shifting to make that happen for Blue Cross Blue Shield.</p><p>The biggest takeaway I had from this session was how different of a world a lot of companies live in. Blue Cross Blue Shield had to make very precise decisions when deciding what work loads to move to AWS. There were things they wanted to move, but couldn’t do to a lack of HIPAA compliant services.</p><p>What I found most interesting was how they wrapped existing on premise services. They implemented a strangler type pattern to keep some services contained in their own data centers. Exposing those services via a clean interface. This allowed them to keep HIPAA compliance workloads that were not ready for AWS in their data center. At the same time they didn’t paint themselves into a corner and can move those work loads out piece by piece.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*FHtl0dp1hTbVmCN8RqJVtw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/n-6dDxFI7xc?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">jens johnsson</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>Data Ingestion at Seismic Scale: Best practices for processing petabyte scale HPC workloads in the Cloud</h4><p>This was an interesting session from <a href="http://www.hess.com/">Hess Corporation</a>. Hess needed to process, store, and archive massive amounts of seismic readings.</p><p>Not just recent readings either. No they want/are migrating terabytes of existing data out of their data centers and into S3 for storage. They then leverage lifecycle policies to automatically archive that data to Glacier for cost savings.</p><p>The interesting takeaway from this session was how they move data from on premise locations into AWS. They use a two prong approach:</p><ol><li><strong>DirectConnect: </strong>For low volumes of data, which is hundreds of gigabytes for them, they use a direct connect link. This gives them the dedicated bandwidth they need to get the data from on premise to S3.</li><li><strong>Snowball</strong>: For larger volumes of data they leverage Import/Export Snowball devices. They send a snowball to where the data is located, offload it onto the device, ship it back and load it into S3.</li></ol><p>I found it interesting that they didn’t want to be stuck with just Snowball. They wanted to have the flexibility to upload reasonable data volumes quickly via Direct Connect. It was a use case for Direct Connect I had never really considered up to this point.</p><h3>Wrapping It Up</h3><p>All in all it was a successful start to re:Invent 2017. The crowds are big, the lines are long, but the sessions are always thought provoking. If you intended any sessions today that are worth noting, feel free to add a comment. If you have more notes to add to these sessions, add a comment as well. I will be posting my recaps after each day and I always available to answer questions on <a href="https://twitter.com/kylegalbraith">Twitter</a>.</p><h3>Hungry To Learn More?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*2rUDhw8grg9RjGmkzkIe7Q.png" /></figure><p>If you enjoyed this post and are hungry to start learning about Amazon Web Service, I have started putting together a small book! You can learn about AWS services and techniques through the practical example of hosting, delivering, and securing static websites using Amazon Web Services. Stay updated on the progress of the book <a href="http://kylegalbraith.com/learn-aws">here</a>.</p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b49cd4d9776" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/aws-re-invent-2017-recap-a-successful-day-one-b49cd4d9776">AWS re:Invent 2017 Recap: A Successful Day One</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[3 Valuable Secrets From A Night Out At The Chefs Counter]]></title>
            <link>https://medium.com/hackernoon/3-valuable-secrets-from-a-night-out-at-the-chefs-counter-4a603fb56310?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/4a603fb56310</guid>
            <category><![CDATA[teamwork]]></category>
            <category><![CDATA[startup]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[business]]></category>
            <category><![CDATA[leadership]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Sun, 29 Oct 2017 00:39:30 GMT</pubDate>
            <atom:updated>2019-05-17T06:38:38.164Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VXIymcsaDjYpbVqf-_f9rg.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/nvsHAsuFC54?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Nick Karvounis</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><p>It was a Friday night here in Portland, Oregon.</p><p>Dinner in PDX with no reservation can be an adventure. Thankfully for me and my wife there are dozens of restaurants that leave room for walk ups. We made our way over to Southeast Portland to check out the <a href="http://thecountrycat.net/">Country Cat</a>. The hipster hostess offered us a seat at the chefs counter.</p><p>Now this isn’t the first time I have sat at a chefs counter. I have sat at my share of chefs counters as a Portland foodie would. This time though I observed a few things about how successful teams operate.</p><p>Before I jump into those I want to touch on my philosophy of development teams.</p><p>Development teams live and die by the collective sum of their parts. A development team that fails to operate as a team is a team destined to fail.</p><p>My wife and I were were mesmerized sitting at the chefs counter. A team of four chefs were cranking through a crazy Friday night dinner service with ease. We began to wonder how is this even possible. I can’t even boil pasta and make a sauce at the same time. Let alone cook three other meals and chat it up with my friends like it’s no big deal.</p><p>From where we sat we deduced the following three things about the team in front of us.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XXydnjrdj3NIIGXxm5Xrqw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/bq31L0jQAjU?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">“My Life Through A Lens”</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>1. Communication &amp; Trust Separates Functional From Dysfunctional</h4><p>The chefs from left to right. Fried chicken and appetizers station manned by one guy let’s call him Rick. Meat station was Carl. The seafood and vegetable station owned by Gary. The guy at the counter, head chef, director of chaos, and also creator of desserts was Bob.</p><p>A typical order would go something like this.</p><ol><li>Waiter/waitress walks up hands ticket to Bob.</li><li>Bob reads off the entire order to the other three on the line.</li><li>Fried chicken or appetizer, Rick responds with “heard”.</li><li>Meat entrees, Carl responds with “heard”.</li><li>Seafood or vegetables entrees, Gary responds with “heard”.</li><li>Bob adds the order to a running line.</li></ol><p>Each chef, Rick, Carl, and Gary are listening for the parts of the order they are responsible for. They <strong>must</strong> communicate back to the head chef that they heard what they are responsible for. Bob never second guesses them, and he trusts that each chef heard what they are accountable for.</p><p>As the order cooks, the head chef asks each chef where they are at with their part. The chefs communicate the time left for their dish. The head chef, Bob, then orchestrates the chefs to make sure everything in the order is ready at the same time. By continuously communicating about where they are with a dish, Bob is able to steer the ship. He is able to keep everyone in sync so the order goes all together.</p><p>The chefs all trust that Bob will keep them in sync with one another. They must also trust one another that they will be accountable for their part of the order. They do not stand around and second guess one another as doing so introduces delay.</p><p>In development teams, communication doesn’t have to be a developers top priority. It does need to be somewhere in the top five, and preferably in the top three. Zero communication leads to lack of visibility which is a fast lane to distrust.</p><p>Development teams crumble when there is a lack of trust. Nothing ruins a development culture more than tension and walking on egg shells. Thus, members of a team must be able to trust one another to do the right thing. If you want to put your development team at a stand still, introduce tension and distrust.</p><p>Continuous communication keeps everyone on the same page. Allows everyone to have a voice in the conversation. Communicating ideas, problems, and questions allows everyone to buy into the culture of the team. This increases the knowledge of the team, produces better processes, and builds a healthy culture of innovation.</p><p>The communication doesn’t stop with members in the development team. Often times there are outside stakeholders that need communication as well. Don’t lose sight of them. You want them to be able to buy into the culture of the team as well.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MkdS-lGVNo4rpSt3JVRicA.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/photos/v1VB91uuyaE?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">rawpixel.com</a> on <a href="https://unsplash.com/?utm_source=unsplash&amp;utm_medium=referral&amp;utm_content=creditCopyText">Unsplash</a></figcaption></figure><h4>2. Small &amp; Connected = Cohesive</h4><p>The chefs are connected both professionally and even outside of work. It is clear that they have built a cohesive culture where they all know each others strengths and weaknesses. If this was a team of ten chefs it would be hard for them to maintain that cohesion and comradery.</p><p>Sitting at the counter eating my fried chicken and not thinking twice about it. Bob asks Gary about the start of Trailblazers season. Gary talks with Steve about what to do after dinner service. I notice that the chefs likely hangout outside of work. Small talk about families and sports are common on the line.</p><p>The size of the team is key here as I find it hard for them to have this cohesion if there was ten chefs on the line. They know one another and don’t mind working together each night for dinner service. It’s important that they enjoy working together. I would rather not have blood in my mashed potatoes from a fist fight in the kitchen.</p><p>Building cohesive, self managing, and tight knit teams is easier with fewer people. The ideal team size is somewhere between 4–6 people. Keeping the team small makes communication easier. Knowledge sharing simpler. Thus, fostering a tighter culture.</p><p>Smaller teams are more likely to self manage and hold each other accountable. One member of the team is not above another member. They buy into the success of one another and cover for each other to keep the machine moving. This helps the team grow and function at a healthy level. Still allowing individual developers to feel proud of their work.</p><p>In my own experience this has allowed my career to advance dramatically. By working in smaller teams you have to be accountable for things outside of your comfort zone. This pushed my own boundaries and understanding to new levels. Terrifying but also rewarding at the same time.</p><h4>3. Self Managing Accountability</h4><p>Each chef owns their station. They manage it for each order and they are accountable for producing their dish for it. This makes each chef the manager of their own domain. They must be able to self manage even in the absence of Bob, the head chef.</p><p>Others step in to lead the line when Bob steps away at dinner service. There is no politics around it, someone just does it. Orchestrate the others to make sure the team is still delivering every order. They are a self managing group of collaborators that recognize they are only as good as the sum of their efforts.</p><p>There must always be a leader in a development team. Someone to be held accountable for the delivery of the team. The team must also be accountable to one another. This level of accountability often empowers teams to self manage themselves.</p><h4>Conclusion</h4><p>As a developer and software engineering manager it has been easy to get caught up in the tech bubble. Their are other processes to apply and experience to learn from. Taking a step back and getting rid of <a href="https://hackernoon.com/tagged/technology">technology</a> gave me a different perspective. Sometimes you need a new perspective of the problems you are facing.</p><p>Not all restaurant chef counters are synchronized. In fact even the Country Cat probably has an off night every now and again. So it is OK if development teams have an off day. As long as the pillars of a development culture are present an off day can be easy to recover from.</p><p>Next time you are faced with problems in your own teams consider observing how others are handling similar problems in their own domains.</p><h3>Hungry To Learn More?</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/432/1*2rUDhw8grg9RjGmkzkIe7Q.png" /></figure><p>If you enjoyed this post and are hungry to start <a href="https://hackernoon.com/tagged/learning">learning</a> about Amazon Web Service, I have started putting together a small book! You can learn about AWS services and techniques through the practical example of hosting, delivering, and securing static websites using Amazon Web Services. Stay updated on the progress of the book <a href="https://www.kylegalbraith.com/learn-aws/">here</a>.</p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fupscri.be%2Fdde502%3Fas_embed%3Dtrue&amp;dntp=1&amp;url=https%3A%2F%2Fupscri.be%2Fhackernoon%2F&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=upscri" width="800" height="400" frameborder="0" scrolling="no"><a href="https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href">https://medium.com/media/3c851dac986ab6dbb2d1aaa91205a8eb/href</a></iframe><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4a603fb56310" width="1" height="1" alt=""><hr><p><a href="https://medium.com/hackernoon/3-valuable-secrets-from-a-night-out-at-the-chefs-counter-4a603fb56310">3 Valuable Secrets From A Night Out At The Chefs Counter</a> was originally published in <a href="https://medium.com/hackernoon">HackerNoon.com</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[October 2017: Monthly Goals]]></title>
            <link>https://medium.com/@kyle.galbraith/october-2017-monthly-goals-e8dda1fcc33?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8dda1fcc33</guid>
            <category><![CDATA[goals]]></category>
            <category><![CDATA[life]]></category>
            <category><![CDATA[life-lessons]]></category>
            <category><![CDATA[entrepreneurship]]></category>
            <category><![CDATA[self-improvement]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Sun, 01 Oct 2017 19:35:17 GMT</pubDate>
            <atom:updated>2017-10-01T19:35:17.306Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KD1QN5ziBZv1Z_X60obKZw.jpeg" /></figure><p>Summer has come to a close and Fall has begun. It is a new month on the adventure that is life. And it is time reflect on the past and plan for the future. It is important to take a pause for an hour and reflect on the past month. These bite size chunks provide the opportunity to course correct, give yourself a pat on the back, and steer towards the future.</p><h4>September Reflection</h4><p>September flew by. Time has been occupied by my day job and getting traction for the short book I am writing about <a href="https://www.kylegalbraith.com/learn-aws/">learning Amazon Web Services</a>. Goals I accomplished from my <a href="https://medium.com/@kyle.galbraith/september-2017-monthly-goals-1d12783eb06b">September plan</a> are:</p><ul><li>I wrote the first chapter of my learning AWS by using it book. But, I have not shared it. The goal is to share the preview chapter this week.</li><li>I focused daily on helping people and believe I met the goal of 3 per day. This is going to continue as I find this very rewarding.</li><li>Last week I passed my second AWS certification. I am now a AWS Certified Professional Solutions Architect and a AWS Certified Associate Developer.</li></ul><h4>Goal for the Month</h4><p>October is a new month which means it is time to set some new goals. This month also happens to be <a href="https://hacktoberfest.digitalocean.com/">#Hacktoberfest</a> where Developers contribute to Open Source projects. Seeing as I have been wanting to give more back to the community this seems like a logical place to start. My goals for October are:</p><ul><li><strong>Contribute to three different Open Source projects.</strong> It’s Hacktoberfest so what better time to contribute to some of my favorite projects.</li><li><strong>Learn more about different stacks on AWS. </strong>There is a lot of different programming stacks out there. To be effective at helping others I need to know more about these stacks and how to leverage AWS with them.</li><li><strong>Create a screen cast on an AWS topic. </strong>Not everyone wants to learn by reading articles. I want to try my hand at creating a screen cast that walks through learning something about Amazon Web Services.</li></ul><h4>Other Goals for October</h4><p>Other personal goals I have for this month….</p><ul><li><strong>Plan one weekend getaway.</strong> It is always good to get away for a night or two during the month and give yourself a little break.</li><li><strong>Attend a French meetup.</strong> Time to step out of the bubble of French at home and try my hand at conversing with others.</li><li><strong>Take a cooking class.</strong> My wife and I always fine these very fun and relaxing, worth the money.</li></ul><p>These are my goals for October. During the month I look at this post once a week to see how I am progressing towards my goals. I find this exercise valuable as it allows me to plan for how I am going to balance my business aspirations with general life.</p><p>If you are someone that is looking to do the same then I encourage you to try this method. Share in the comments other ideas you have about keeping that balance, I would love to hear them!</p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8dda1fcc33" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Time I Got Drunk On S3 And What I Learned]]></title>
            <link>https://codeburst.io/the-time-i-got-drunk-on-s3-and-what-i-learned-ab45f0d8881d?source=rss-9c730136e183------2</link>
            <guid isPermaLink="false">https://medium.com/p/ab45f0d8881d</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[education]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[technology]]></category>
            <dc:creator><![CDATA[Kyle Galbraith]]></dc:creator>
            <pubDate>Wed, 13 Sep 2017 01:15:38 GMT</pubDate>
            <atom:updated>2018-04-08T21:29:47.994Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*MwsgXKMtmajrjlxyYaQNZw.png" /></figure><p>One of the most popular services provided by Amazon Web Services is Simple Storage Service (S3). The service has 11 nines of durability. Two nines of availability. Event notifications for pushing message to SNS and Lambda. Plus many more features to meet a wide range of use cases.</p><p>But this post is not about how to use S3. Rather it is about how <em>not</em> to use it.</p><p>Instead I want to share some lessons I learned while I was drunk on the idea of using S3 for everything. Not to long ago I envisioned using the service for everything from static websites to running my own NoSQL database. It is safe to say that some use cases are great for the service. Others are downright a waste of your time.</p><p>There are limitations and concepts to S3 that even AWS Certified Professional Solutions Architects like myself don’t know until you hit them. Often times you won’t run into these cases unless you are pushing S3 pretty hard. That said these mistakes were quite painful to learn. Often times costing me days or weeks to redesign the system to account for these.</p><p>So save yourself some time and learn from the mistakes I have made.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KVjdG2-sJPhjWLRbTLehDQ.png" /></figure><h3>Mistake 1: Non-Random Key Prefixes == Hot Spots</h3><p>One way to think of the service is to think of it as a cluster underneath the hood. A cluster implies that there is one to N instances in it. Data is distributed across the nodes in the cluster via a partition key.</p><p>A good partition, a random key prefix, will distribute the keys in a bucket across different nodes. Yielding a more balanced cluster and no node in the cluster is ever overwhelmed.</p><p>A bad partition will <strong>not</strong> distribute the keys across different nodes. Leading to an unbalanced cluster. It is likely that one or more nodes will fail because they have to handle all the load. For a small amount of keys and a small amount of requests you will likely never see this. For example, creating random key prefixes for your static website bucket is pointless. You are likely not going to be doing enough there to notice a performance impact.</p><p>What about a large number of EC2 instances doing a list operation on one key prefix? Guess what happens to the node in S3 that has all that data? It dies and you end up on the phone with an AWS support engineer at 3 AM to try and have them redo the partition.</p><p>The lesson here is that a random key prefix balances the load across S3. In distributed systems where lots of S3 requests can happen this is critical. Too many requests to one node in the cluster and S3 must protect itself and return errors back to you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*qKs9wYJxkG3kMum_tHWZcg.png" /></figure><h3>Mistake 2: List, List, List Everything In A Bucket</h3><p>aws s3 ls s3://mistakes-made/</p><p>Have you ever listed all the objects under an S3 path and thought about how that works? Probably not.</p><p>Let’s think about it for a second.</p><p>We already talked about why a bad partition key can get you in trouble. Listing operations with a good partition key is bad as well. This isn’t hard to wrap your head around if you think about the cluster concept again.</p><p>A balanced cluster will have keys in the listing operation distributed across the nodes. A listing operation for 1,000 keys will need to get N keys from node one, N from node 2, etc. This is time consuming. Data has to be collected across the cluster.</p><p>This is why this line is in the <a href="http://docs.aws.amazon.com/AmazonS3/latest/API/v2-RESTBucketGET.html">AWS S3 listing docs</a>:</p><blockquote>Sets the maximum number of keys returned in the response body. If you want to retrieve fewer than the default 1,000 keys, you can add this to your request.</blockquote><p>You cannot ask for more than 1,000 keys in a single list operation.</p><p>At times you write keys to a key prefix and want to aggregate across those keys. When you want to do an aggregation, you list all files under the prefix. For a small number of keys you will be fine. If you are in the 10’s of thousands, you are in trouble. This operation will be time consuming. S3 could throttle you as well to protect itself once again.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shm6jN8sGgeFAu81rN9FeQ.png" /></figure><h3>Mistake 3: Getting Bucket Tags Is Not The Same API</h3><p>aws s3api get-bucket-tagging — bucket s3://your-data-bucket</p><p>This one is subtle but will bite you if you are not careful. Notice that this CLI call is not aws s3 but rather aws s3api. No big deal right? Yes….for most things.</p><p>If you are doing things at scale and making many requests a second to get a tag on a bucket, you will be throttled. Imagine you relied on a tag on the bucket to know where to route data that landed in the bucket. In a concurrent system there is going to be many requests a second to get the same tag.</p><p>A GET request for a key from the bucket is very fast and can handle hundreds of requests per second. A GET request for the tag on a bucket <strong>cannot</strong> handle that same load. Luckily the solution is simple. Instead of storing that information as a tag on the bucket store it as a file in the bucket.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*PpI0Su3QLtoEaqO4UV30rg.png" /></figure><h3>Mistake 4: It Doesn’t Work For Every Use Case</h3><p>When I was drunk on S3 I considered moving my entire database into a bucket. It wasn’t even a NoSQL database, so this was going to require reworking my entire data model. But I thought how slick would it be to have my entire database in S3. Wrong. Wrong. Wrong.</p><p>Not that it isn’t possible. I actually believe it is possible. But worth it? No.</p><p>One, moving a relational database to be non relational is no small feat. Two, there are a lot of things you would have to re-implement that other NoSQL technologies have. Three, for what you might gain in database savings you will likely lose in your own health and sanity.</p><p>S3 is extendable to meet all kinds of use cases. You can use it to hold data backups, host websites, act as a command channel, or even be a data lake for future ETL work. For all the great things it can do, there are other technologies that can do it better. Knowing when to leverage the power of S3 and when to pick a better tool is critical to leveraging any service in AWS.</p><h3>Conclusion</h3><p>These are lessons that I have learned while using Simple Storage Service (S3) for a variety of use cases. I do not consider any of these lessons as <em>problems</em> with S3. Rather they are misunderstandings or mistakes in my thinking. I am proud of learning these lessons. The only reason I learned them was by leveraging S3 to solve problems I was facing. This is the best way to learn any service in Amazon Web Services.</p><p>I do not claim that this is an exhaustive list. Please share any lessons you have learned, so we can all learn something from them. I hope that this post helps you in the future when you are considering leveraging S3 for your use case.</p><h3>Learn AWS By Actually Using It</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*VqpqxIxmMWTvRzKraxQOKg.png" /></figure><p>If you enjoyed this post and are hungry to start learning more about Amazon Web Services, I have created a new course on how to host, secure, and deliver static websites on AWS! It is a book and video course that cuts through the sea of information to <strong>accelerate your learning </strong>of AWS. Giving you a framework that enables you to learn complex things by actually using them.</p><p><a href="https://www.kylegalbraith.com/learn-aws/">Head on over to the landing page to get a copy for yourself!</a></p><h4>If you enjoyed this, don’t forget to offer claps to show your support!</h4><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=ab45f0d8881d" width="1" height="1" alt=""><hr><p><a href="https://codeburst.io/the-time-i-got-drunk-on-s3-and-what-i-learned-ab45f0d8881d">The Time I Got Drunk On S3 And What I Learned</a> was originally published in <a href="https://codeburst.io/">codeburst</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>