<?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 Andreas Kihlberg on Medium]]></title>
        <description><![CDATA[Stories by Andreas Kihlberg on Medium]]></description>
        <link>https://medium.com/@khlbrg?source=rss-eb41fd177c28------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-VOmzN-DIVzGUeNnUZbQVQ.jpeg</url>
            <title>Stories by Andreas Kihlberg on Medium</title>
            <link>https://medium.com/@khlbrg?source=rss-eb41fd177c28------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 30 Nov 2026 10:40:58 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@khlbrg/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[Writing a Compression Tool Using Huffman]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/the-everyday-developer/writing-a-compression-tool-using-huffman-3a27f8d521df?source=rss-eb41fd177c28------2"><img src="https://cdn-images-1.medium.com/max/840/1*k3oHNkuILGZobdlUvK4ILw.png" width="840"></a></p><p class="medium-feed-snippet">I have been intrigued by John Cricket&#x2019;s coding challenges for a while, and I finally took the time to complete one of them.</p><p class="medium-feed-link"><a href="https://medium.com/the-everyday-developer/writing-a-compression-tool-using-huffman-3a27f8d521df?source=rss-eb41fd177c28------2">Continue reading on The everyday developer »</a></p></div>]]></description>
            <link>https://medium.com/the-everyday-developer/writing-a-compression-tool-using-huffman-3a27f8d521df?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/3a27f8d521df</guid>
            <category><![CDATA[golang]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[huffman-coding]]></category>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Sun, 05 Nov 2023 12:07:04 GMT</pubDate>
            <atom:updated>2024-11-15T11:12:26.517Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[AWS Step Functions: Orchestrating Serverless Workflows Like a Pro]]></title>
            <link>https://medium.com/aws-specialists/aws-step-functions-orchestrating-serverless-workflows-like-a-pro-fb7ef8cc3aaa?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/fb7ef8cc3aaa</guid>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[aws-step-functions]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Tue, 11 Jul 2023 08:31:35 GMT</pubDate>
            <atom:updated>2023-07-11T08:31:35.756Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Orchestrating Serverless Workflows like a pro with AWS Step Functions" src="https://cdn-images-1.medium.com/max/1024/1*A0Z8mtYAdRBzszuKvVtFBQ.png" /></figure><p>As businesses grow and scale, it becomes increasingly important to manage the orchestration of cloud-based workflows effectively. Such orchestration is critical to streamline your microservices, optimize resource usage, and minimize costs. This is where AWS Step Functions come in.</p><h3>What are AWS Step Functions?</h3><p><a href="https://aws.amazon.com/step-functions/">AWS Step Functions</a> is a fully-managed service from Amazon Web Services (AWS) that enables developers to create visual workflows for applications at scale. This service lets you coordinate multiple AWS services into serverless workflows, facilitating quick building and updating of applications.</p><p>An essential feature of Step Functions is its automatic triggering and tracking of each step in your workflow. It can retire tasks when errors occur, skillfully handling the underlying logic to ensure your application executes in the correct order and behaves as expected.</p><h3>How to Orchestrate Serverless Workflows</h3><h4>Step 0: Choosing Between Standard or Express Workflows</h4><p>Before defining your workflow, it’s crucial to understand the different types of workflows AWS Step Functions offers —<a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-standard-vs-express.html"> Standard and Express</a>. Both workflows share many features but also diverge in significant ways, making it essential to discern which to choose based on your specific needs or blend both.</p><p>One key difference lies in their pricing models. <strong>Standard workflows are charged based on the number of state transitions</strong>. Therefore, the cost can escalate with an increasing number of state changes. Conversely, <strong>Express workflows are charged by total execution time</strong>, meaning you can have numerous state changes, but you only pay for the total execution time. However, remember that this pricing is solely for the step function, and additional costs, such as Lambda, might apply.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3E9-K9H3HmCCBK_ozebHqw.png" /><figcaption>When creating a workflow, you can select an express or standard workflow</figcaption></figure><p>Apart from the cost factor, the most notable difference between the two workflows is their execution duration and runtime. <strong>A Standard workflow can run for up to a year</strong>, providing extensive flexibility for long-running tasks. On the other hand, <strong>an Express workflow has a maximum duration of five minutes</strong>, making it suitable for shorter tasks.</p><p>Standard workflows also support a unique feature called ‘Step Functions activities,’ enabling you to run specific functions as an activity outside the state machine. For instance, you could execute a worker on an EC2 instance. This is not available in Express workflows.</p><p>In summary, understanding the operational and cost-related differences between Standard and Express workflows can assist you in effectively orchestrating your serverless workflows and tailoring the solution to fit your particular use case.</p><h4>Step 1: Define Your Workflow and Utilize the Workflow Studio</h4><p>First and foremost, defining your state machine, a JSON-based, textual representation of your workflow, is critical. Each step in your workflow is defined as a state within this structure. AWS Step Functions defines your state machine using Amazon States Language, a structured JSON-based language.</p><p>Consider the following example of a state machine:</p><pre>{<br> &quot;StartAt&quot;: &quot;FirstState&quot;,<br> &quot;States&quot;: {<br>  &quot;FirstState&quot;: {<br>   &quot;Type&quot;: &quot;Task&quot;,<br>   &quot;Resource&quot;: &quot;arn:aws:lambda:us-west-2:123456789012:function:HelloWorld&quot;,<br>   &quot;End&quot;: true<br>  }<br> }<br>}</pre><p>In this JSON structure, the ‘StartAt’ field dictates the initial state, and the ‘States’ object encompasses all the individual states of your workflow. Note that the ‘Resource’ is not strictly limited to a Lambda function of your own but can also be an existing action (see step 2).</p><p>In the process of defining your workflow, it’s crucial to make your states independent, facilitating reuse in different workflows and reducing redundancy. Lambda Layers can aid in sharing common code across workflows, further promoting reusability.</p><p>A key aspect of workflow definition is incorporating error handling. AWS Step Functions provides built-in capabilities for this, allowing you to specify error handling strategies for each state in your state machine using Catch and Retry fields. This feature can save time and effort as it removes the need to handle errors within each function manually. For instance, if a Lambda function calls an external API timeout, you can let the state machine handle the retries instead of implementing a retry mechanism in your code.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GuXgSZh7SWy-Ojy5smiMLg.gif" /><figcaption>With workflow studio, you can easily design and implement your workflow</figcaption></figure><p>While the manual specification of your state machine aligns with Infrastructure as Code (IaC) best practices, AWS offers an alternative, more intuitive method for designing your workflow —<a href="https://docs.aws.amazon.com/step-functions/latest/dg/workflow-studio.html"> the Workflow Studio</a>. With its drag-and-drop interface, the Workflow Studio simplifies the process of arranging components, states, and flow structures. Once your design is complete, the studio generates a JSON representation that can be seamlessly integrated into your code using tools like CloudFormation or Terraform.</p><h4>Step 2: Create AWS Lambda Functions and Leverage Predefined Actions</h4><p>AWS Lambda allows you to run your code without provisioning or managing servers. As a result, it becomes a fundamental building block when defining your workflow, where you create Lambda functions for each task in your state machine.</p><p>In the ‘FirstState,’ the ‘Resource’ attribute points to a specific Lambda function. When AWS Step Functions executes this state, it triggers the indicated Lambda function. This ‘Resource’ could also refer to an existing predefined action, adding a significant layer of flexibility.</p><p>But what if you could avoid writing code for standard operations altogether? That’s where predefined actions come into play. AWS Step Functions has an extensive library of ready-to-use functions called actions, allowing you to avoid coding or running Lambda functions for common tasks.</p><p>Take a look at the following state machine example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/712/1*pgCIhA0FyzDMJ1vBTfJvgg.png" /><figcaption>A State machine using predefined actions</figcaption></figure><pre>{<br>  &quot;StartAt&quot;: &quot;FetchUser&quot;,<br>  &quot;States&quot;: {<br>    &quot;FetchUser&quot;: {<br>      &quot;Type&quot;: &quot;Task&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:states:::dynamodb:getItem&quot;,<br>      &quot;Next&quot;: &quot;PublishToSNS&quot;<br>    },<br>    &quot;PublishToSNS&quot;: {<br>      &quot;Type&quot;: &quot;Task&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:states:::sns:publish&quot;,<br>      &quot;End&quot;: true<br>    }<br>  }<br>}</pre><p>In this example, we are using two predefined actions —<em> ‘dynamodb:getItem’</em> and<em> ‘sns:publish’.</em> The state machine fetches a user from a DynamoDB table (FetchUser) and subsequently publishes a message to an SNS Topic (PublishToSNS). This could, for example, trigger a welcome email to a new user.</p><p><strong>By leveraging these predefined actions, you can orchestrate complex workflows without writing any code</strong>. Along with intrinsic functions provided by AWS Step Functions, this opens up endless possibilities for efficient and robust serverless workflow management.</p><h3>Step 3: Deploy Your Workflow</h3><p>You can use the AWS Management Console, AWS CLI, or an AWS SDK to deploy your workflow. Once you’ve deployed your state machine, Step Functions will generate an ARN (Amazon Resource Name) for your state machine.</p><h3>Step 4: Execute and Monitor Your Workflow</h3><p>Once your workflow is defined, the next step involves its execution, which can be done manually or automatically. If you opt for automatic triggering, various AWS services, like CloudWatch Events or API Gateway, can be utilized. This adds flexibility and lets your workflow respond dynamically to different system or application states.</p><p>After execution, monitoring your workflows for efficient and proactive management is crucial. AWS provides an effective tool for this in the form of <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/monitoring/working_with_metrics.html">CloudWatch Metrics</a>. This service offers key insights into your workflow by providing metrics such as the number of executed state machines, the error rate of Lambda functions, and total execution time. By leveraging these metrics, you can understand the performance and health of your workflows, making necessary adjustments and improvements along the way. Thus, monitoring is as critical as execution, ensuring your workflows run smoothly and as expected.</p><h3>Bonus Content</h3><h4>Take advantage of built-in flow mechanisms to Extend existing Workflows</h4><p>The whole idea of Step Functions is to let AWS handle transitions and different steps in a workflow. Therefore, step functions have support for multiple different flow mechanisms, including “Choice,” “Parallel,” and “Map.”</p><p>By leveraging these mechanisms, you can reduce the complexity of your function. It will also be easier to extend the workflow with new functionality.</p><p>We can look at an example using the Choice state:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*5sBdIiFS61N3iSIKMmhtkw.png" /></figure><p>In the example above, a state machine processes files of different formats. Of course, we could build a single function with if-statements to handle all different types of files, but as we support more formats, that code will soon be rather clunky and perhaps not very reusable.</p><p>If we instead, as the example shows, use a “Choice State,” we can construct cleaner functions that are only responsible for a single file type (Single responsibility principle SRP).</p><p>You can still share common code by using Lambda Layers.</p><h4>Extend the workflow</h4><p>Let’s say that your application also gets new requirements to support PDF files. By using step functions, you do not have to introduce code changes to existing functions and risk introducing new bugs. Instead, you only need to create a new function and add it to the workflow.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*DteXvA9u1PYYK9n1tC9kxQ.png" /></figure><h4>Use Intrinsic functions for basic operations</h4><p>The intrinsic function is a relatively new feature in step functions that allows you to use built-in functions to manipulate data, such as splitting arrays or doing basic math operations.<br>In the following example, we use three intrinsic functions, UUID generation, ArrayLength, and Format.</p><pre>{<br> &quot;Summary&quot;: {<br>  &quot;Type&quot;: &quot;Pass&quot;,<br>  &quot;Parameters&quot;: {<br>   &quot;Original.$&quot;: &quot;$&quot;,<br>   &quot;UUID.$&quot;: &quot;States.UUID()&quot;,<br>   &quot;Number.$&quot;: &quot;States.ArrayLength($.numbers)&quot;,<br>   &quot;message.$&quot;: &quot;States.Format(&#39;Hello, the array contains {} items&#39;, States.ArrayLength($.numbers))&quot;<br>  },<br>  &quot;End&quot;: true<br> }<br>}</pre><p>The result after the intrinsic functions are as follows.</p><pre>{<br> &quot;UUID&quot;: &quot;96da438d-c32d-4333-a78b-3ecc17bee6d4&quot;,<br> &quot;Number&quot;: &quot;2&quot;,<br> &quot;message&quot;: &quot;Hello, the array contains 2 items&quot;<br>}</pre><h3>In conclusion</h3><p>In summary, AWS Step Functions provides a powerful, flexible way to orchestrate Serverless workflows. By following the steps and best practices outlined above, you can streamline your microservices and develop scalable applications like a pro.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=fb7ef8cc3aaa" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aws-specialists/aws-step-functions-orchestrating-serverless-workflows-like-a-pro-fb7ef8cc3aaa">AWS Step Functions: Orchestrating Serverless Workflows Like a Pro</a> was originally published in <a href="https://medium.com/aws-specialists">AWS Specialists</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Advanced Optimization Techniques for AWS Lambda]]></title>
            <link>https://medium.com/aws-specialists/taking-the-next-leap-with-aws-lambda-advanced-optimization-techniques-cae56a6c1652?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/cae56a6c1652</guid>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Fri, 26 May 2023 11:11:48 GMT</pubDate>
            <atom:updated>2023-05-26T12:11:48.826Z</atom:updated>
            <content:encoded><![CDATA[<h3>Taking the Next Leap with AWS Lambda: Advanced Optimization Techniques</h3><figure><img alt="Taking the next leap: Advanced Optimization Techniques for AWS Lambda." src="https://cdn-images-1.medium.com/max/1024/1*1-NtTPiJUrFGoHUu4VQHMw@2x.png" /></figure><p>As cloud practitioners deeply immersed in AWS Lambda, we’ve all experienced the flexibility and scalability it provides. AWS Lambda’s event-driven, serverless computing platform, which runs your code in response to events and automatically manages underlying resources, has transformed how we build and operate our systems. However, as we continue to navigate through the endless potential of this service, it becomes imperative to understand the advanced optimization techniques that will help us take the next big leap.</p><p>Today, I’m excited to delve into the advanced AWS Lambda optimization techniques to extract maximum performance and efficiency from your Lambda functions.</p><h3>Optimizing Function Memory and Timeout Settings</h3><p>The default settings for memory (128 MB) and timeout (3 seconds) may not always serve your function requirements best. Optimal memory settings can reduce the execution time of your functions, saving costs in the long run.</p><p>For instance, a compute-intensive function might benefit from higher memory allocation, leading to lower execution times. A trade-off exists between memory size and cost, and identifying the right balance is key.</p><figure><img alt="Screenshot over memory settings for a Lambda function" src="https://cdn-images-1.medium.com/max/1024/1*C0vQSSjmNe5wcIhgwTRtOQ.png" /><figcaption>Showing different settings for a Lambda function in AWS Console</figcaption></figure><p>The default memory allocation for a Lambda function is 128 MB which is fine for many situations, but in this image, we are running a headless chrome that will load different types of websites for testing and image generation. This requires more memory and we decided to go with 1024 MB. The timeout settings chosen accommodate pages that might load slowly.</p><p><em>Note that there is no possibility to change the CPU alone. It is related to the memory, and more memory gives more CPU.</em></p><p>The timeout setting is equally important, as functions that run longer than necessary can accrue unnecessary costs. A systematic approach toward understanding your function’s behavior and adjusting these settings can lead to significant cost and performance optimizations.</p><p>To help you optimize your memory and CPU settings, you can use a tool like <a href="https://github.com/alexcasalboni/aws-lambda-power-tuning"><strong>AWS Lambda Power Tuning</strong></a> to try out different settings.</p><h3>Understanding and Minimizing Cold Starts</h3><p>Cold starts occur when AWS has to set up a new execution context for your function, resulting in a longer startup time. They happen when your function hasn’t been invoked for some time or following a new deployment.</p><p>While this overhead is minimal for most applications, it can become significant for latency-sensitive applications. However, you can mitigate this by:</p><ul><li>Keeping your functions warm by setting up a <a href="https://docs.aws.amazon.com/AmazonCloudWatch/latest/events/WhatIsCloudWatchEvents.html">CloudWatch Event</a> or using <a href="https://aws.amazon.com/eventbridge/">EventBridge</a> that triggers your function every few minutes.</li><li>If you are using Java as a programming language in your Lambda function, you can enable <a href="https://aws.amazon.com/blogs/aws/new-accelerate-your-lambda-functions-with-lambda-snapstart/">Lambda SnapStart</a> to improve the startup performance of your function.</li><li>Minimizing your deployment package size: Smaller deployment packages boot faster because they require less time to download and unpack.</li><li>Using provisioned concurrency: This feature lets you keep a specified number of execution environments initialized and ready to respond to your function. <em>This will affect the cost.</em></li></ul><h3>Concurrent Executions</h3><p>Each AWS account has a limit on the number of concurrent executions across all functions within a region. The default limit is 1000. Hence, if you have functions that experience high spikes in traffic, it’s critical to ensure you’re not hitting this limit to prevent throttling. If required, you can request an increase in this limit.</p><p>It’s possible to reserve concurrent executions for a single function, which might be a good choice if you have critical functions that need to run without being throttled.</p><h3>Use DLQ or Lambda destinations on asynchronous invocations</h3><p>There are two ways to invoke a lambda function, synchronous or asynchronous. When invoking a function synchronously, it will return a response immediately. An example where synchronous invocation is used is API Gateway, where the client waits until the function is done.</p><p>When invoking asynchronously, the client still gets an immediate response that the function received the event, but it will keep working in the background. So what happens if there is an error in the function? The client is long gone, and you can’t notify it. That’s where Dead letter queues (DLQ) or Lambda destinations come in handy.</p><p>If your function fails for some reason during an asynchronous invocation, the error is passed on to a queue or a Lambda destination so you have a chance to process the error and take action.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cVDgvidL85iZ0TF1rdSMtQ.png" /><figcaption>A Lambda function in the AWS Console with an S3 trigger and EventBridge as the destination.</figcaption></figure><p>The image shows a Lambda function in the AWS Console, where s3 triggers the function, and EventBridge is the destination if the function fails. Via EventBridge, you can then handle the error, for instance, send an email or take any other action.</p><p>The destination can be set up in the console or <strong>preferably with Infrastructure as Code (IaC).</strong></p><p>By using destinations or DLQ, you don’t have to handle any errors in the function itself, and if you have multiple functions, you don’t have to handle the error in every function. It results in a function with less code, and you can easily manage all errors in the same place.</p><p>It’s preferred to use Lambda Destinations over DLQ. It will give you more information about what went wrong and support more AWS Services, such as SNS, SQS, Lambda, and EventBridge.</p><h3>Fine-tuning with X-Ray</h3><p>AWS X-Ray is an invaluable tool for diagnosing issues in your Lambda functions. It helps you understand how your application and its underlying services perform and where bottlenecks occur. In addition, you can use it to trace requests from start to end and get a map of services in your application.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bMcOiD20Lmp1td_Vq1DEsg.png" /><figcaption><em>A map over a serverless application containing API Gateway, Lambda, and DynamoDB.</em></figcaption></figure><p>First, you get a nice visual overview of the application on how the services connect. Second, you get access to a timeline where you can pinpoint how much time every step takes. It makes it easy to detect and locate bottlenecks in a serverless application.</p><p>X-Ray also allows you to add your custom metadata and subsegments to get even more details.</p><h3>Utilizing Layers and Extensions</h3><p>Layers let you manage your Lambda function code better by separating your function code from your resources. You can share code, libraries, and other components with layers across multiple functions.</p><p>AWS Lambda Extensions can be used to integrate Lambda functions with your preferred tooling for monitoring, observability, security, and governance. In addition, they can run additional code during the lifecycle of a Lambda function invocation to help you accomplish these tasks.<br>In the image below, we have used a layer, the Cloudwatch Insight extension. This extension gives you more insights into the performance of your lambda function.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*TAzOigHG_SPYvO8qkaRcmQ.png" /><figcaption>The extension for Cloudwatch Lambda Insight is activated. This allows for a more detailed view of the functions&#39; performance.</figcaption></figure><p>This feature gathers, consolidates, and presents system-level metrics, encompassing CPU time, memory usage, disk activity, and network performance. Additionally, it captures, consolidates, and provides a concise overview of diagnostic details like cold starts and Lambda worker shutdowns. These capabilities are designed to assist in identifying and isolating any issues with your Lambda functions, enabling you to address them promptly and effectively.</p><p><strong>In conclusion</strong>, AWS Lambda is not a “set it and forget it” service. Instead, it requires constant monitoring, tweaking, and tuning to perform at its best. By employing these advanced optimization techniques, you’ll be able to harness the full power of AWS Lambda.</p><p>So, gear up to take the next leap with AWS Lambda. The sky is truly the limit!</p><p>Until next time, happy optimizing!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cae56a6c1652" width="1" height="1" alt=""><hr><p><a href="https://medium.com/aws-specialists/taking-the-next-leap-with-aws-lambda-advanced-optimization-techniques-cae56a6c1652">Advanced Optimization Techniques for AWS Lambda</a> was originally published in <a href="https://medium.com/aws-specialists">AWS Specialists</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Send emails with Go and AWS Lambda]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/the-everyday-developer/sending-emails-with-go-and-aws-lambda-35c4626446ed?source=rss-eb41fd177c28------2"><img src="https://cdn-images-1.medium.com/max/2258/1*canLvVNRtH4wlONbuFb7xA.png" width="2258"></a></p><p class="medium-feed-snippet">Not so long ago Amazon announced support for running Go as a Lambda function. I&#x2019;ve written a couple of small apps in Go and I have only&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/the-everyday-developer/sending-emails-with-go-and-aws-lambda-35c4626446ed?source=rss-eb41fd177c28------2">Continue reading on The everyday developer »</a></p></div>]]></description>
            <link>https://medium.com/the-everyday-developer/sending-emails-with-go-and-aws-lambda-35c4626446ed?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/35c4626446ed</guid>
            <category><![CDATA[lambda]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[go]]></category>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Mon, 19 Feb 2018 20:42:38 GMT</pubDate>
            <atom:updated>2018-03-02T08:38:12.787Z</atom:updated>
            <cc:license>http://creativecommons.org/licenses/by/4.0/</cc:license>
        </item>
        <item>
            <title><![CDATA[Detect file mime type using magic numbers and JavaScript]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/the-everyday-developer/detect-file-mime-type-using-magic-numbers-and-javascript-16bc513d4e1e?source=rss-eb41fd177c28------2"><img src="https://cdn-images-1.medium.com/max/978/1*14oL4nEoBxj7eDXnYIS6rQ.png" width="978"></a></p><p class="medium-feed-snippet">The browser File API in the quite powerful, the requirement of modern website is not just text and images but also video, sound and other&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/the-everyday-developer/detect-file-mime-type-using-magic-numbers-and-javascript-16bc513d4e1e?source=rss-eb41fd177c28------2">Continue reading on The everyday developer »</a></p></div>]]></description>
            <link>https://medium.com/the-everyday-developer/detect-file-mime-type-using-magic-numbers-and-javascript-16bc513d4e1e?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/16bc513d4e1e</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[javascript]]></category>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Sun, 11 Jun 2017 10:39:00 GMT</pubDate>
            <atom:updated>2017-06-11T10:39:00.915Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Creating an IoC Container with dependency injection in JavaScript]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/the-everyday-developer/creating-an-ioc-container-with-dependency-injection-in-javascript-9db228d34060?source=rss-eb41fd177c28------2"><img src="https://cdn-images-1.medium.com/max/2600/1*q9q7V1eQggYGyV_dxm30VQ.jpeg" width="5381"></a></p><p class="medium-feed-snippet">When building application in, for example Node.js it&#x2018;s rather convenient to have some kind of container where resources or routes can&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/the-everyday-developer/creating-an-ioc-container-with-dependency-injection-in-javascript-9db228d34060?source=rss-eb41fd177c28------2">Continue reading on The everyday developer »</a></p></div>]]></description>
            <link>https://medium.com/the-everyday-developer/creating-an-ioc-container-with-dependency-injection-in-javascript-9db228d34060?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/9db228d34060</guid>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[dependency-injection]]></category>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Tue, 30 May 2017 18:35:25 GMT</pubDate>
            <atom:updated>2017-05-30T18:35:25.811Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[How I update dynamic content on Github pages with AWS Lambda]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/the-everyday-developer/how-i-update-dynamic-content-on-github-pages-with-aws-lambda-ddb70e9739c7?source=rss-eb41fd177c28------2"><img src="https://cdn-images-1.medium.com/max/1838/1*GrPsoQVdXgHbfK9OeZgGEA.png" width="1838"></a></p><p class="medium-feed-snippet">I&#x2019;m running a site called nexttexteditor.com, it&#x2019;s hosted on Github pages, and generated with Jekyll (Github has support for generating&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/the-everyday-developer/how-i-update-dynamic-content-on-github-pages-with-aws-lambda-ddb70e9739c7?source=rss-eb41fd177c28------2">Continue reading on The everyday developer »</a></p></div>]]></description>
            <link>https://medium.com/the-everyday-developer/how-i-update-dynamic-content-on-github-pages-with-aws-lambda-ddb70e9739c7?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/ddb70e9739c7</guid>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[lambda-function]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[lambda-architecture]]></category>
            <category><![CDATA[github-pages]]></category>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Fri, 12 May 2017 20:28:48 GMT</pubDate>
            <atom:updated>2017-05-12T20:28:48.436Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[My first thougts on 100$ startup]]></title>
            <link>https://medium.com/@khlbrg/my-first-thougts-on-100-startup-5ffb9d9a37bc?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/5ffb9d9a37bc</guid>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Tue, 26 Nov 2013 19:20:45 GMT</pubDate>
            <atom:updated>2013-11-26T19:20:45.484Z</atom:updated>
            <content:encoded><![CDATA[<h4>So far I’ve read half the 100$ startup by Chris Guillebeau and I like it.</h4><p>Most of us are always on a hunt, a hunt for a better and more comfortable life, a life where you set your own rules. A life with own rules is the reality for most of the people in this book. The entrepreneurs in this book have often started their businesses by coincidence, and most of them have succeeded. They are living a life that would make a lot of 9-5 people green by envy, but in my oppinion everyone of them has earned it, neither of them have had it easy or got enything for free. They made their mind that they should succeed and they did!</p><p>To be honest I haven’t read half the book, but i have read about 100 pages and I’m already very inspired. I’m looking forward to read the rest of the book and take part in all the amazing people and stories in that book.</p><p>I recently read about a developer who came up with the idea of writing a guide or a tutorial of the famous Evernote app. He spent a few months reading up on Evernote, searching for the goodies and he wanted it to be perfect, to really give value to the customers who bought it. He sold it for 25$ each and he earn over 10.000$ in the first days.</p><p>That’s one of the inspiring stories you can read about it in this book. If you are running your own company or planning to start one, this book is a must! It gives you a lot of ideas and I’m sure it will give you some inspiration.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5ffb9d9a37bc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Min första post på Medium]]></title>
            <link>https://medium.com/@khlbrg/min-forsta-post-pa-medium-4e89c750db3?source=rss-eb41fd177c28------2</link>
            <guid isPermaLink="false">https://medium.com/p/4e89c750db3</guid>
            <dc:creator><![CDATA[Andreas Kihlberg]]></dc:creator>
            <pubDate>Wed, 16 Oct 2013 17:49:31 GMT</pubDate>
            <atom:updated>2013-10-16T17:49:31.814Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*P2CA0-fEgskdN0J3.png" /></figure><h4>Jag har länge suttit och försökt skriva men hela tiden kommit av mig eller drabbats av skrivkramp.</h4><p>Det hela började med att jag såg en video där Kevin Rose intervjuade Ev Williams om hans olika projekt. (Du hittar videon på <a href="http://foundation.kr/">foundation.kr</a>) Han har en imponerade historia och man blir alltid väldigt inspirerad av sådana människor. I hans portfölj finnas bland annat Twitter.</p><p>Under intervjun började de prata om hans senaste projekt, medium.com och jag blev som vanligt ganska intresserad. Det fösta jag la märke till var editorn, den är helt underbar. Den är inte som en vanligt wysiwyg som TinyMCE utan denna editor tillåter dig att fokusera på texten.</p><p>Men även med denna underbara editor har det inte blivit av att jag skrivit, detta på grund av två anledningar. Den första anledningen är nivån på Medium, den verkar vara så hög och hur kan mina halvtaskiga inlägg passa här? Är det någon som kommer läsa dom? Jag fick lite prestationer ångest helt enkelt.</p><p>Den andra anledningen är att jag vet inte vad jag ska skriva. Jag har påbörjat ett antal inlägg men jag fastnar, det tar liksom stopp och tankar som “varför ska jag skriva detta” och “nu kommer folk tycka jag är knäpp” dyker ganska snabbt upp. Men nu tog jag mig i kragen och struntar i vad folk kommer att tycka, om ens någon kommer att läsa?</p><p>På min blogg <a href="http://www.baronen.org/">baronen.org</a> har jag tidigare skrivit om detta fenomen, att man inte vet vad man ska skriva. Men efter jag sett en intervju med Seth Godin där han berättar att det handlar om övning och träning, väldigt få människor kan bara skriva bra direkt, utan att träna. Det är som med allt annat, man måste våga skriva och bara få ut sig vissa tankar, då kommer det bli lättare och lättare och förhoppningsvis roligare och roligare.</p><p>Jag hoppas att medium.com kanske blir ett ställe där man kan skriva lite vad man känner för och kanske inte fundera så mycket på kvalitén. Det kanske går emot deras riktlinjer men då kanske jag inte platsar här ändå.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4e89c750db3" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>