<?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 Anoop Sharma on Medium]]></title>
        <description><![CDATA[Stories by Anoop Sharma on Medium]]></description>
        <link>https://medium.com/@asanoop24?source=rss-fbd0e06454ae------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*IajvarH1ylKP169a.</url>
            <title>Stories by Anoop Sharma on Medium</title>
            <link>https://medium.com/@asanoop24?source=rss-fbd0e06454ae------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 04 Dec 2026 23:23:29 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@asanoop24/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[Make your Dagster deployment faster and easier with Dagmate.]]></title>
            <link>https://medium.com/@asanoop24/make-your-dagster-deployment-faster-and-easier-with-dagger-3d8ebc5a5e92?source=rss-fbd0e06454ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/3d8ebc5a5e92</guid>
            <category><![CDATA[mlops]]></category>
            <category><![CDATA[deployment-pipelines]]></category>
            <category><![CDATA[ml-pipeline]]></category>
            <category><![CDATA[dagster]]></category>
            <category><![CDATA[dagmate]]></category>
            <dc:creator><![CDATA[Anoop Sharma]]></dc:creator>
            <pubDate>Sat, 14 May 2022 09:48:16 GMT</pubDate>
            <atom:updated>2022-05-27T10:23:22.580Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*lHzzYL5xOI18aa_3dmv0Jg.png" /><figcaption>Image Source: <a href="https://miro.medium.com/max/1050/1*9LRipRmMbYDUiZKQWbkckg.png">https://miro.medium.com/max/1050/1*9LRipRmMbYDUiZKQWbkckg.png</a></figcaption></figure><p>This article is meant for someone who is looking to deploy their ML, ETL or any other task pipeline using <strong>dagster. </strong>Or if you are still in process of choosing a production level workflow orchestration tool, I’d strongly suggest dagster as one of the options. You can read more about it <a href="https://dagster.io/">here</a>. Also, this article assumes that you have a basic idea of how dagster works. If not, please give it read before continuing with this article.</p><p>Assuming that you’ve chosen dagster as your way forward, let’s quickly recap primary components involved in any dagster workflow.</p><p><em>NOTE: I’ll be covering only a very basic view of dagster here. It has lot more components and features which are not under the purview of this article such as resources, assets and more.</em></p><ul><li>An <strong>op </strong>(solid in previous versions)<strong> </strong>is the most basic unit of any dagster deployment. It can essentially be understood as one of the steps in the workflow.</li><li>A <strong>job/graph </strong>is defined as a combination of ops in a certain order with some <strong>dependencies </strong>on each other. These dependencies can be <strong>parameter-based</strong> (input of an op is sourced from the output of the previous op) or <strong>order-based</strong> (start of an op is dependent on the completion of the previous op).</li><li>A <strong>repository </strong>is a combination of jobs which are supposed to be executed eventually as different workflows. For example, in a data science project, a repository could contain the following jobs — extraction, preprocessing, training and inference.</li></ul><p>Writing and stitching all these components together in your script to deploy your workflow can be a tedious task at times. Understanding the technicalities and debugging the issues can be frustrating too.</p><p>To be clear, dagster has an amazing documentation which can very easily guide you in implementing all of the above components but it can still be a time consuming process to understand the technicalities and debugging the issues once you start to start slightly more complex graphs and jobs, especially if you’re someone who would rather spend that time somewhere else. For example, if you’re a data scientist, you’d be better off using that time in iterating and improving upon your model. This is where <strong>dagmate </strong>comes in.</p><p><strong>Dagmate </strong>is a library that does all the workflow stuff (e.g. writing ops, defining dependency graphs, loading them onto repositories) in the background for you so you can focus on what you want. All you need to provide is an easy-to-write YAML config file which contains details around the different workflows in a project, steps in a workflow and their inter-dependencies. And that’s it. You’re done with the configuration. Now, you can just run <a href="https://docs.dagster.io/concepts/dagit/dagit#dagit-ui">dagit</a> as you’d normally do to load the dagster UI and you’ll able to see all your jobs and steps in the UI without you having to write any of it yourself.</p><p><strong>Dagmate </strong>is really easy to setup and use as well. It has just 4 key steps:</p><ol><li>Install dagmate</li><li>Write YAML config file</li><li>Activate dagmate from a python script</li><li>Run dagit</li></ol><h3>1. Install dagmate</h3><pre><strong>pip install dagmate</strong></pre><h3>2. Write YAML config file for your project</h3><p>Here is a sample config file:</p><pre># sample project<br># it has 1 workflow - SampleWorkflow<br><strong>project:</strong> <strong>SampleProject</strong><br><strong>workflows:</strong><br>  # sample workflow<br>  # it has 2 steps - a, b<br>  <strong>- name:</strong> <strong>SampleWorkflow</strong><br>    <strong>steps:</strong><br>      # step a executes method fn_a in module ./src/training/a.py<br>      # it has no dependencies and returns 2 outputs -&gt; x1, x2<br>      <strong>- name:</strong> <strong>a</strong><br>        <strong>module:</strong> <strong>./src/training/a.py</strong><br>        <strong>function:</strong> <strong>fn_a</strong><br>        <strong>dependencies:</strong> <strong>null</strong><br>        <strong>return:<br>          - x1<br>          - x2</strong><br>      # step b executes method fn_b in module /src/training/b.py<br>      # it has no dependencies and returns no outputs<br>      <strong>- name:</strong> <strong>b</strong><br>       <strong> module: ./src/training/b.py</strong><br>        <strong>function:</strong> <strong>fn_b</strong><br>        <strong>dependencies:</strong> <strong>null</strong><br>        <strong>return:</strong> <strong>null</strong></pre><h3>3. Activate dagmate from your main script</h3><pre><strong># main.py<br>from dagmate.core import Dagmate</strong></pre><pre><strong>config_file = &quot;./conf/config.yml&quot;<br>mate = Dagmate(config_file)</strong></pre><pre><strong>mate.activate()</strong></pre><h3>4. Run dagit from your terminal</h3><pre><strong>dagit -f main.py</strong></pre><h4>That’s it. You’re done.</h4><h4>You should be able to view your workflow as a dagster repository in the dagit UI.</h4><blockquote>Please note that this article covers only basic deployment technique. For a production level deployment though, you’d want to use docker to containerize all the different components. If you switch to the branch <em>docker </em>in the github repo, you’ll see the instructions for docker based deployment as well. I’ll also write a separate article explaining the same.</blockquote><p>Thanks for reading this through. If you have any questions, please post it here. Will try my best to answer it.</p><p>If you like using dagmate and think it made your work easier, please appreciate it by starring the <a href="https://github.com/asanoop24/dagmate"><strong>github repo</strong></a>.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3d8ebc5a5e92" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Deploy Angular 2/4/6 App on Google App Engine]]></title>
            <link>https://medium.com/@asanoop24/deploying-angular-6-app-on-google-app-engine-b6259d4c16c2?source=rss-fbd0e06454ae------2</link>
            <guid isPermaLink="false">https://medium.com/p/b6259d4c16c2</guid>
            <category><![CDATA[deployment]]></category>
            <category><![CDATA[google-app-engine]]></category>
            <category><![CDATA[deploy]]></category>
            <category><![CDATA[angular-4]]></category>
            <category><![CDATA[google-cloud-platform]]></category>
            <dc:creator><![CDATA[Anoop Sharma]]></dc:creator>
            <pubDate>Wed, 20 Jun 2018 19:01:26 GMT</pubDate>
            <atom:updated>2018-08-20T20:14:15.311Z</atom:updated>
            <cc:license>https://creativecommons.org/publicdomain/mark/1.0/</cc:license>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/1*wku0gTFQv2xzFjTNmxW2rw.png" /></figure><p>I am relatively new to the Cloud Platforms such as <strong>Google Cloud Platform</strong>, <strong>AWS, Microsoft Azure</strong> and had been struggling to deploy my applications over there. This article is for everyone who’s going through the same issue.</p><p>I had developed an <strong>Angular </strong>application recently with <strong>NodeJS</strong> as back-end and had been trying to deploy that on <strong>Google Cloud Platform (GCP)</strong>. It took me about 50 articles and a hell lot of googling to find out exactly what needed to be done to deploy a simple Angular App on <strong>GCP</strong>. Hope you avoid going through all that trouble after reading this article.</p><p>Basically, Google offers 2 options to deploy your application:</p><ol><li><strong>Google App Engine</strong></li><li><strong>Google Compute Engine</strong></li></ol><p>In this article, I will be focusing on deployment using <strong>Google App Engine</strong>, where Google manages the infrastructure for you. You just need to upload your files to the Storage and then let Google do all the heavy-lifting for you. So let’s get started!</p><h4>Simply follow these 4 steps in order to deploy your angular application on Google App Engine:</h4><h3>1. Build your Angular App</h3><p>Go to your Angular App directory and run the following command to make your app production ready</p><pre>ng build --prod</pre><p>This will create a <strong>dist </strong>folder in your project directory. The contents of the folder should basically look like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/369/1*OdbLVNBaXZlC9nafcftNgQ.png" /><figcaption>dist folder</figcaption></figure><h3>2. Create Config file</h3><p>Now you have to create a config file for your project that will be used by Google Cloud App Engine to deploy the project.</p><p>Create a blank file in your project directory and name it as <strong>app.yaml</strong></p><p>Paste the following contents as it is in the file:</p><pre>runtime: python27<br>api_version: 1<br>threadsafe: true</pre><pre>handlers:</pre><pre>- url: /<br>  static_files: dist/index.html<br>  upload: dist/index.html</pre><pre>- url: /<br>  static_dir: dist</pre><p>Now, your app is ready to be deployed. The next step would be to make your Google Cloud ready for deployment. So let’s go ahead and do that.</p><h3>3. Setting up Google Cloud</h3><ul><li>Assuming that you already have a Google account. Go to the <a href="https://console.cloud.google.com/"><em>Google Cloud Console</em></a> and login with your Google account.</li><li>Create a new project for your angular app deployment e.g. <em>angular-app-gcp</em></li><li>In that project, create a <a href="https://console.cloud.google.com/storage/browser">Google Storage Bucket</a>. You can search for it in the Search bar provided or just the follow this <a href="https://console.cloud.google.com/storage/create-bucket">link</a>.</li><li>Name your bucket something e.g. <em>angular-app-bucket</em> and leave the rest of things as default and click on create.</li></ul><p>Now your cloud is almost setup. You just need to upload your angular production build into this bucket and deploy it. Let’s see how to do that.</p><h3>4. Deploying the Application using Cloud Shell</h3><ul><li>Go to the bucket you just created (<em>angular-app-bucket</em>) on the cloud console</li><li>Select the <strong>Upload Files </strong>option there and upload your <strong>dist </strong>folder as well your <strong>app.yaml </strong>file. The folder structure inside your bucket should be as follows:</li></ul><pre>app.yaml<br><strong>dist/</strong></pre><ul><li>Now, open the Google Cloud Interactive Shell. It is an in-browser terminal window provided by Google for your project</li><li>Once you are connected to the Cloud Shell, Create a directory there for your app e.g. <em>angular-app-gcp</em></li><li>Now you need to sync your data from your bucket into this directory. Use the following command for that:</li></ul><pre>gsutil rsync -r gs://angular-app-bucket ./angular-app-gcp</pre><ul><li>You’re almost done. Now simply deploy your application using the following command:</li></ul><pre>gcloud app deploy</pre><ul><li>You will be asked for the zone/region where you’d like the App Engine to host your application. Select any zone.</li><li>After that, it will take a couple of minutes to deploy your application and will give you link where you can access it. The link will be of the form <a href="https://angular-app-gcp.appspot.com/"><em>https://angular-app-gcp.appspot.com</em></a></li></ul><p>Hope this was helpful and saved you a lot of time googling all this stuff. There are a couple of more ways to deploy your angular application. Will cover those in next articles. Please post any questions below in the comments section. Will be glad to answer.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b6259d4c16c2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>