<?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 Anirban Mukherjee on Medium]]></title>
        <description><![CDATA[Stories by Anirban Mukherjee on Medium]]></description>
        <link>https://medium.com/@anirbana79?source=rss-7e8973c7587e------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*heyOrkbubKLCvGqU</url>
            <title>Stories by Anirban Mukherjee on Medium</title>
            <link>https://medium.com/@anirbana79?source=rss-7e8973c7587e------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Thu, 03 Dec 2026 13:14:48 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@anirbana79/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[Snowflake caching]]></title>
            <link>https://medium.com/@anirbana79/snowflake-caching-f311284b0ebb?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/f311284b0ebb</guid>
            <category><![CDATA[snowflake-computing]]></category>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Mon, 31 Oct 2022 14:21:08 GMT</pubDate>
            <atom:updated>2022-11-14T17:07:02.850Z</atom:updated>
            <content:encoded><![CDATA[<p>Points which we are going to discuss today?</p><p><em>(a)How does snowflake cache works, (b) types of caching, (c) and what was its limits..</em></p><p><strong>How does snowflake works:</strong></p><blockquote>We know that the snowflake consists of 3 layer architecture having different roles to get the relevant result to the users. So whenever we fired any query for the first time to get the result in snowflake, It can goes to cloud services layer where service layer will do query optimization , create execution plan and submits this plan to all virtual warehouse nodes. virtual warehouse pulls data from data storage layer by using mechanism like, “(where it will first download tables files <strong>HEADER </strong>from all the table files, based on the metadata information in the <strong>HEADER </strong>file, table files(Micro-partitions) will be scanned)”. And finally get back to cloud service layer with final result which user required.</blockquote><p><strong>Note → During this above event the result is stored as well as in Local Disk cache which is associated with computation layer and Result cache which is associated in cloud service layer.</strong></p><p><strong>Types of Cache</strong></p><p>(a) Remote disk cache , (b) Local disk cache , (c) Result cache</p><p>we can understand this topic from below image.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YSRUIoM7I7bPHI2UnLxF8A.png" /><figcaption>caching in snowflake</figcaption></figure><p>a) <strong>Remote Disk</strong> cache is nothing but, Blob storage area like awss3 , AZURE blob storage, or GCP cloud storage. where raw data get stored and whenever we run the query for the first time then virtual warehouse pulls that data from storage layer for processing and send that result into cloud service layer where user can able to get the result in their result pain.</p><p>b) <strong>Local Disk Cache</strong>:- Local Disk Cache is the associated with computation layer where result get stored after the first time of query execution. But as soon as warehouse get suspended then the result from Local disk cache purged.</p><p>c) <strong>Result Cache</strong>:- Whenever the final result send by computation layer to service layer then result get stored in result cache layer, result cache layer belongs with service layer it helps user when it uses same command for second time then there is no need of computation layer for processing. Cloud service layer generates result by using data stored in Result Cache. Which avoided the cost generate due to computation for processing.</p><blockquote>Note : → If Result cache is disabled by the user using syntax</blockquote><blockquote>“alter session set USE_CACHED_RESULT = TRUE”;</blockquote><p>Then the result will generate by using Local Disk cache but here computation power required to achieve the result, when the same command is fired for second time.</p><p>But user unable to disable Remote disk and Local Disk cache.</p><p><strong>Limits of Result Cache &amp; Local Disk cache</strong></p><p>Result cache layer holds query result for 24 hours but whenever query fire in 23 hour then the time span of Result cache is carry forward for next 24hours from there, whereas the Local Disk Cache holds the data as long as the warehouse is in active state. If the warehouse gets suspended then the result gets purged.</p><p>There is no need for any computation power to get the result from Result Cache layer, Whereas Result from Local disk cache need computation power to get the result.</p><blockquote>Note: → If the data being changed or updated then again data get retrieve by following through whole mechanism which discuss earlier.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f311284b0ebb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Top Interview questions of Sql]]></title>
            <link>https://medium.com/@anirbana79/top-interview-questions-of-sql-6604e646ac04?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/6604e646ac04</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Tue, 03 May 2022 13:01:31 GMT</pubDate>
            <atom:updated>2022-05-03T13:01:31.389Z</atom:updated>
            <content:encoded><![CDATA[<p>Q) How to find duplicates in a table?</p><p>Ans)syntax is :</p><p>select emp_id, count(1) from emp group by emp_id having count(1)&gt;1</p><p><em>Note :- If anybody want to find the duplicate in two columns then both columns name have to be specify.</em></p><p>Q) How to delete duplicates from a table?</p><p>Ans) Let assume we have a table of employee and in employee table employee id reflects duplicates id’s if we want to delete both the duplicate id’s from table then what would be the syntax in sql is:</p><blockquote>with cte as (select *, row_number() over(partition by emp_id order by emp_id) as rn from emp)</blockquote><blockquote>delete from cte where rn&gt;1</blockquote><p>run this syntax runs in assembled way.</p><p>Q) Difference between union and union all?</p><p>Ans) Whenever we use union between two tables it remove all the duplicates and capture the accurate data. But in union all it can capture all the data by keeping duplicates as well in the output table.</p><p>For Example:-</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/968/1*jXXMkLyAXUQxQWlEbst_ZA.png" /><figcaption>Fig showing the for Diff b/w Union and Union All</figcaption></figure><p>Syntax:-</p><blockquote>Select Manager_ID from emp1</blockquote><blockquote>union</blockquote><blockquote>Select Manager_Id from emp2</blockquote><p>Q) Employees who are not present in department Table?</p><p>Ans) Here we will describe to how we find out the result of above question in two forms</p><p>syntax 1: Using of subqueries</p><p>select * from emp where department_Id not in (select dept_id from dept)</p><p>This is the one way to find this by the performance of subqueries in quite low.</p><p>So we go through another approach of Left Join</p><blockquote>select emp.emp_name, dept.dept_name ,dept.dept_id,emp.department from emp</blockquote><blockquote><strong>Left Join</strong> dept on emp.department _id = dept.dep_id</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6604e646ac04" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Incremental Load and Full Load in Redshift]]></title>
            <link>https://medium.com/@anirbana79/incremental-load-and-full-load-in-redshift-e4a2b63d40c7?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/e4a2b63d40c7</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Tue, 03 May 2022 12:19:39 GMT</pubDate>
            <atom:updated>2022-05-03T12:19:39.903Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>Component Use</strong> :- Apache Ni-fi , AWS services (s3 and Redshift), Quick sight and web application.</p><p><strong>Workflow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/339/1*G6WZpna3dtIga6hpqvPkMQ.png" /><figcaption>Project workflow</figcaption></figure><p><strong>Workflow Description</strong></p><p>Data comes to s3 data lake as a csv format from SAP Hana server in which Apache NiFi jobs are scheduled to run once a day for storing latest data came for processing.</p><p>Redshift expands its data warehouse query to S3 data lake and stored into its data base so that when user’s need to know the updated summary of data simultaneously they may search it from web application which is built by our developer team and in the other hand stored data in redshift is used for quick sight as well for deep insights of business SOP’s.</p><p>After process of all the data in S3 it may stored into s3 archive folder so that if any historical data is required to use in future then we may extract it directly from redshift. Because as we know Redshift is data warehouse but it able to expand its query into data lake also .and data lake stored current as well as historical data.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e4a2b63d40c7" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Interview questions of Aws s3]]></title>
            <link>https://medium.com/@anirbana79/interview-questions-of-aws-s3-cc5e6ef231be?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/cc5e6ef231be</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 12:37:18 GMT</pubDate>
            <atom:updated>2022-04-28T12:37:18.097Z</atom:updated>
            <content:encoded><![CDATA[<h3>Q1) What are the prerequisites for using AWS SDK S3 with a Spring Boot app?</h3><p>1. Aws account</p><p>2.Aws security credentials :- these are the access keys which is use to call AWS api programmatically. You get this credentials in two ways got setting and check root account provided aws keys. Or other wise you will create an IAM role to during creating of user it provide credentials of IAM console.</p><p>3.Aws region :- Due to decreasing of latency of uses of service it reduces our cost as well</p><p>4. aws s3 bucket :- need bucket to stored the files..</p><h3>Q2) <strong>what is the difference between s3 and s3 bucket</strong>?</h3><p>s3 is a service of object storage provided by aws partner and aws s3 bucket is a public object store service similar to the folder.</p><h3>Q3) Is S3 a DFS?</h3><p>No it is not. It is a binary object storage that stores data in a key-value pair .<em> </em>Each bucket is a new “database”, with keys being your “folder path” and values being the binary objects (files), It’s presented like a file system and people tend to use it like one.</p><h3><strong>Q4) What is the default S3 bucket policy?</strong></h3><p>Both Amazon S3 buckets and objects are private by default<em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cc5e6ef231be" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CREATION OF AUTOMATED WORKFLOW FOR AMDOCS DATA]]></title>
            <link>https://medium.com/@anirbana79/creation-of-automated-workflow-for-amdocs-data-581aa0c5c83?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/581aa0c5c83</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 08:51:03 GMT</pubDate>
            <atom:updated>2022-04-28T11:17:12.627Z</atom:updated>
            <content:encoded><![CDATA[<p>In this project a automated workflow create in Azure DeVos organization service where we build one repo consisting all the transformation scripts written on SQL and storage destination script which written in YAML scripts.</p><p><strong>Project Aim</strong></p><p>Amdocs data which are mounted on Databricks and some SQL scripts written for transformation of that data, need to store in snowflake data ware house to built the dashboard by using Tableau.</p><p><strong>How it works</strong></p><p>Fist of all whenever new data came , Data engineers need to wrote some transformation scripts of mounted data and push into the repo which is created for automate the workflow. Then as soon data engineers upload the notebook in the repo ,Pipeline automatic triggers for doing transformation and store data into snowflake and after that Tableau automatically trigger that data for data analysis for making dashboard.</p><p>It works automatically whenever Data engineers push their scripts into the repo for interchanging the data behavior.</p><p><strong>Key Responsibility</strong></p><ol><li>create a variables for Databricks, Snowflake and Tableau to automate the whole process as soon as the data came and making dashboard in Tableau</li><li>In Databricks we need to specify the configuration set up credentials where we use <strong>ANTLR</strong> dependency which helps to communicate with Databricks that which cluster we need to perform , which notebook we need to process by specifying cluster name, path of folder and folder name where notebook located(where transformation scripts situated) and cluster id that which cluster id it need to be triggered.</li><li>Wrote an <strong>YAML</strong> script for giving instruction for where actually to deploy the transformed data. <strong>YAML</strong> scripts contains which branch we have to trigger ,folder which contains SQL scripts , <strong>instance type where pipeline will execute</strong> and s<strong>chema change tools</strong> which is used for contain the SQL scripts written in repo and executes in snowflake and keep tracking that which developer scripts execution has happened.</li></ol><p><em>Note :- “schema change is simply python based tool to manage snowflake object. Schema change is a single python script it can be executed as follows:”</em></p><blockquote>schemachange -f $(PROJECT_FOLDER)/snowchange-project -a $(SF_ACCOUNT) -u $(SF_USERNAME) -r $(SF_ROLE) -w $(SF_WAREHOUSE) -d $(SF_DATABASE) -c $(SF_DATABASE).SCHEMACHANGE.CHANGE_HISTORY — create-change-history-table</blockquote><blockquote>env:</blockquote><blockquote>SNOWFLAKE_PASSWORD: $(SF_PASSWORD)</blockquote><p>4. Specify the <strong>Tableau command line utility to automate site administration task on Tableau server</strong> , server URL, login credentials and bat script(which include directory path and files). To gather the snowflake data and built a dash board.</p><p><strong>Workflow Diagram</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*C8RU8dxDMEaOQ6eWH1m1bg.png" /><figcaption><strong>Workflow Diagram of Azure Data pipeline</strong></figcaption></figure><p><em>Important Notes :- “ And developers are uploading Tableau Workbooks, Databricks Notebooks and SQL Scripts to the repo because they don’t have access to production”</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=581aa0c5c83" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Block Storage Vs Object storage Vs file storage]]></title>
            <link>https://medium.com/@anirbana79/block-storage-vs-object-storage-vs-file-storage-b3149adbe61?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/b3149adbe61</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Thu, 28 Apr 2022 06:16:38 GMT</pubDate>
            <atom:updated>2022-04-28T12:41:39.520Z</atom:updated>
            <content:encoded><![CDATA[<p>I am here to describe all three storage, how does it works and which storage is more precise to use.</p><p><strong>Block Storage</strong></p><p>In block storage data get stored into a fixed sized chunks called blocks . The application makes SCSI calls to identify the correct path of blocks to organize them and form complete file . Block storage don’t have meta data associated with the data blocks so that’s why if the data is not stored in local or it would be stored in any other application then it can lead to more latency to fetch the data and organized a complete form of file.</p><p><strong>Object storage</strong></p><p>As compare to block storage , object storage is much newer approach for data storage because data is bundled with customizable metadata tags and unique identifier to form object. Due to meta data tags and unique identifier it is reliable to easily scale out.</p><p>Unique identifier allow us for better identification and classification of data so that you can easily search for specific object even if the data is not easily searched by itself</p><p><strong>File storage</strong></p><p>No doubt if we performing an operation regarding big data and high stream throughput then we must have to use the object storage , But instead of that if we are performing to scale out smaller files then the file storage is come into the picture because it cannot handle the large amount of petabytes data which object storage does . File storage performs best in smaller files.</p><p>we can able to put our files in folders and nested them under more folders to form of set path , In this way files are organized in an hierarchy with directories and subdirectories, for this the what metadata associated with files like name, the data it was created and the last modified date of the files .</p><p>So in this way we have to use the storage system as per our requirements which is more faceable for which data to store in which storage system.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b3149adbe61" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AIRFLOW AND ITS BASIC FEATURES IN AIRFLOW UI]]></title>
            <link>https://medium.com/@anirbana79/airflow-and-its-basic-features-in-airflow-ui-2e47b91bf13e?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e47b91bf13e</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Thu, 31 Mar 2022 13:15:44 GMT</pubDate>
            <atom:updated>2022-03-31T16:03:55.483Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="Airflow installation and overview of Airflow UI" src="https://cdn-images-1.medium.com/max/378/1*xGsfWJIrs_FVaKttj8P4Yg.png" /></figure><p><strong><em>Introduction</em></strong></p><p>Airflow is created by Airbnb people and later on it was open source to apache, so now anyone can download as an opensource project from apache website and you can install it in your system. It is kind of a job scheduler which is particular kind of a frame work which help IT peoples schedule your jobs and these jobs contain multiple task internally and these task are defined as part of Dag.</p><p><strong>Dag</strong></p><p>Dag is Directed acyclic graph means it is a standard term which is used to describe a graph when there are no cycles , so graph with ought any cycles ,means loops .Means nodes in such a way that first nodes is back to second and second nodes is back to first so when this happens its detected as a cyclic ,But in Airflow loops cannot sustain in workflow it means every task have its dependency if one task fails then it cannot transfer to next task.</p><p><strong>Benefits</strong></p><p>a) Dynamic :- Our Dag is completely dynamic cause while defining a Dag we need to define “<strong>configuration as code</strong>” so you need to configure your pipeline using code configuration and programing language we use python. There are 4–5 steps which we need to follow while defining Dag. It is very much customizable so it is very much flexible in nature. It is not hard and fast tools that you have to define flow in a particular manner. You can have your own flow and you can code it a configuration file.</p><p>b) Extensible :- It means it has lots of extensions available which supports execution of different type of task. You can have any kind of task like shell script, It could be you big database logic, It could be your cloud base logics or It could be your custom code. So anything you can think of as a part of task.</p><p>c) Scalability :- This is the most important where most of the framework fails. So this could be a failure point in your custom implementation but what is the advantage of airflow is that it is highly scalable. You can configure infinite number of tasks as part of your Dag. So Dag can consists of infinite task. Airflow supports this using couple of frameworks. That it has executors implementation internally which helps you to scale to infinite task and every task internally gets executed on the worker node which could be your different machine.</p><h3>How To Start Running Apache Airflow in Docker</h3><p><strong>Docker Installation</strong></p><h4>Set up the repository</h4><p>Install packages and setup a stable repository</p><pre>sudo dnf -y install dnf-plugins-core</pre><pre>dnf config-manager \<br>    --add-repo \<br>    https://download.docker.com/linux/fedora/docker-ce.repo</pre><p><strong>Installation of docker Engine</strong></p><p>Install the latest version of docker engine</p><pre> install docker-ce docker-ce-cli containerd.io</pre><p><strong>Starting the docker</strong></p><pre>sudo systemctl start docker</pre><p>Verify that Docker Engine is installed correctly by running the hello-world image.</p><pre>sudo docker run hello-world</pre><h4>Now we are move forward to Install Airflow and host it locally</h4><p>To deploy airflow on Docker we will download docker-compose.yaml using command.</p><p>curl -LfO ‘<a href="https://airflow.apache.org/docs/apache-airflow/2.2.4/docker-compose.yaml&#39;">https://airflow.apache.org/docs/apache-airflow/2.2.4/docker-compose.yaml&#39;</a></p><p>docker-compose.yaml file content the instruction of perquisites required to run Airflow.</p><p>it looks like :-</p><pre><strong>#docker-compose.yml</strong>version: &#39;3.8&#39;<br>services:<br>    postgres:<br>        image: postgres<br>        environment:<br>            - POSTGRES_USER=airflow<br>            - POSTGRES_PASSWORD=airflow<br>            - POSTGRES_DB=airflow<br>    scheduler:<br>        image: apache/airflow<br>        command: scheduler<br>        restart_policy:<br>            condition: on-failure<br>        depends_on:<br>            - postgres<br>        env_file:<br>            - .env<br>        volumes:<br>            - ./dags:/opt/airflow/dags<br>            - ./logs:/opt/airflow/logs<br>    webserver:<br>        image: apache/airflow<br>        entrypoint: ./scripts/entrypoint.sh<br>        restart_policy:<br>            condition: on-failure<br>        depends_on:<br>            - postgres<br>            - scheduler<br>        env_file:<br>            - .env<br>        volumes:<br>            - ./dags:/opt/airflow/dags<br>            - ./logs:/opt/airflow/logs<br>            - ./scripts:/opt/airflow/scripts<br>        ports:<br>            - &quot;8080:8080&quot;</pre><pre><strong>#entrypoint.sh</strong>#!/usr/bin/env bash<br>airflow initdb<br>airflow webserver</pre><pre><strong>#.env</strong>AIRFLOW__CORE__SQL_ALCHEMY_CONN=postgresql+psycopg2://airflow:airflow@postgres/airflow<br>AIRFLOW__CORE__EXECUTOR=CeleryExecutor</pre><pre><strong>#dummy_dag.py</strong>from airflow import DAG<br>from airflow.operators.dummy_operator import DummyOperator<br>from datetime import datetimewith DAG(&#39;example_dag&#39;, start_date=datetime(2016, 1, 1)) as dag:<br>    op = DummyOperator(task_id=&#39;op&#39;)</pre><p><strong>Initialize the database</strong></p><p>We need to create user account first to run the command</p><p><strong>docker-compose up airflow-init</strong></p><p>After initialization is complete then it shows like</p><pre>airflow-init_1       | Upgrades done<br>airflow-init_1       | Admin user airflow created<br>airflow-init_1       | 2.2.4<br>start_airflow-init_1 exited with code 0</pre><p><strong>Running Airflow</strong></p><p>Now you can run all the services</p><p><strong>$docker-compose up</strong></p><p>Positioning in the root directory and executing <strong>“docker-compose up” </strong>in the terminal should make airflow accessible on <a href="http://localhost:8080/">localhost:8080</a>.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*70RpVZTdWZT8BoGS_2zIpA.png" /></figure><p>Now open another terminal and show how the container working using</p><p>$docker ps</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*262Ymk3wx2KBXOTC1OsseQ.png" /></figure><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2e47b91bf13e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[AUTOMATE GOOGLE CLOUD USING TERRAFORM]]></title>
            <link>https://medium.com/@anirbana79/automate-google-cloud-using-terraform-eafc0d82f421?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/eafc0d82f421</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Thu, 31 Mar 2022 06:15:56 GMT</pubDate>
            <atom:updated>2022-03-31T06:15:56.907Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>USE CASE :-</strong></p><ol><li>BUILT A BUCKET USING TERRAFORM SCRIPT IN GCP STORAGE</li><li>BUILT A TERRAFORM SCRIPT FOR BUILT AN UBUNTU SERVER AND GIVE PROVISION FROM SCRIPT</li><li>BUILT A SCRIPT TO CREATE CLOUD FUNCTION AND STORE THE PYTHON FILE IN GCP BUCKET</li></ol><p><strong>COMPONENT USED</strong></p><ol><li>FEDORA SERVER :- WHERE TERRAFORM APPLICATION INSTALLED</li><li>GCP ACCOUNT FOR VALIDATION</li></ol><p><strong>WORKFLOW</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/958/1*26rFSXsGVOGPuts36tGSWg.png" /></figure><p><strong>SOURCE TO BUIL CODE AND AUTHOURIZATION KEYS</strong></p><p><strong>main.tf</strong></p><ol><li><a href="http://gcp.americaniche.com/"><strong>http://gcp.americaniche.com/</strong></a></li><li><a href="https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance"><strong>https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/compute_instance</strong></a></li></ol><p><strong>Key.json</strong></p><p>GCP ACCOUNT IAM SERVICE ACCOUNT My project Manage keys</p><p><strong>Advantages :</strong></p><p>Using infrastructure as a code we are able to orchestrate the multiple resources of any cloud platform for deploying any work.</p><p>Terraform is not restricted to a single cloud provider we are able to switch very easily from GCP to AWS and AWS to Azzure.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=eafc0d82f421" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[PROJECT DEMO]]></title>
            <link>https://medium.com/@anirbana79/project-demo-70e91d53e8b5?source=rss-7e8973c7587e------2</link>
            <guid isPermaLink="false">https://medium.com/p/70e91d53e8b5</guid>
            <dc:creator><![CDATA[Anirban Mukherjee]]></dc:creator>
            <pubDate>Wed, 23 Mar 2022 18:55:08 GMT</pubDate>
            <atom:updated>2022-03-24T03:05:24.838Z</atom:updated>
            <content:encoded><![CDATA[<p>I will discuss ,how to automate the <strong>EDI files</strong> from source to GCS bucket</p><p><strong>What is EDI files?</strong></p><p>It is one type of business documents in some standard format which is used to interchange for intercompany communication. EDI is standard electronic format which replaces the paper based documents such as purchase order ,invoices which help organization in respect of cost and time.</p><p><strong>Components used in this project ?</strong></p><p><strong>IAP Desktop</strong> :- Remote Server is the secure way to remote virtual machines which we have in google cloud.</p><p><strong>GCS Bucket :- </strong>To store the raw file in .csv format with original file name in a cloud storage for further process .Because in cloud storage what the file remains ,it is easily readable .</p><p><strong>Programing Language</strong></p><p>Python :- Python is use for automate the triggering of .bat file where batch script is written for which EDI files and converting it into .Dat files and after that it will convert ,.Dat file to .csv format</p><p><strong>USE cases</strong></p><p><em>AUTOMATION OF EDI FILES FROM SOURCE TO GCS BUCKET USING ONE PYTHON FILE WHICH INVOKES MULTIPLE BATCH FILE TO MOVE FILES<br>BETWEEN DIRECTORIES AND RUNS PROEDI SOFTWARE (WHICH TRANSLATES THE FILE) AND DUMPS IT INTO GCS BUCKET.</em></p><p><strong>Workflow</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*3j09YMb-Wk2LNUIpsPVJzA.png" /></figure><p>Step 1 :- MODA SERVER TO ON PREMISE SERVER</p><p>Moda server triggers Runs at intervals of 3 hours a day. Task schedular invokes a Batch file (c\Directory\abc.bat) and put the file in Sync folder.</p><p>Step 2:- Sync folder to Staging Area</p><p>Once we receive the file in our sync folder, we have to rename the file because PROEDI can only read a file which has 8character name. Whole the process done by python script by triggering batch script (.bat) where all information store’s regarding file name like what is the extension what is the naming convention of new file.</p><p>proedi has its own source and destination directory</p><p>source — C:\Directory\Staging Area<br>destination — C:\Directory\Raw folder</p><p><strong>Step 3 :- EDIN folder to Raw folder (.Dat to .csv)</strong></p><p>Now this steps require to change the file type and arranged the data in a readable manner.</p><p><strong>Step 4:- store csv file into GCS bucket</strong></p><p>This is the final and last step which carries the .csv file and stored into the GCS bucket in raw/MODA/partner name/.</p><p><strong>Note :- Instruction came for whole the process through python script where all the path either it has source and destination .</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70e91d53e8b5" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>