<?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 Ben Reynolds-Carr on Medium]]></title>
        <description><![CDATA[Stories by Ben Reynolds-Carr on Medium]]></description>
        <link>https://medium.com/@breycarr?source=rss-e86def721776------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*GvfDjT8gZ8cEHpC8</url>
            <title>Stories by Ben Reynolds-Carr on Medium</title>
            <link>https://medium.com/@breycarr?source=rss-e86def721776------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 08:42:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@breycarr/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[A Basic Introduction to AWS Step Functions]]></title>
            <link>https://medium.com/@breycarr/a-basic-introduction-to-aws-step-functions-38096c19dfb2?source=rss-e86def721776------2</link>
            <guid isPermaLink="false">https://medium.com/p/38096c19dfb2</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[faa]]></category>
            <category><![CDATA[aws-step-functions]]></category>
            <category><![CDATA[functions-as-a-service]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Ben Reynolds-Carr]]></dc:creator>
            <pubDate>Thu, 02 Jul 2020 08:30:28 GMT</pubDate>
            <atom:updated>2020-07-02T08:30:28.549Z</atom:updated>
            <content:encoded><![CDATA[<p>Recently I attended an online training course on Step Functions with an AWS developer. The course was held remotely including demonstrations of building workflows within Step Functions.</p><p><strong>What are Step Functions?</strong></p><p>Step Functions is an AWS product (which is why I’m using the singular “is”, rather than the plural “are”). It is designed for building workflows which stitch services together into a stateless machine.</p><p><strong>Hang on, what’s a stateless machine?</strong></p><p>The state of a system is its memory of all the events and user interactions that have happened within it. As state changes over time, this can mean that some of the processes and their outputs will also change.</p><p>Stateless systems do not hold the memory of what has happened, so their output is going to be consistent.</p><p>Usually stateless code is a single function, Step Functions links several functions to perform multiple tasks. Each step in the workflow produces an output, which is then passed onto the next step.</p><p><strong>So it always takes the same input and gives the same output?</strong></p><p>Because it’s a series of functions, rather than a single function, it’s possible to add “choice steps” into the machine. These steps will have one input, but multiple possible outputs, which may then branch off to do different things.</p><p>It can also be designed to only run certain functions after previous functions have succeeded, or have operations run at the same time, in parallel</p><p><strong>That’s just code, isn’t it? Why is Step Functions separated out from the rest of the code base?</strong></p><p>Because the Step Functions workflow is stateless, the same workflow can be applied on multiple microservice projects which use the same processes, reducing the amount of code that needs to be written.</p><p>Having the workflow split out into multiple stages also reduces the run time of the code, as it isn’t having to do lots of complex internal steps. Each step of the workflow has a single responsibility, completes it, then passes its output to the next step. This also means that different steps of the process can be switched out, or the order changed without needing to rewrite large amounts of code.</p><p>Finally, Step Functions only runs when it is needed according to specifically defined triggers, scaling up when it is needed, but reducing costs when it isn’t. This means that monolithic systems can be divided into more manageable chunks</p><p><strong>So how do you write a state machine in Step Functions?</strong></p><p>There is a dedicated language, Amazon State Language (ASL), which is a structured language based on JSON.</p><p>The starting state (a point on the flowchart) of the workflow, all the states can be created. At minimum, each state will have a type, such as “task”, or “choice” where there are multiple outcomes, they will also have a resource, directing the program to the function (such as a Lambda) that should be run at this step. Finally they will point to the next step on the workflow, except at the last step which will tell the machine to stop running.</p><p>There are additional types for states, which may change the behavior of the machine. For example, if there were errors caused by missing information, a “fail” type would also end the process, but direct the user on how to solve the issue.</p><p>The Step Functions tool also provides a visual representation of the workflow, so it is easy to see if there are issues, and allow for easy restructuring.</p><p><strong>Should London Borough of Hackney be using Step Functions?</strong></p><p>We’re quite early in our journey of moving to the AWS cloud. As we create more serverless projects, it is possible we’ll encounter processes that would be useful to extract to Step Functions for easier deployment.</p><p>There are also some services we already provide which are based on similar workflows, and when considering how to further develop (or redevelop) them, further exploration of Step Functions is probably warranted.</p><p>More information about Step Functions, including instructions for creating serverless workflow can be can be found at the <a href="https://aws.amazon.com/step-functions/">AWS Step Functions page</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38096c19dfb2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>