<?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 Grant Seward on Medium]]></title>
        <description><![CDATA[Stories by Grant Seward on Medium]]></description>
        <link>https://medium.com/@grant-6562?source=rss-411c2c9fa8------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*wNRAWvKC71Z3ovqReRTiDg.jpeg</url>
            <title>Stories by Grant Seward on Medium</title>
            <link>https://medium.com/@grant-6562?source=rss-411c2c9fa8------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 23:10:04 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@grant-6562/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[How to evaluate a data catalog]]></title>
            <link>https://grant-6562.medium.com/how-to-evaluate-a-data-catalog-36c61d3bd8bf?source=rss-411c2c9fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/36c61d3bd8bf</guid>
            <category><![CDATA[metadata]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-catalog]]></category>
            <dc:creator><![CDATA[Grant Seward]]></dc:creator>
            <pubDate>Thu, 18 Nov 2021 17:50:31 GMT</pubDate>
            <atom:updated>2021-11-18T17:50:31.128Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fND0ab6vnG1pdyxblb95Dw.jpeg" /><figcaption><a href="https://pixabay.com/photos/card-catalog-drawers-wood-brass-194280/">Photo</a> by vonriesling from pixabay</figcaption></figure><p>The data catalog is becoming a ubiquitous part of the data ecosystem, so much so that the new data stack is now known by its three pillars: the warehouse, the BI tool and the data catalog. However, many organizations still struggle to wrangle their data in a way that allows users to answer the most basic questions: what data exists and what does it mean?</p><p>Taking the next step to evaluate and procure a data catalog is a daunting step. There are a plethora of options available in the market and historically many catalog implementations have failed due to a mismatch between the product and the company. We’ve identified the five pillars to selecting the right data catalog for your organization; by tackling each of these items you will be able to de-risk your data catalog implementation and start getting more value out of your data.</p><h3>1. Alignment with data culture</h3><p>The most important aspect of selecting a data catalog is to choose the product that is best positioned to enable your data culture. While the catalog can support your team’s culture but it cannot create on its own.</p><p>There are many different data catalogs and just about every one provides the full set of capabilities that are expected from a data catalog: indexing metadata, search, descriptions and tagging, classification and more. Rather, the main difference between data catalogs is whether they expect to work <em>within</em> your culture or if they expect to <em>define</em> your culture. These differences can be succinctly summarized by grouping catalog providers into two categories: traditional and new-age.</p><p>A more traditional data catalog will support cultures that require:</p><ul><li>More process and approval for documentation</li><li>Integration with legacy systems</li><li>Dedicated roles for data stewards to keep documentation updated</li></ul><p>New-age data catalogs are better suited for:</p><ul><li>Augmenting workflows with automation that prompt users for input when required</li><li>Integration with the modern data stack — Snowflake, BigQuery, Redshift, Mode, Looker, Tableau, Slack, GitHub, Slack, etc.</li><li>Providing automated insights into who is using your data and how</li></ul><h3>2. Identify your success criteria</h3><p>Selecting a data catalog is an ongoing investment for your organization and, as with any investment, you should attempt to identify and maximize your likelihood of success. Determine the outcomes that your company needs to have in order for your data catalog to be successful. Some examples here may be:</p><ul><li>Build trust in your data among the analysts and other end users</li><li>Allow data scientists to be onboarded and to ship their first feature faster</li><li>Provide centralized data steward / governance team controls to manage metadata quality</li><li>Reduce the time to research the impact to your dashboards after data pipeline failures</li><li>Eliminate all duplicative metrics and reports across your BI tool(s) and data teams</li><li>Ensure all certified data assets are documented</li></ul><p>These outcomes can be mapped directly to the features that catalog providers have allowing you, in turn, to directly compare data catalog provides based on the results that are important to you.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fa-vtkJxqyHmNR9I.png" /><figcaption>Image provided by author</figcaption></figure><h3>3. Review the options</h3><p>There are many factors that will go into determining whether a catalog will be a good fit for your organization. The number of data users in your company, the technology in your data ecosystem and security requirements for integration are only a few of the first-order considerations. Identify the options in the market that you believe are best suited for your company. Take into account the product’s current offering as well as the support and roadmap behind the product. The needs you have for a catalog today will likely shift and change within a few years; you’ll want a catalog that evolves as quickly as your business.</p><p>We know that it can be difficult to come up with the criteria that should be used to evaluate different catalogs. After working with hundreds of companies we’ve put together <a href="https://docs.google.com/spreadsheets/d/1WAqtg1o9GvFpbfytcMRrGoqv9v6o3UNOJJT4m2J5TLU/edit?usp=sharing">The Ultimate Data Catalog Checklist</a> in order to help you kick-start your evaluation process.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*N-n2XdKsqedxhlT8.png" /></figure><h3>4. Support, guidance and engagement</h3><p>The data catalog can only be as useful as the information put in and the processes placed around it. A key factor to the initial success of a data catalog installation is how users are onboarded and how data is bootstrapped into the catalog. Catalog providers should be willing to provide training, hands-on guidance and support that are tailored to the nuances that are unique to your data and your team’s culture.</p><p>To get a sense of the support you will receive from a particular provider, ask to speak to the individuals who will support you while you’re a customer. The support and implementation team should be familiar with the tools you are using and should deeply understand the problems you are trying to solve with a data catalog. Be on the lookout for support engineers that are highly technical and who have previously walked in your shoes; this is a positive sign that the data catalog provider is willing to invest in your long-term success!</p><p>In addition, look for catalog providers that have extensive experience supporting companies that are similar to your own. The challenges and experiences from a catalog implementation vary widely due to the size and culture of each company, therefore the lessons learned by data catalog support teams will be dramatically different.</p><h3>Still can’t decide? Run a proof of concept</h3><p>After you have vetted the data catalogs you believe are the best fit for you, if you still cannot select a single data catalog provider then it may be worthwhile to run a proof of concept. Selecting the data catalog that is right for your organization is a risky decision and historically many implementations have failed due to a mismatch between the catalog and the users. The best way to de-risk the procurement and implementation of a catalog is to run a proof of concept to ensure that capabilities and features of the catalog align with your user base’s expectations.</p><p>Select the one or two catalogs you feel are best for you and work with those providers to clearly define the timeline and the outcomes you want to achieve during your proof of concept. We recommend that the POC run for about 2 weeks in order to allow your users to fully explore the features and to get a sense of how the tool fits into their every-day work. During the POC you should expect the full support and engagement from their onboarding team; this time should be used to evaluate both the product as well as the support.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=36c61d3bd8bf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Rise of the Operational Data Catalog]]></title>
            <link>https://medium.com/data-science/the-rise-of-the-operational-data-catalog-c89a88cbe992?source=rss-411c2c9fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/c89a88cbe992</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-catalog]]></category>
            <dc:creator><![CDATA[Grant Seward]]></dc:creator>
            <pubDate>Tue, 10 Aug 2021 15:41:55 GMT</pubDate>
            <atom:updated>2021-08-10T15:46:29.783Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*mfn7kPtBfGs8ODDL" /><figcaption><a href="https://unsplash.com/photos/oyXis2kALVg">Photo</a> by Fabio from Unsplash</figcaption></figure><p>For far too long, data catalogs have been overly focused on data users while shunning the needs of software engineers and, specifically, data engineers. The core features in all data catalogs — metadata capture, tagging, lineage, to name a few — are skewed to a UI-based search and discovery paradigm. Fundamentally, these capabilities support data <em>users</em> but offer relatively little value for data <em>creators,</em> which has led to two main problems with the data catalog:</p><ul><li>The data catalog has become a purely reactionary software</li><li>The value-add for the data catalog scales linearly with the <em>number of users</em></li></ul><p>It’s time for the data catalog to evolve. Catalogs already have access to rich, cross-sectional views of your data ecosystem. The next frontier is to repurpose this information for operational use in ways that enable data <em>creators</em> to create and maintain data more efficiently. <strong>The most valuable use-case is to integrate the data catalog into the CICD pipeline.</strong></p><h3>Why integrate the data catalog with the CICD pipeline?</h3><p>Your data catalog should have a rich set of metadata available to ensure continuity within your data pipelines. For example, the catalog should alert you on the following scenarios <em>before</em> the changes occur in production:</p><ul><li>Use lineage to understand if removing a field will impact a business critical or externally reported dashboard</li><li>Combine lineage with data quality test results to determine if new “not null” constraints in your Avro files will lead to records not being inserted into your database</li><li>Check query logs and dashboard view counts to determine that a table has not been used in the previous three months before dropping a table</li></ul><p>The CICD pipeline is the control point that represents the moment when the shape and semantics of your data changes. This is the right place to inject your data catalog because it is <em>before</em> the actual data changes. The diagram below provides a simplistic example for a CICD process that validates metadata changes with the data catalog before deployment.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*AvnI17zNOhao3TzY" /><figcaption>The data catalog in the CICD process (Image by Author)</figcaption></figure><p>Since the data catalog sits in front of the deployment, it can now be <em>proactive</em> in its decision making. This has tremendous benefits for some features such as data lineage where the standard, reactionary, approach is to build lineage from SQL logs which can only be read <em>after</em> changes to your data have occurred.</p><p>Another benefit of this approach is that it has the side-effect of keeping your data catalog up to date.</p><h3>Why is this valuable?</h3><p>When utilizing the data catalog for operational use-cases, you are able to scale the value that your catalog provides with the <em>amount of data</em> that you have. Traditionally you could measure the ROI with a formula akin to:</p><p><em>(Number of data users) * (avg time saved per user) * (avg salary)</em></p><p>While this is a good baseline, it is single sided and does not take into account the holistic amount of time that data creators spend generating new data assets, and specifically the significant amount of time it takes to track down and fix data dependency issues after they occur. Consider the tasks below for when a breaking change occurs in production:</p><ul><li>Finding the root cause</li><li>Fixing the root cause</li><li>Planning and executing a manual data cleanup &amp; backfill</li></ul><p>The time cost here is tremendous; not to mention that when a data quality issue makes it into production, there can be a tangible impact to your user! Companies that have larger amounts of data can derive out-weighted benefits from operationalizing their data catalog.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*dp5NR188H1BZxRq9" /><figcaption>Growth of Users vs. Growth of Data (Image by Author)</figcaption></figure><h3>Scaling with Data</h3><p>In order for catalogs to scale with data, they must cater to the data creators: the software engineer. The engineer’s interaction with the data catalog will be different than what one would expect for an analyst or a data scientist. In particular, engineers will require:</p><ul><li>A robust set of programmatic interfaces that fits into their development lifecycle</li><li>Integration with (or deployment of) the data catalog into dev, staging and prod environments</li></ul><p>While providing an API for engineers that tells them lineage <em>exists</em> will work for some organizations, those with larger data sets, stringent change controls, more complex pipelines and larger teams will not find this to be sufficient. To win over most companies, the catalog will need to succinctly summarize all of the knowledge it has about related data assets within the APIs that are made available to engineers:</p><ul><li>Is the data being used for operational purposes or analytics?</li><li>Is the specific column being removed used in a business critical report?</li><li>When was the data last used?</li></ul><h3>Conclusion</h3><p>Integrating your data catalog with your CICD pipeline will enable you to proactively leverage your metadata to identify breaking changes in your data pipeline and give your team the ability to scale with your data while supporting the increasing demands of a growing data set.</p><p>At <a href="https://stemma.ai/">Stemma</a>, we’re bringing all of this together and reimagining what the data catalog can do to answer the tried and true question:</p><p><em>Will changing this data asset have an impact on my business?</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c89a88cbe992" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/the-rise-of-the-operational-data-catalog-c89a88cbe992">The Rise of the Operational Data Catalog</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Testing AWS Lambdas Locally with a HTTPS Proxy]]></title>
            <link>https://medium.com/data-science/testing-aws-lambdas-locally-with-a-https-proxy-f7888ffd2d53?source=rss-411c2c9fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/f7888ffd2d53</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[aws-lambda]]></category>
            <category><![CDATA[development]]></category>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[developer]]></category>
            <dc:creator><![CDATA[Grant Seward]]></dc:creator>
            <pubDate>Mon, 30 Nov 2020 14:36:21 GMT</pubDate>
            <atom:updated>2020-11-30T15:23:10.276Z</atom:updated>
            <content:encoded><![CDATA[<p>AWS Lambda is generally one of the easiest ways to deploy and execute code in the cloud, especially when deploying code with the <a href="https://docs.aws.amazon.com/serverless-application-model/latest/developerguide/serverless-sam-cli-command-reference.html">sam CLI</a>. The simplicity of serverless resource definitions coupled with the ability to package resources locally and ensure they run on AWS provides a beautiful development experience.</p><p>Except sometimes this beautiful process can turn into a beast of a deployment when the build and package steps grow to ten, fifteen or (gasp) more minutes. There are a few places where the sam build/ sam deploy paradigm breaks down and starts to cause runaway deployment times:</p><ul><li>The number of Lambdas in a deployment becomes large (e.g. to more than half a dozen)</li><li>Some or all of your Lambdas have a large number of resources to install and / or a large Lambda package size (increasing time to build and for <em>sam</em> to put the code on S3)</li><li>You are making coordinated changes to two Lambdas at once (multiple stacks need to be updated in AWS before you can test)</li><li>Multiple people are developing on the same Lambda stack at the same time</li><li>Your internet is slow (again, extending the time to place Lambda packages in S3)</li></ul><p>Since <em>sam</em> deploys all resources in a CFT, you cannot selectively choose which ones to incrementally update. The impact is that you need to build and upload all of your code to AWS for each deployment that you want to test in the cloud. This becomes particularly annoying when you push code to AWS only to realize that you misspelled a string and you need to redeploy the entire stack.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WZ5pig7_WqrlwqG5zZZtrA.png" /><figcaption>Photo by <a href="https://www.pexels.com/@olly?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Andrea Piacquadio</a> from <a href="https://www.pexels.com/photo/woman-in-white-shirt-showing-frustration-3807738/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a></figcaption></figure><p>Yes, <em>sam</em> does provide a way to invoke lambdas locally, but this does not help when you want to test coordinated changes between Lambdas. With <em>sam </em>You cannot deploy two lambdas locally <em>and</em> route traffic between them (as far as I know). Sure, there may be better ways to structure and deploy your code to prevent the monolithic deployment issues but there will always be tradeoffs. How much functional code <em>should</em> go into a single Lambda? How to choose when to separate functions into different stacks? How to organize repositories around stacks?</p><p>What can be done if you have long package and deployment steps but you want to speed up the time it takes to build and test your Lambdas? Or if you have lambdas from different stacks that invoke each other and you’d like test them locally at the same time?</p><h3>Reroute Traffic with a Proxy</h3><p>The basic principle behind rerouting traffic with a proxy is that we want to capture the in-flight request that is going to AWS and then send it back to our local machine instead of allowing it to go to the cloud. This process is generally called Man in the Middle (MITM). The name gets a bad rep for being widely used for <a href="https://en.wikipedia.org/wiki/Man-in-the-middle_attack">hacking</a> but it has practical use in helping to reduce the time it takes to test Lambdas.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/541/1*ZkRkCQefBuRgtY2n2PmpKQ.png" /><figcaption>Basic Man in the Middle Process (Image by Author)</figcaption></figure><p>The key here is that we will only want to reroute pre-configured endpoints back to our local machine. If, for example, we are deploying a stack that has five Lambdas and we’re only making changes to one of those Lambdas then the traffic for the other four should continue to go to AWS.</p><h4>Capture Traffic Going to AWS</h4><p>When you invoke an AWS Lambda, with <em>boto3</em> or another AWS package, you are just calling an API via HTTPS; the AWS package handles the authentication, endpoint creation, and serialization for you. Because all of this traffic is sent via HTTPS you can view all your machine’s HTTPS outgoing traffic through a proxy!</p><p>If you’re on a Mac you can update your HTTPS proxy settings under system preferences and then network &gt; advanced &gt; proxies. Here I have turned the local proxy on for port 9090.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*75utXb0nbO8V3g9lMlMqlw.png" /><figcaption>(Image by Author)</figcaption></figure><p>You can see the traffic flowing through the traffic yourself if you download a tool such as <a href="https://proxyman.io/">Proxyman</a> and then invoke lambdas from your local machine.</p><figure><img alt="Screenshot of HTTPS requests to AWS as seen in Proxyman" src="https://cdn-images-1.medium.com/max/1024/1*0K-IrFJ8bqyn1iGj3sWOtg.png" /><figcaption>Screenshot of HTTPS request to AWS as seen in Proxyman (Image by Author)</figcaption></figure><h4>Match Traffic From Endpoints to Reroute Them Locally</h4><p>Now that the HTTPS traffic is flowing through our proxy we have the ability to manipulate it. This is done with the man-in-the-middle program. This MITM will read all events that come through the proxy and optionally apply some action to them. This is the key to testing our Lambdas locally.</p><p>I am using <a href="https://mitmproxy.org/">mitmproxy</a>, a super powerful tool that allows scripting logic to be applied to any any records — aka flows — that come through the proxy. The mitmproxy cli accepts a python file as an argument where it will feed HTTPS events to the python script to take action. Here is an example of a script that routes all traffic from <strong>google</strong> to <strong>bing</strong> and from <strong>reddit</strong> to <strong>medium</strong>.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/5d6adcf8312d85a431ad37260e638374/href">https://medium.com/media/5d6adcf8312d85a431ad37260e638374/href</a></iframe><p>This code can be run with the command (note — 9090 is the port that my HTTPS proxy is running on):</p><pre>mitmdump -p 9090 reroute_traffic.py</pre><h4>Rerouting Lambda Traffic</h4><p>You may have noticed in the screenshot above that all of the requests being made to AWS follow the same naming convention; the region, lambda version date, and lambda function name are concatenated to build the endpoint. When you run sam local start-lambda … a similar process occurs locally! AWS creates a local endpoint on your machine that maps to a specific port. You can even specify that port like this:</p><pre>sam local start-lambda -p 54321 --template /path/to/template.yaml</pre><p>Your Lambda will be running locally and you can see the local endpoint:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*A8QPmRWUjcUPiJLf2sb0mQ.png" /></figure><p>Thus far we have learned how to capture and reroute traffic with a man in the middle as well as how to start a lambda locally and select the port it runs on. The only thing left to do is to build a map that points from the endpoint in AWS back to our local port where this Lambda is running. This is where things may get tricky for you. When sam starts a lambda locally you can only invoke the lambda with the <em>resource name</em> but as we saw above the Lambda URL contains the<em> function name</em>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t-1ui_O2JskfuamaJeOr1Q.png" /><figcaption>CFT Lambda Definition (Image by Author)</figcaption></figure><p>I always use a standardized naming conventions for my Lambdas and my team is very strict about following it, as you can see above that naming convention is “<strong>{StackName}-{ResourceName}-{Env}</strong>”. This allows me to simply strip the stack name and environment from the function name when routing traffic to the locally running Lambda. This allows the man-in-the-middle script to replace flows using this basic logic!</p><pre>reroute_flow = {<br>    &#39;from_route&#39;:&#39;my-stack-MyLambda1-dev&#39;, <br>    &#39;to_route&#39;: &#39;MyLambda1&#39;<br>}<br>mf = MatchedFlow(**reroute_flow)<br>FM = FlowMatcher([mf])</pre><p>And voila! Once plugged into the man-in-the-middle script, we are now routing traffic to our local Lambdas. We can even have multiple reroutes defined in order to route traffic between local versions of our Lambdas!</p><pre>reroute_flow1 = {<br>    &#39;from_route&#39;:&#39;my-stack-MyLambda1-dev&#39;, <br>    &#39;to_route&#39;: &#39;MyLambda1&#39;<br>}<br>reroute_flow2 = {<br>    &#39;from_route&#39;:&#39;my-stack-MySecondLambda-dev&#39;, <br>    &#39;to_route&#39;: &#39;MySecondLambda&#39;<br>}<br>mf1 = MatchedFlow(**reroute_flow1)<br>mf2 = MatchedFlow(**reroute_flow2)<br>FM = FlowMatcher([mf1, mf2])</pre><h3>LocaLambda — A CLI to Simplify Things</h3><p>There is a lot to do in order to test Lambdas locally: setting up the HTTPS proxy, defining matching rules, serving Lambdas locally, etc. <a href="https://github.com/tree-schema/localambda">LocaLambda</a>, or <em>lola</em> for short, is a lightweight CLI that is here to simplify the process. Lola provides three functions:</p><ul><li><strong>Setup</strong>: set up the required resource and configuration files in order to get <em>lola</em> to run, this is a one-time activity after installing <em>lola</em></li><li><strong>Build</strong>: <em>lola</em> will build the specific resources defined in your <em>lola.yaml</em> file. It does this by replicating the actual template.yaml file with a slimmed down version that only contains the specified resources</li><li><strong>Serve</strong>: <em>lola</em> runs the sam local start-lambda...<em> </em>for each Lambda defined in your configuration file, keeping track of the specific port used. It then will automatically start your local HTTPS proxy server and execute the man in the middle script. It should be noted that the man in the middle runs in a different executable than <em>lola.</em> In order to tell the man in the middle what matching logic to apply it serializes the mappings for the locally deployed resources and places them on Redis (which you must have running locally as well).</li></ul><h4>LocaLambda Setup</h4><p>LocaLambda is available on <em>pypi</em> and can be installed with:</p><pre>pip install localambda</pre><p>When first installed, LocaLambda needs to setup a few resource and config files that will be specific to your machine. You can have LocaLambda guide you through the one-time setup with:</p><pre>lola --setup</pre><p>The output of this is a .lolarc resource file located in your home directory and a new lola directory located in the location of your choice. You will need to create a lola.yaml file, such as the one below, in the lola directory that will tell LocaLambda which resources to build and serve. This file can also be found in the GitHub repo under the <a href="https://github.com/tree-schema/localambda/tree/master/examples">examples</a> section.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/0f47db04e3566bade381a6be406b6100/href">https://medium.com/media/0f47db04e3566bade381a6be406b6100/href</a></iframe><p>A lot of these configurations are based off of what we use and it is likely that you’ll have slightly different needs. Because of the standardized naming convention I use for Lambdas, I only need to tell <em>lola</em> about three things:</p><ol><li><strong>The location of the template.yaml file</strong>: this is a concatenation of <em>repo_home</em><strong> </strong>and <em>location</em>,<strong> </strong>or a fully qualified location can be provided. This should be the directory where the code and template are located.</li><li><strong>The stack name</strong>: <em>lola</em> needs to strip the stack name and environment name that are in the HTTPS request going to AWS in order to find the specific resource name. The environment is going to be static (dev), so that is hard coded for now.</li><li><strong>Resources</strong>: a list of resource names in the CFT template.yaml file that should be deployed or served. If you have ten lambdas in your CFT this is where you can select one, two or however many to build and test instead of having to build and deploy all ten.</li></ol><h4>Running lola</h4><p>LocaLambda does two main things: it builds resources and serves them locally. You can build and serve lambdas with <em>lola</em> independently or you can do both at the same time. Building simply requires the -b flag where serving requires -s. To build and serve you can run:</p><pre>lola -bs</pre><p>When running this command using the sample configuration file, you will get the following output:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BDyPGMLj_nG-gsYU_LLpEg.png" /><figcaption>LocaLambda build and serve output (Image by Author)</figcaption></figure><p>LocaLambda is going to run through a handful of steps in sequential order, some of which may be skipped if you are only building or deploying:</p><ol><li>(build) Create a slimmed down version of your deployment template for each stack in your <em>lola.yaml</em> config, only the resources selected are included in the build — not the entire stack</li><li>(build) Run sam build ... for each of your slimmed down templates</li><li>(serve) For each stack defined in <em>lola.yaml, </em>run<em> </em><em>sam local start-lambda ..</em></li><li>(serve) For each stack defined in <em>lola.yaml</em>, serialize the matching logic for the man in the middle and place them on Redis</li><li>(serve) Launch the man in the middle which reads the configs from Redis and begins matching the HTTPS events</li></ol><h4>Turn Off SSL Verification</h4><p>Because we are capturing HTTPS traffic in-flight and rerouting it to a different host, we will inevitably run into SSL Certificate issues since there is no way for your local machine to have certs that cover the AWS domain. To get around this, the devs behind AWS Lambda have provided a nifty way to turn off SSL verification. When setting up your Lambda client simply set the verify flag to False, as seen here with boto3:</p><pre>import boto3<br>lambda_client = boto3.client(&#39;lambda&#39;, verify=False)</pre><p>Realistically, you do not want to hard-code this value because in all other environments you will want to have the lambda client verify the certificate. One suggestion here is to just use an environment variable for the environment (e.g. local, dev, staging, prod, etc.), and to only set this to verify when deployed locally.</p><h4>Test to Ensure Events Are Intercepted &amp; Rerouted</h4><p>Now that everything is set up and running, we can test that traffic is properly being routed to the local Lambda. The following script can be run in a shell while <em>lola</em> is serving your local resources.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/42924ac3acd6a8b44369740239c06c38/href">https://medium.com/media/42924ac3acd6a8b44369740239c06c38/href</a></iframe><p>Behind the scenes I have set it up so that this Lambda is deployed locally and it is invoking another lambda that is deployed in AWS. You can see here that traffic is being routed to the first Lambda served locally instead of to AWS!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*oP38BQLnUgBuQ3dEfXzdYg.png" /><figcaption>LocaLambda Rerouting Events Output (Image by Author)</figcaption></figure><h3>Closing Thoughts</h3><p>LocaLambda can be an amazingly string tool in your toolbox to expedite your development process, but it’s by no means a silver bullet. It is more lightweight than <a href="https://github.com/localstack/localstack">localstack</a> but it’s probably still a bit too heavy if it only takes a moment or two to build and push code to AWS. There are a few places where it has room for improvement and (and feedback / PRs are always welcome):</p><ul><li>Allow custom matching logic for function name to resource mapping</li><li>Handle layers integration, both local layers and imported layers from AWS</li><li>Manage ssh tunnels; many lambdas that need to access databases in private networks are also deployed in private networks or at least in security groups that have access to the databases. Having the ability to quickly test lambdas that need DB access without the headache of manually configuring the tunnel would be a big improvement.</li><li>Be able to deploy with different structures for templates in a repo (e.g. template.yaml is not at the repo root, multiple templates, embedded template, etc.)</li><li>Allow dynamic linking and unlinking for different <em>lola.yaml</em> config files to prevent needing to update a single config</li></ul><p>All in all, it’s a nifty and fun little tool that meets the need for the niche use-cases that our teams run into from time to time. I hope you can get some value out of this project as well!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f7888ffd2d53" width="1" height="1" alt=""><hr><p><a href="https://medium.com/data-science/testing-aws-lambdas-locally-with-a-https-proxy-f7888ffd2d53">Testing AWS Lambdas Locally with a HTTPS Proxy</a> was originally published in <a href="https://medium.com/data-science">TDS Archive</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Connecting to SQL Server Through an SSH Tunnel with Python]]></title>
            <link>https://grant-6562.medium.com/connecting-to-sql-server-through-an-ssh-tunnel-with-python-17de859caca5?source=rss-411c2c9fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/17de859caca5</guid>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Grant Seward]]></dc:creator>
            <pubDate>Mon, 16 Nov 2020 16:36:04 GMT</pubDate>
            <atom:updated>2020-11-17T02:06:26.550Z</atom:updated>
            <content:encoded><![CDATA[<p>Keeping your data secure should always be a top priority when creating, storing or using your data. One of the methods you should employ to keep your data safe is to put your databases into a private network where they cannot be accessed by the public internet. Access to your databases can then be limited to a select few resources with elevated security controls that sit within your network but also allow inbound access from the public internet.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/669/1*NkjkSswE3pURrXLjZsOb8Q.png" /><figcaption>Simplified Network with Jump Server</figcaption></figure><p>This approach significantly reduces the the area of attack for hackers and reduces your risk space down to a single server, or set of servers. While this approach does help reduce the risk it does not eliminate it and your security will only be as strong as your weakest link so make sure you <a href="https://www.csoonline.com/article/2612700/security-jump-boxes-improve-security-if-you-set-them-up-right.html">properly harden </a>your jump servers.</p><p>Here at Tree Schema, our <a href="https://treeschema.com/">data catalog</a> can securely connect to many of your different databases through jump-servers, one of which is SQL Server. For one reason or another, this particular database was rather troublesome to get the networking correct across all of the different cloud providers when compared to Postgres, MySQL, Oracle, etc. so we’re sharing some lesson’s learned.</p><h3>Connecting to SQL Server</h3><p>If you have an Azure SQL database, an AWS RDS SQL Server instance or a self-hosted SQL Server database that is not accessible via the internet you can connect to your SQL Server database using the following Python packages:</p><ul><li><a href="https://pypi.org/project/sshtunnel/">sshtunnel</a>: establishes the SSH tunnel to the jump server and then forwards traffic from the jump server to your database</li><li><a href="https://pypi.org/project/JayDeBeApi/">JayDeBeApi</a>: creates a JBDC connection to the database</li></ul><p>It should be noted that <a href="https://pypi.org/project/pymssql/">pymssql</a> and <a href="https://pypi.org/project/pyodbc/">pyodbc</a> libraries do not work when forwarding traffic through a jump-server. There seems to be a connection issue wherein they can create a tunneled connection to the server but <strong>only</strong> if the database is not specified. In turn, this causes you to connect to the default database, <strong>dbo</strong>. Because of this I suggest that you use the JDBC connection when connecting to a SQL Server database through an SSH tunnel.</p><p>Connections to the remote database can be made with three steps:</p><h4>1. Download the Jar</h4><p>The SQL Server .jar can be downloaded <a href="https://docs.microsoft.com/en-us/sql/connect/jdbc/download-microsoft-jdbc-driver-for-sql-server?view=sql-server-ver15">here</a>. I will be placing the file in my <strong>/tmp/ </strong>directory for this tutorial.</p><h4>2. Install the libraries in a virtual environment</h4><p>I have listed specific versions for the two libraries to ensure compatibility but you may be able to use more recent ones.</p><pre>virtualenv sqlserverssh<br>source sqlserverssh/bin/activate<br>pip install sshtunnel==0.1.5 JayDeBeApi==1.2.3</pre><h4>3. Test the connection</h4><p>You will need a few values from your jump server and database, namely:</p><ul><li>Jump server host or IP address and port (should be 22 for SSH)</li><li>Jump server username and password/private key</li><li>Database server or IP address (should be 1433 for SQL Server)</li><li>Database name</li><li>Database username</li><li>Database password</li></ul><p>Now, before getting to the actual code, there is one very important rule that must be followed when connecting through an SSH tunnel on Azure: the username must be in the <strong>&lt;username&gt;@&lt;server&gt;</strong> format. For example, if your username is <em>my_user</em> and your Azure server is <em>mysqlserver.database.windows.net</em> then your full username should be defined as <strong>my_user@mysqlserver.database.windows.net</strong>. You can use this fully qualified username even when not connecting through a jump server but it is not required.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/7003d5120650f76da495ee5a5768d1dd/href">https://medium.com/media/7003d5120650f76da495ee5a5768d1dd/href</a></iframe><p>After you add your jump server and database variables you should see this output when you run the script:</p><pre>Connected!!<br>[(1,)]</pre><p>There are a plethora of additional <a href="https://docs.microsoft.com/en-us/sql/connect/jdbc/setting-the-connection-properties?view=sql-server-ver15">parameters</a> you can pass in with the JDBC connection which you should use to tailor your SQL Server connection..</p><h3>How Does This Work?</h3><p>Instead of sending traffic directly to your database you will instead send it to a port on your local host that has been used to establish an SSH session with the jump server. Once your traffic reaches the jump server the SSH tunnel gives instructions for where it should be routed next — in this instance it routes traffic to the database.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=17de859caca5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Six Ways to Improve Your Data Scientist — Data Engineer Partnership]]></title>
            <link>https://medium.com/swlh/six-ways-to-improve-your-data-scientist-data-engineer-partnership-4f6572f4d585?source=rss-411c2c9fa8------2</link>
            <guid isPermaLink="false">https://medium.com/p/4f6572f4d585</guid>
            <category><![CDATA[data]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Grant Seward]]></dc:creator>
            <pubDate>Mon, 09 Nov 2020 14:41:36 GMT</pubDate>
            <atom:updated>2020-11-18T20:44:18.577Z</atom:updated>
            <content:encoded><![CDATA[<h3>Six Ways to Improve Your Data Scientist — Data Engineer Partnership</h3><p>Data Engineers and Data Scientists are two peas in a pod, right? Both roles are designed to have the same purpose: to extract more value out of data. With such a clear purpose, why does it seem like there are often challenges when these two roles come together to solve a problem?</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*MR4rOztg494c-7E6" /><figcaption><a href="https://www.pexels.com/photo/black-and-white-people-bar-men-4417/">Photo</a> by Gratisography from Pexels</figcaption></figure><p>Data scientists and data engineers have very different backgrounds that drive the fundamental ways in which they approach problem solving. The context in which they learn and grow to become either a data engineer or a data scientist is what makes each strong at their respective positions. However, this is also the core problem with many data scientists — data engineer interactions.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ElNY9-dCluNVZN9k" /><figcaption>Image by Author</figcaption></figure><p>I like to think that these differences represent opportunities rather than barriers: for improved team performance, happier management and — most importantly — personal growth. Here are six tried and true methods to improving your data science — data engineer interactions:</p><h3>1. Cross-train for self-sufficiency</h3><p>Far too many companies create silos around the specific roles within their data teams. Data engineers create new data, orchestrate pipelines, and ensure data is available in the warehouse. Scientists query this data, curate features, train a model and hand the process back over to the data engineer to put into production. In turn, the engineers make the code more performant; the scientists says that it invalidates the feature. The interaction goes back and forth until neither side is happy and a sub-par product is delivered.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*PZQFBe--0DXSgpJdFaUbCg.png" /><figcaption>(<a href="https://www.pexels.com/photo/mad-formal-executive-man-yelling-at-camera-3760790/">Photo</a> by <a href="https://www.pexels.com/@olly?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Andrea Piacquadio</a> from <a href="https://www.pexels.com/photo/mad-formal-executive-man-yelling-at-camera-3760790/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a>)</figcaption></figure><p>It is my opinion that complete self-sufficiency for data-scientists <em>should</em> be the goal for every company. This is not to say that data scientists will never need engineering support. This particular goal is always going to be a moving target as the technology to create features evolves, new modeling libraries are introduced and teammates rotate through different teams. Individuals have their own specializations within teams and it only makes sense to structure work in a way that plays into your specialists’ strengths.</p><p>Cross training for self-sufficiency is fundamentally about removing the 80% of interactions that do not require specialist knowledge. For example, data engineers could train their data scientist partners on how to:</p><ul><li>Optimize common SQL access patterns</li><li>How to manage memory (<em>especially</em> if Pandas must be used)</li><li>Improve performance by uploading in-memory files to S3 instead of writing to disk first</li><li>Create simple REST endpoints for their model</li></ul><p>Once the data science team is trained, the burden of completing these tasks can be shifted away from the engineers. This further enables data engineers to spend more time building the frameworks that simplify feature creation or model deployment for the data scientists.</p><p>Cross training should happen both ways and data scientists should be helping their engineering colleagues learn as well. A few ares I’ve found to be most beneficial for engineering focus are:</p><ul><li>Interpreting basic model output and feature importance</li><li>It is much easier to have a conversation about the performance tradeoff for a given feature if you know it only contributes 1.5% to the model versus 30%</li><li>An understanding of different algorithms and when they may be useful</li><li>There are many off-the-shelf models that engineers can leverage as easily as they would call an API; data engineers can augment the data science delivery with these models to rapidly deliver new products</li></ul><h3>2. Give feedback and check each other’s work</h3><p>Data scientists and engineers generally work to build data products together; it should only make sense that teammates are following up to verify the product that their colleagues produce. Code reviews are the first thing that comes to mind and they are a great starting point, especially as you consider how data engineers can use pull requests as baseline examples for how their data scientists partners may replicate a similar feature in the future. Here are other practical ways that each role can validate and provide feedback to the other:</p><p><strong>Data Scientists</strong>:</p><ul><li>Perform data quality checks when new pipelines are created and periodically for the lifetime of a data pipeline</li><li>Request early feedback on feature engineering methods to reduce the risk of having to make late-stage tradeoffs due to technical complexity</li></ul><p><strong>Data Engineers</strong>:</p><ul><li>Ensure that models deployed to production can handle unexpected inputs (e.g. extreme values, nulls, non-numeric values)</li><li>Initiate conversations about the velocity of data to understand the frequency and cadence that it will be used for modeling and analytics</li></ul><h3>3. Share common goals</h3><p>The ways that data scientists and data engineers work can be drastically different. Engineers tend to focus more on day-to-day or wee-to-week deliverables, organized within sprints. Scientists, on the other hand, have more open-ended analytical cycles that may last several weeks to months depending on the problem they are trying to solve. When considering that most organizations align scientists and engineers in different reporting hierarchies the different delivery cadence can create disjointed priorities between individuals.</p><p>Typical goals may look like:</p><ul><li><strong>Data Engineers</strong>: “<em>build a data pipeline to ingest data from X, transform it and place it in Y database every Z [timeframe]”</em></li><li><strong>Data Scientists</strong>: “<em>develop a model that predicts churn with at least X precision and can identify at least Y of users that will churn in the next Z days</em>”</li></ul><p>While these goals are aimed at solving the same problem they promote individualism instead of a unified target. Create a shared objective that both parties can contribute to. Data scientists and engineers will naturally gravitate toward filling the gaps with their preferred skill sets while simultaneously being incentivized to help each other. Problem scopes for each person change from “<em>what do I need to do”</em> to “<em>what do we need to accomplish”</em>. The most important aspect here is that it drives teammates to ask each other “<em>what do you need</em>” and “<em>how can I help you</em>” which breaks down individualism by promoting team-first delivery.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*scGvHPNW6fNHl9Iq" /><figcaption><strong>Teamwork! </strong>(<a href="https://www.pexels.com/photo/photo-of-people-doing-fist-bump-3184430/">Photo</a> by <a href="https://www.pexels.com/@fauxels?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">fauxels</a> from <a href="https://www.pexels.com/photo/photo-of-people-doing-fist-bump-3184430/?utm_content=attributionCopyText&amp;utm_medium=referral&amp;utm_source=pexels">Pexels</a>)</figcaption></figure><p>Some of the common problem and goal definitions I’ve seen work well in the past are:</p><ul><li>Customers leave too frequently, decrease churn by 20%</li><li>CAC is too high because users do not complete the application, increase the application completed rate by 50%</li><li>Engagement is the main revenue driver, increase engagement by 5%</li></ul><h3>4. Get a mentor in the other role</h3><p>Mentorship in any form is an excellent way to augment knowledge by learning from someone else’s experience. I find that mentors between the data science and engineering job families bring an extra level of nuance from tangential perspectives within the same problem space. Having more one-on-one time with individuals in the other role will, fundamentally, build basic relationships which will support overall engagement, but the real value will come through a growth in non-technical skills. There are a few specific areas in which each role can learn from each other:</p><p><strong>Data Engineers</strong>:</p><ul><li><strong>Influence and sales</strong>: Data scientists are, <em>generally</em>, better at communicating outcomes, using data to drive decisions, and structuring results to be easily interpreted. They practice this more often so it only makes sense that this skill is more highly refined. You can pick up these skills from a strong data science mentor and use them to help influence your data science partners in your day-to-day work.</li><li><strong>Think about how data is used, not created</strong>: Engineers can sometimes focus too much on how data is being created and where they need to store the data. Unfortunately, the perspective of “<em>how will this data be used?</em>” and “<em>what implications will this have to the queries that the data scientist and analysts write?</em>” is not taken into account. Look for a mentor who can help articulate this and give you practical examples for how to solve problems from both the data creation and data usage perspectives.</li></ul><p><strong>Data Scientists</strong>:</p><ul><li><strong>Planning and coordination</strong>: One strength that many data engineers have is the ability to define a clear set of sequential dependencies that are required to solve a problem. This problem solving approach stems from day-to0day development and also applies to more abstract job functions such as defining a data architecture. Learning how to approach problems from this perspective from a mentor can help data scientists engage more during a feature’s planning phase and can reduce the risk of identifying a requirement or major change after work is well under way.</li><li><strong>Delivering on MVP</strong>: Developers tend to have a clear idea of what a true minimum viable product is and it’s easy to articulate because features are binary: they exist or they don’t. Statistics is not that straightforward; there are many considerations that tend to draw out the delivery time for data scientists from business impact from model performance to the unknown unknown when starting to research how to build a model. However, defining MVP is a mindset and a strong engineer who understands the basics of the ML lifecycle will be a strong counterweight to balance your opinions and inject new ideas as you work to determine what is truly minimum.</li></ul><h3>5. Keep metadata up to date</h3><p>Metadata may be the most undervalued data that companies today are creating. It has tremendous value to both data scientists and data engineers and, most importantly, it helps both groups operate more efficiently!</p><p>Consider a typical interaction model between an engineer and a scientist when a data pipeline is being updated:</p><ul><li><strong>Engineer 1</strong>: I need to find out who is using the data that this pipeline creates; I’ll ask my teammate</li><li><strong>Engineer 2</strong>: I know that this data is sent to the data lake, you may want to ask the data scientist how it is being used</li><li><strong>Data Scientist</strong>: I just joined the team two weeks ago, I think that this data is being used for an ops dashboard</li><li><strong>Engineer 1</strong>: We need to remove the “<em>cust_active_dt</em>” field since the upstream API no longer has that value, do you know if it is being used?</li><li><strong>Data Scientist</strong>: I don’t think so but I would need to go back and check the code</li></ul><p>What a headache. There are so many unknown factors and the potential impact to business operations are highly dependent on research that may yield inconclusive results. Metadata can completely remove this ambiguity and save time for all three individuals in this process.</p><p>Let’s consider that this team has a data catalog and their typical development lifecycle includes updating the catalog with any new changes that are made. In this scenario the engineer could have checked the data lineage within the data catalog to see both A) what downstream systems and processes are impacted and B) that the “<em>cust_active_dt</em>” field has a synonymous value in the same pipeline and removing this field would have minimal impact on the business because all downstream processes can just point to the other field.</p><p>There is no silver-bullet data catalog that will completely solve this problem. The most important factor here is the commitment between the two primary data stakeholders: data engineers and data scientists. Keeping metadata up to date can be challenging but it is a long-term investment in your data and in your team.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*pV8Rg44J5IjX6pGj" /><figcaption><em>Image via Andertoons under license to Grant Seward</em></figcaption></figure><p>There are tools that can help enable you to manage metadata better, such as Tree Schema’s <a href="https://treeschema.com/">Data Catalog</a>, which can automatically populate your data catalog and includes a Python client for engineers and scientists to <a href="https://treeschema.com/blog/data-lineage-api/">manage data lineage as code</a>. Alternatively, open source data catalogs such as <a href="https://github.com/amundsen-io/amundsen">Amundsen</a> and <a href="https://github.com/linkedin/datahub">Data Hub</a> are also available options. Each of these tools has their own strengths, but you can only extract value from metadata if it is up to date and that requires a dual effort from both data creators (engineers) and data users (scientists).</p><h3>6. Participate in Hackathons together</h3><p>There is no better way to pick up new skills and try all of those algorithms and techniques you’ve stuffed into your <strong>TODO</strong> bookmarks folder than to stretch yourself in a hackathon. For scientists and engineers alike this is the perfect opportunity to blur the line between the roles even further and to get hands-on experience creating new skills.</p><p>Hackathons have traditionally been engineering focused but there has been a clear shift from what I’ve seen over the past few years to bring analytics into the fold. There are clever ways to curate datasets within a hackathon so that even the initial product has a solid base for analytics; simplified web scraping and publicly available APIs and data assets have enabled more data science interactions within hackathons. Building these integrations into the MVP is a fantastic way for scientists to understand the basics of development. Google alone has several high quality ML APIs:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/318/1*JCPrmgKBxsED5d_jWbNVEA.png" /><figcaption>Google ML APIs (Icons provided by <a href="https://cloud.google.com/icons">ARCHITECTURAL DIAGRAMS</a>)</figcaption></figure><p>The advent of machine learning as a service also provides the ability for engineers to scratch their ML itch when hacking together a product in just a few days. Developers looking for more of a challenge may look to implement a reinforcement learning or genetic algorithm that will help their product continue to learn on its own.</p><p>The spirit of the hackathon is that everyone chips in to do what is necessary. Hackathons provide an open environment where participants learn new skills and build strong relationships with each other.</p><h3>Closing Thoughts</h3><p>Whether your data science and data engineering teams are already hyper efficient or they are struggling to deliver a single product to production there is always room for improvement. One common theme among all of these suggestions is to learn from each other. At the end of the day you’re either a data scientist or a data engineer and both of those jobs are incredibly fun! Spend time to understand how your colleagues work and think, and get more enjoyment from your collaborative work efforts.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=4f6572f4d585" width="1" height="1" alt=""><hr><p><a href="https://medium.com/swlh/six-ways-to-improve-your-data-scientist-data-engineer-partnership-4f6572f4d585">Six Ways to Improve Your Data Scientist — Data Engineer Partnership</a> was originally published in <a href="https://medium.com/swlh">The Startup</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>