<?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 Rafael Felix Correa on Medium]]></title>
        <description><![CDATA[Stories by Rafael Felix Correa on Medium]]></description>
        <link>https://medium.com/@rafael.correa?source=rss-256802ace167------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*v-YEbqK-av2rpMvD.jpg</url>
            <title>Stories by Rafael Felix Correa on Medium</title>
            <link>https://medium.com/@rafael.correa?source=rss-256802ace167------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Mon, 23 Nov 2026 14:37:09 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rafael.correa/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[Running Spark on Kubernetes: a fully functional example and why it makes sense for OLX]]></title>
            <link>https://tech.olx.com/running-spark-on-kubernetes-a-fully-functional-example-and-why-it-makes-sense-for-olx-d56b6a61fcbe?source=rss-256802ace167------2</link>
            <guid isPermaLink="false">https://medium.com/p/d56b6a61fcbe</guid>
            <category><![CDATA[olx]]></category>
            <category><![CDATA[docker]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[kubernetes]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Rafael Felix Correa]]></dc:creator>
            <pubDate>Mon, 09 Dec 2019 15:47:18 GMT</pubDate>
            <atom:updated>2020-05-19T13:25:23.765Z</atom:updated>
            <content:encoded><![CDATA[<p><a href="https://issues.apache.org/jira/browse/SPARK-18278">Spark supports submitting jobs natively to a k8s scheduler since version 2.3.0</a>, but even with its<a href="https://spark.apache.org/docs/latest/running-on-kubernetes.html"> nice documentation</a> you still have to piece some parts together to get it working properly. In this article, I intend to provide a local working example and explain why it made perfect sense for <a href="https://www.olxgroup.com/">OLX</a> to go this way.</p><h3>Context</h3><p>Handling data is at the heart of what we do to deliver the best possible experience to our customers around the world (to understand how important this is for us, you can <a href="https://tech.olx.com/search?q=data">have a look at every data-related article written in the OLX Tech Blog</a>). And handling data at a global company scale can be quite challenging, which pushes us to seek ways to improve on how we do it on a continuous basis.</p><p><a href="https://spark.apache.org/">Apache Spark</a> plays a fundamental role in that space, being the most pervasive data processing technology inside OLX.</p><h3>Why spark in k8s?</h3><p>Another technology at the core of OLX engineering is <a href="https://kubernetes.io/">kubernetes</a>, the de-facto standard platform for running most of our apps. K8s brings us many benefits, such as alignment (even regarding <a href="https://kubernetes.io/docs/reference/glossary/?fundamental=true">vocabulary</a>, which is often overlooked but very important when dealing with multiple teams and applications), operational excellence, eases standardisation over monitoring, alerting, logging and auto-scaling (as cluster-wide solutions often offload SREs from having to think about every single of these aspects for each new application).</p><p>Given our current expertise in k8s, all we needed was “a little push” to start running spark there as well. And this push came in form of:</p><ul><li>Cost savings, as many teams often deploy their own Spark clusters using <a href="https://aws.amazon.com/emr/">Amazon EMR</a>, which abstracts them from dealing with the complexity of provisioning and bootstrapping at the expense of a <a href="https://aws.amazon.com/emr/pricing/">per-instance, per-second fee</a>. Naturally, such costs can grow quite high on large datasets; and</li><li>Serving <a href="https://kylin.apache.org/">https://kylin.apache.org/</a> properly, yet not risking it becoming unmanageable in the future (we didn&#39;t want to trade EMR costs over operational costs that a more complex solution would require).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/761/0*8v084_p22oj6zLed.png" /><figcaption>Spark on k8s schematics — original available at <a href="https://spark.apache.org/docs/latest/running-on-kubernetes.html">https://spark.apache.org/docs/latest/running-on-kubernetes.html</a></figcaption></figure><p><a href="https://issues.apache.org/jira/browse/SPARK-18278">Spark supports submitting jobs natively to a k8s scheduler since version 2.3.0</a>. Yet, companies are only starting to embrace running spark on kubernetes (understandable, as the documentation still states that k8s scheduling support is experimental). By the way, if you haven&#39;t done so, go ahead and check <a href="https://spark.apache.org/docs/latest/running-on-kubernetes.html">https://spark.apache.org/docs/latest/running-on-kubernetes.html</a> for a comprehensive guide about the concepts and configuration options.</p><p>At OLX, we decided to take it for a spin and piece everything together so you can test is easily, as this could lead to massive cost savings in the future.</p><h3>Components</h3><p>These are the requirements for running spark on k8s:</p><ul><li><a href="https://spark.apache.org/downloads.html">spark</a> &gt;= 2.3.0;</li><li>a <a href="https://docs.docker.com/registry/">docker registry</a> to host the spark images built by the <a href="https://github.com/apache/spark/blob/master/bin/docker-image-tool.sh">docker-image-tool.sh</a> script;</li><li>a k8s cluster (for local tests, <a href="https://github.com/kubernetes/minikube">minikube</a> will do) and tooling around it (such as <a href="https://kubernetes.io/docs/tasks/tools/install-kubectl/">kubectl</a> and <a href="https://helm.sh/">helm</a>);</li><li>[Recommended] if not running a local test, you&#39;ll want <a href="https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler">cluster-autoscaler </a>for enabling auto scaling nodes only when jobs are actually submitted;</li><li>[Recommended] if running in AWS, you&#39;ll want something like <a href="https://github.com/jtblin/kube2iam">kube2iam</a> to assign proper permissions to the pods created by spark-submit;</li><li>a sample spark job for testing</li></ul><p><strong>TL;DR</strong>: check <a href="https://github.com/olxgroup-oss/spark-on-k8s">https://github.com/olxgroup-oss/spark-on-k8s</a>, we&#39;ve put together the same steps you&#39;ll see in a repo with a Makefile to simplify downloading and installing all the tooling you&#39;ll need locally, without messing with your environment. For the long version, keep reading.</p><p>First, let&#39;s download and unpack spark in your local directory:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7fd3b1d728b23af03846847d59987f19/href">https://medium.com/media/7fd3b1d728b23af03846847d59987f19/href</a></iframe><p>At the time this article was written, we faced an issue that <a href="https://issues.apache.org/jira/browse/SPARK-28921">prevents spark from launching pods in recent kubernetes versions</a>. The fix is merged already, but not yet released.</p><p>For overcoming it without building spark on your own, we need to replace the kubernetes-related jars in $SPARK_HOME/jars/ with newer versions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/96be6c83c3fe13f0c9f58965827097e3/href">https://medium.com/media/96be6c83c3fe13f0c9f58965827097e3/href</a></iframe><p>Now, let&#39;s start minikube (this might take a few minutes if doing it for the first time):</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/38dadd7327d4d48a9514100e0d6e7d69/href">https://medium.com/media/38dadd7327d4d48a9514100e0d6e7d69/href</a></iframe><p>And deploy a docker-registry on it using helm:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/b32b1c42e221be7298cd2f32bb8cb19a/href">https://medium.com/media/b32b1c42e221be7298cd2f32bb8cb19a/href</a></iframe><p>Before continuing, you now must add your newly created registry into the <a href="https://docs.docker.com/registry/insecure/">insecure registries list</a> of your docker daemon. As an example. if you&#39;re using Docker for Mac this is under Preferences -&gt; Daemon:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/998/1*kbzTJVwrFnXr1u63yYl0Ag.png" /></figure><p>Replace 192.168.99.105 with the result from:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/94442e0e30f47cda47270ed4d55b5c59/href">https://medium.com/media/94442e0e30f47cda47270ed4d55b5c59/href</a></iframe><p>And restart the docker daemon.</p><p>Once the docker daemon is back, you&#39;re finally ready to build the spark docker images and push them to your registry! Here&#39;s how you do it:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/fc7ba064f7ee3654fcbbfdc477719760/href">https://medium.com/media/fc7ba064f7ee3654fcbbfdc477719760/href</a></iframe><p>Now it&#39;s time to run a sample spark job! You can run either from your machine (outside the cluster) or from within a pod inside the cluster.</p><h3>Running spark-submit from your machine</h3><p>This is fairly straightforward:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0bc18d6d71a347d20cee0efcd8e40120/href">https://medium.com/media/0bc18d6d71a347d20cee0efcd8e40120/href</a></iframe><p>While the spark job is running, try opening a new terminal to check the pods running:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/41bfb8c2a6b74a3f4c570dbbcb6c406b/href">https://medium.com/media/41bfb8c2a6b74a3f4c570dbbcb6c406b/href</a></iframe><p>If everything went well, you should see a message in the end that states “Pi is roughly 3.14…”</p><h3>Running spark-submit from within the cluster</h3><p>If you want to run spark-submit from within a pod, you&#39;ll have to grant the pod access to the k8s API. This is done by creating a Role with the permissions and attaching it to the pod through a <a href="https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/">service account</a>:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/bbb1691d0fe28920474e9609659211e7/href">https://medium.com/media/bbb1691d0fe28920474e9609659211e7/href</a></iframe><p>Save this as a yaml file, and apply it with kubectl apply -f.</p><p>Then, launch your pod using serviceAccountName: spark (this will link the pod you&#39;re running with the role you just created)</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/71a49c956a9af1844f8ad8ddf69be5cc/href">https://medium.com/media/71a49c956a9af1844f8ad8ddf69be5cc/href</a></iframe><p>For more information or how role-based access control works in kubernetes, check <a href="https://kubernetes.io/docs/reference/access-authn-authz/rbac/">https://kubernetes.io/docs/reference/access-authn-authz/rbac/</a>.</p><h3>Observations</h3><ul><li>On cluster mode, the driver pod is not the same that originally ran spark-submit. This helps you, given that driver pods need to be reachable from the executor and this is taken care of (which is not true for client mode). However, if your application relies on spark-submit output for logging/making decisions whether the job finished successfully or not, this won’t work (<a href="http://kylin.apache.org/">kylin</a> relies on such output, as an example).</li><li>On client mode, the documentation suggests creating a headless service for executors reaching out the spark driver. We found out this setup is not the best if you have more than one pod running spark-submit at the same time (the executors might reach back to the wrong pod, which will cause intermittent job failures). The way out was to set the pod’s FQDN in the $SPARK_HOME/conf/spark-defaults.conf, so each executor resolves their calling pod instead of any (that change allowed us to run multiple spark-submit jobs in parallel).</li></ul><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/560d9ccec602669d0a86ceb43d3ece0c/href">https://medium.com/media/560d9ccec602669d0a86ceb43d3ece0c/href</a></iframe><ul><li>If you rely on the performance of spark on top of HDFS, one of the key performance features is <a href="https://jaceklaskowski.gitbooks.io/mastering-apache-spark/spark-data-locality.html">Data locality</a>, in other words the capability to schedule jobs as close as possible to the HDFS blocks that need to be read. Such capability is lost when deploying in kubernetes currently. Make sure to benchmark the actual impact this causes in your case before investing too much too early.</li><li>One significant limitation we found was the lack of support for <a href="https://kubernetes.io/docs/concepts/configuration/taint-and-toleration/">k8s tolerations</a>. This prevents you from running spark jobs on specialised nodes exclusively (such as <a href="https://aws.amazon.com/ec2/spot/">spot instances in AWS</a>, or GPU-powered nodes). For that reason, we decided to patch Apache Spark and add this feature (currently available here: <a href="https://github.com/apache/spark/pull/26505">https://github.com/apache/spark/pull/26505</a>), since it allows us to reduce costs significantly.</li></ul><p><em>EDIT: spark 3.0.0-preview supports setting pod templates, which can be used to set tolerations among other configurations. Given it&#39;s already there for next major release, there&#39;s no reason for the spark maintainers to merge this PR in branch-2.4. Check </em><a href="https://spark.apache.org/docs/3.0.0-preview/running-on-kubernetes.html#pod-template"><em>https://spark.apache.org/docs/3.0.0-preview/running-on-kubernetes.html#pod-template</em></a><em> for more information.</em></p><h3>Conclusion</h3><p>When designing a spark cluster from scratch, using k8s may not currently be the most optimal way from a performance point of view. However, it doesn&#39;t seem the lack of data locality will be an issue for much longer. Initiatives such as <a href="https://github.com/GoogleCloudPlatform/spark-on-k8s-operator">https://github.com/GoogleCloudPlatform/spark-on-k8s-operator</a> (although beta, it&#39;s currently under heavy development) should eventually address this.</p><p>If you&#39;re already running applications in k8s (with a properly setup cluster, which comprises <a href="https://github.com/kubernetes/autoscaler/tree/master/cluster-autoscaler">cluster-autoscaler</a> and <a href="https://github.com/jtblin/kube2iam">kube2iam</a> at least), you&#39;d be surprised by how stable running spark on k8s is. And, in OLX case, it means zero extra maintenance and support, as everything can be managed by leveraging the same operational standards we&#39;ve already mastered.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d56b6a61fcbe" width="1" height="1" alt=""><hr><p><a href="https://tech.olx.com/running-spark-on-kubernetes-a-fully-functional-example-and-why-it-makes-sense-for-olx-d56b6a61fcbe">Running Spark on Kubernetes: a fully functional example and why it makes sense for OLX</a> was originally published in <a href="https://tech.olx.com/">OLX Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building an AWS serverless ML pipeline with Step Functions]]></title>
            <link>https://tech.olx.com/building-an-aws-serverless-ml-pipeline-with-step-functions-b39feed12bab?source=rss-256802ace167------2</link>
            <guid isPermaLink="false">https://medium.com/p/b39feed12bab</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-pipeline]]></category>
            <category><![CDATA[serverless]]></category>
            <category><![CDATA[machine-learning]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Rafael Felix Correa]]></dc:creator>
            <pubDate>Mon, 15 Apr 2019 08:12:14 GMT</pubDate>
            <atom:updated>2019-04-15T09:07:51.906Z</atom:updated>
            <content:encoded><![CDATA[<h3>Building an AWS Serverless ML Pipeline with Step Functions</h3><p>At <a href="https://www.olxgroup.com/">OLX Group</a>, we strive to serve customers in many markets (like India, Pakistan, Indonesia, Brazil, Poland, and Ukraine) with the best online classifieds experience possible. Obviously, this leads to a series of challenges, one of them being: How to consistently deliver meaningful recommendations, e.g. categories to visit, given markets have so many differences among them?</p><p>This is where Machine Learning comes to the rescue.</p><p><em>Warning: this article does not intend to compare AWS Step Functions with other workflow processing engines (e.g. Airflow). Please refer to this article for a detailed comparison among several of these tools.</em></p><h3>Experimenting with Sagemaker</h3><p>It’s not a secret that <a href="https://www.youtube.com/watch?v=YmXft_jBxf4">OLX works heavily on top of AWS</a>, thus Sagemaker is currently the first stop when problems arise. Often, the process is spinning up a notebook instance on a development account, and start testing a combination of models and hyper-parameters against a subset of the data.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/793/1*37Uch7NaI4S7LH-_NAfVbw.png" /><figcaption>Illustration of the experimentation process in Sagemaker.</figcaption></figure><p>A typical starting point is the Sagemaker examples Github repository, which is pretty comprehensive and helps Data Scientists to spin up an initial version quickly.</p><p>When you have selected a model for the first implementation with real-world data, fetched in a continuous way, that&#39;s when things get more complicated. Sagemaker won’t cover the ETL part of the process (out of its scope), neither controlling which steps should execute and when.</p><p>For that, you’ll need to piece together other AWS services to get the job done in a scalable and maintainable way. And by scalable, I mean not just the amount of data but also being able to use more than one ML model (after all, you often want to benchmark and pick the best).</p><h3>Proposed solution</h3><p>After experimenting with several combinations of AWS services, we came up with the following solution proposal:</p><ul><li>Storage for input, output, and temporary steps data: <a href="https://aws.amazon.com/s3/">Amazon S3</a>.</li><li>ETL (to fetch and prepare the input data as well as output data in the correct location and format): <a href="https://aws.amazon.com/glue/">AWS Glue</a> (Athena can’t export to Parquet natively as of the day this article was written).</li><li>ML Model training and Batch Transformation: <a href="https://aws.amazon.com/sagemaker/">Amazon Sagemaker</a>.</li><li>Custom triggering logic with proper input parameters: a combination of <a href="https://aws.amazon.com/cloudwatch/features/">Cloudwatch Events</a>, <a href="https://docs.aws.amazon.com/glue/latest/dg/trigger-job.html">Glue ETL triggers</a>, and <a href="https://aws.amazon.com/lambda/">AWS Lambda</a>:</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/961/1*HRKQZvTGqWjeD7RTR40hSQ.png" /><figcaption>Initial solution diagram</figcaption></figure><p>Although aligned with the current <a href="https://d1.awsstatic.com/whitepapers/architecture/AWS-Serverless-Applications-Lens.pdf">set of best practices for serverless applications in AWS</a>, once we deployed the pipeline we quickly realised:</p><ul><li>Tracking which job belonged to each execution was painful (tagging could help, but you’d have to implement it yourself).</li><li>It was hard to assess the current state (again, you’d need to implement something perhaps in DynamoDB to save the executions current state).</li><li>It needed extra tooling/scripts to assess the total execution time (as there are multiple sources to check, like Sagemaker and Glue) as well as to run backfill/reprocessing tasks with past dates.</li><li>Coordination between training and transforming was tricky, as the triggering logic was spread across Glue ETL triggers, Cloudwatch Events, and two lambdas.</li></ul><p>These problems ended up harming the experience of whoever needs to interact with it, as troubleshooting failed runs was painful compared to other platforms like Airflow.</p><p>To tackle the issues described above, we decided to try out Step Functions.</p><h3>Intro to AWS Step Functions</h3><p>Simply put, AWS Step Functions is a general purpose workflow management tool. A more comprehensive definition can be found in their <a href="https://aws.amazon.com/step-functions/">AWS service page</a>.</p><p>Although not focused on data workloads, the fact you can coordinate long-running tasks controlling/watching execution details/transitions from a single interface only <a href="https://aws.amazon.com/step-functions/pricing/">paying by state transition</a> was exactly what we needed.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mmyuhOwEcRQXXo0B" /><figcaption>State machine view</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*LfL2yEoyMaK-F4hw" /><figcaption>Failed execution view</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*24jt4LuwmpRWuo48" /><figcaption>Part of an execution log, with time spent in each step.</figcaption></figure><p>The final solution diagram looks much simpler, as AWS Step Functions coordinates the sequence of execution and the triggering logic was moved to a single place:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OIpZrzGJnmrhH1_YOUyNJg.png" /><figcaption>Final solution diagram</figcaption></figure><h3>Lessons learned/Step Functions gotchas</h3><ol><li>Create a triggering lambda function.</li></ol><p><strong>Reason</strong>: you can programatically ensure input validation and safe defaults before the state machine is called. Otherwise, you’ll potentially spend unnecessary dollars running jobs with wrong parameters.</p><p>2. Stick with AWS Step Functions native integrations.</p><p><strong>Reason</strong>: <a href="https://docs.aws.amazon.com/step-functions/latest/dg/connectors-supported-services.html">Service integrations</a> will save you from writing lambdas to fire up a Glue ETL Job or a Sagemaker Training Job, and provide you full control from the Step Functions console or API (e.g. <a href="https://docs.aws.amazon.com/step-functions/latest/apireference/API_StopExecution.html">StopExecution</a> will stop any synchronous step like arn:aws:states:::glue.startJobRun.sync).</p><p>3. Use Lambda for performing string interpolation and formatting.</p><p><strong>Reason</strong>: You might run into a scenario — as we did — in which you need to combine your input parameters into a single string (e.g. s3://my-bucket/model/market). Unfortunately, as of today, you cannot do this purely with <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-amazon-states-language.html">ASL</a> as it doesn’t support mixing JsonPath expressions with strings (this information is not explicitly documented anywhere, but I got it after talking to AWS Support). To overcome this, you can code a very dumb lambda function that does this for you and returns it to the next steps.</p><p>Example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c798c656980671afcb9f2b29201eebbe/href">https://medium.com/media/c798c656980671afcb9f2b29201eebbe/href</a></iframe><p>The lambda function code:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0956165765aa054a7457629f1760b88b/href">https://medium.com/media/0956165765aa054a7457629f1760b88b/href</a></iframe><p>ResultPath and JsonPath are your best friends.</p><p><strong>Reason</strong>: Step Functions sends the output of a previous state as the input of the following state by default. Although a reasonable behaviour most of the time, often you want to access the input arguments from a middle-stage step, which won’t be possible. To overcome this, you can encapsulate the results produced in one step using the ResultPath option.</p><p>Example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/1bad083d3e03d41e150fc9f0d9b47503/href">https://medium.com/media/1bad083d3e03d41e150fc9f0d9b47503/href</a></iframe><p>For more information: <a href="https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html">https://docs.aws.amazon.com/step-functions/latest/dg/concepts-input-output-filtering.html</a></p><h3>Conclusion</h3><p>AWS Step Functions turned out to be a good fit for the data pipeline use case as it comprises long-running steps. It’s a very handy way of overcoming the lambda execution time limit (and it’s also cheaper to pay state transitions than a “long-running” lambda function). Although not a requirement, it helped us overcome a reasonable amount of shortcomings of a serverless data pipeline in AWS. There&#39;s no magic though: you still have to implement any flexibility you require (like reprocessing from a past date or skipping part of the flow), as it’s meant for covering general workflow use cases.</p><h3>Further reading</h3><p>Amazon State Language spec: <a href="https://states-language.net/spec.html">https://states-language.net/spec.html</a></p><p>Inspiration: <a href="https://github.com/aws-samples/aws-etl-orchestrator">https://github.com/aws-samples/aws-etl-orchestrator</a> and <a href="https://epsagon.com/blog/hitchhikers-guide-to-aws-step-functions/">https://epsagon.com/blog/hitchhikers-guide-to-aws-step-functions/</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b39feed12bab" width="1" height="1" alt=""><hr><p><a href="https://tech.olx.com/building-an-aws-serverless-ml-pipeline-with-step-functions-b39feed12bab">Building an AWS serverless ML pipeline with Step Functions</a> was originally published in <a href="https://tech.olx.com/">OLX Engineering</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>