<?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 Subhajit Chowdhury on Medium]]></title>
        <description><![CDATA[Stories by Subhajit Chowdhury on Medium]]></description>
        <link>https://medium.com/@subhajitchowdhury?source=rss-6af0eefb7d77------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*zU7AhO6dKSg15AHp_dczJw.png</url>
            <title>Stories by Subhajit Chowdhury on Medium</title>
            <link>https://medium.com/@subhajitchowdhury?source=rss-6af0eefb7d77------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 18:47:26 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@subhajitchowdhury/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[I Built an Agentic AI Pipeline on Databricks: Vector Search on Product PDFs, Plus SQL Tools for an…]]></title>
            <link>https://subhajitchowdhury.medium.com/i-built-an-agentic-ai-pipeline-on-databricks-vector-search-on-product-pdfs-plus-sql-tools-for-an-a60581fcaa32?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/a60581fcaa32</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[vector-search]]></category>
            <category><![CDATA[rags]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[pyspark]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Sat, 14 Nov 2026 12:33:52 GMT</pubDate>
            <atom:updated>2026-11-14T12:33:52.315Z</atom:updated>
            <content:encoded><![CDATA[<h3>I Built an Agentic AI Pipeline on Databricks: Vector Search on Product PDFs, Plus SQL Tools for an LLM</h3><p>Nov 14, 2026 · <a href="https://medium.com/u/6af0eefb7d77">Subhajit Chowdhury</a></p><p>How I turned 509 product PDFs and three CSV files into a retrieval pipeline that an LLM can search and query on Databricks, and what broke along the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*XiRJt0AcDWHXAqo3CvTOqg.png" /></figure><h3>The problem: an assistant needs two kinds of knowledge</h3><p>Picture a support agent at an online store. A customer asks, “How do I set up my AccountEase Pro?” The answer sits in a PDF manual. Five minutes later, a second question arrives: “How many times has this customer contacted us about returns?” That answer sits in a database table.</p><p>A plain chatbot can see neither, so it falls back on general knowledge and may guess. An agentic assistant picks a source, calls a tool, and answers from what comes back.</p><p>I wanted to build that end to end and understand every piece of it. Here is the data I started with:</p><ul><li>509 product PDFs (manuals and documentation), all unstructured text.</li><li>products.csv: 553 rows with product ID, name, category and sub-category.</li><li>policies.csv: 6 company policies (return, refund, exchange, warranty, privacy, account cancellation).</li><li>cust_service_data.csv: 1,023 customer-service interactions, sample records with placeholder email addresses.</li></ul><p>The goal was easy to state: make the PDFs searchable by meaning, make the tables callable as functions, and hand both to an LLM as tools.</p><h3>What I built</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*6Dd54Akkrprw4fHu7H7-5g.png" /><figcaption><em>Target architecture. The data, retrieval and tool layers are built; serving, UI and tracing are next.</em></figcaption></figure><p>The pipeline has four stages, all running inside Databricks:</p><ol><li>Extract. Read the PDFs from a Unity Catalog Volume, pull out the text and store it in a Delta table.</li><li>Enrich. Join that text with product metadata (category, sub-category) and build one search-ready text field per product.</li><li>Retrieve. Index that field with Databricks Vector Search and query it with hybrid search.</li><li>Act. Wrap the structured tables in Unity Catalog SQL functions so an LLM can call them as tools.</li></ol><p>So the agent has two knowledge bases: a vector index for the documents and SQL functions for the tables.</p><p>One caveat before going further. This repo covers stages 1 to 4 and shows tool calling in the Databricks Playground. My architecture diagram also shows model serving, a chat app, MLflow tracing and agent memory, but I haven’t built those yet. They’re listed at the end under next steps.</p><p>The stack:</p><ul><li>Platform: Databricks Free Edition (notebooks, compute, Catalog Explorer, Playground)</li><li>Processing: PySpark and PyPDF2, for PDF text extraction and table joins</li><li>Storage: Delta Lake tables for the documents and the combined data</li><li>Governance: Unity Catalog, for the catalog, schema, Volume, tables and SQL functions</li><li>Retrieval: Databricks Vector Search, a Delta Sync index queried with hybrid (keyword plus vector) search</li><li>LLM access: databricks-gpt-oss-120b through AI Gateway from a notebook, and GPT OSS 120B in Playground</li></ul><h3>Steps 1 and 2: from PDFs to a search-ready Delta table</h3><p>Step 1, extract the text. Notebook 02_Parse_PDF_Docs.py lists every PDF in a Unity Catalog Volume, reads each one with PyPDF2, joins the pages into one string and uses the file name as product_name. The result goes into product_docs in overwrite mode.</p><pre># simplified from 02_Parse_PDF_Docs.py<br>reader = PyPDF2.PdfReader(io.BytesIO(pdf_bytes))<br>text = &quot;\n&quot;.join(page.extract_text() for page in reader.pages)</pre><p>Step 2, add the metadata. Text alone isn’t enough, because a manual doesn’t say which category its product belongs to. Notebook 03_Enrich_PDF_Files.py joins products and product_docs on product_name, then builds a single field called indexed_doc:</p><pre>&lt;product_category&gt;Clothing&lt;/product_category&gt;<br>&lt;product_sub_category&gt;Jackets&lt;/product_sub_category&gt;<br>&lt;product_name&gt;Arctic Luxe Thermal Parka&lt;/product_name&gt;<br>&lt;product_doc&gt;<br>...full extracted manual text...<br>&lt;/product_doc&gt;</pre><p>The tags put the category and name right next to the content. That context is stored in the index and comes back with each search result. The final table, product_docs_combined, holds product_id, product_name, product_doc, product_category, product_sub_category and indexed_doc.</p><p>The notebook ends with one more statement:</p><pre>ALTER TABLE agentic_catalog.agentic_schema.product_docs_combined<br>SET TBLPROPERTIES (delta.enableChangeDataFeed = true)</pre><p>This turns on Delta Change Data Feed, which a Delta Sync Vector Search index uses to track changes in its source table.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ID-gB2vIDNCivphbQaO06w.jpeg" /><figcaption><em>The combined table: product metadata next to the extracted PDF text.</em></figcaption></figure><h3>Step 3: hybrid search over the documents</h3><p>I created a Vector Search index named product_docs_index on a Vector Search endpoint called vs_endpoint_1. It is a <strong>Delta Sync</strong> index: its source is product_docs_combined, with indexed_doc as the text to search. In Catalog Explorer it shows as Online, with a triggered sync schedule and 550 rows indexed.</p><p>Why hybrid? Keyword and semantic search each fail in their own way.</p><p>Keyword search is precise on exact strings such as a product name (“AccountEase Pro”) but misses paraphrases. Semantic search understands meaning (“where can I find a tutorial”) but can blur exact model names. Hybrid runs both, so a single query can match the product and the intent.</p><p>Notebook 04_Query_VS_Index.py queries the index with the Python client, authenticating as a service principal (credentials come from environment variables, never from the code):</p><pre>vsc = VectorSearchClient(<br>    workspace_url=os.environ.get(&quot;WORKSPACE_URL&quot;),<br>    service_principal_client_id=os.environ.get(&quot;SP_CLIENT_ID&quot;),<br>    service_principal_client_secret=os.environ.get(&quot;SP_CLIENT_SECRET&quot;),<br>)</pre><pre>index = vsc.get_index(<br>    endpoint_name=&quot;vs_endpoint_1&quot;,<br>    index_name=&quot;agentic_catalog.agentic_schema.product_docs_index&quot;,<br>)</pre><pre>index.similarity_search(<br>    num_results=3,<br>    columns=[&quot;indexed_doc&quot;, &quot;product_id&quot;],<br>    query_text=&quot;where can i find tutorial for AccountEase Pro  product&quot;,<br>    query_type=&quot;HYBRID&quot;,<br>)</pre><p>The response returns the three best matches, each with indexed_doc, product_id and a relevance score. Because I pass query_text rather than a vector, the index itself turns the question into an embedding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hwDaDnpeoTvgdFdFXd7gXA.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yx6HJzDS5OgrUS2YqOzLWA.jpeg" /></figure><p><em>Top: the index in Catalog Explorer. Bottom: a hybrid query returning three results.</em></p><h3>Step 4: turning tables into tools</h3><p>Not every answer lives in a document. A return policy or a customer’s ticket history is a row in a table, and similarity search is the wrong way to fetch a row.</p><p>In notebook 05_Create_User_Defined_Functions.py I created two Unity Catalog SQL functions. Unity Catalog can expose a function like this as a tool an LLM may call, and it controls access to the function with Unity Catalog permissions.</p><pre>CREATE OR REPLACE FUNCTION agentic_catalog.agentic_schema.get_return_policy(<br>  policy_name STRING COMMENT &#39;Policy name to return. Example policies: Account Cancellation Policy, Exchange Policy, Refund Policy, Warranty Policy, Privacy Policy, Return Policy&#39;<br>)<br>RETURNS TABLE (policy STRING, policy_details STRING, last_updated DATE)<br>COMMENT &#39;Returns the details of the Return Policy&#39;<br>LANGUAGE SQL<br>RETURN (<br>  SELECT policy, policy_details, last_updated<br>  FROM agentic_catalog.agentic_schema.policies<br>  WHERE policy = policy_name<br>  LIMIT 1<br>);</pre><p>The second function, get_service_history(user_email), groups a customer&#39;s service records by issue_category and returns a count per category.</p><p>The part that matters most is the COMMENT text. To decide whether to call a tool and what to pass in, the model works from the function name, the description and the parameter comments, not from the SQL body. A useful description says what the function does, when to call it, what each parameter means and what comes back. Writing those comments is prompt engineering that happens to live in the database.</p><p>Both functions return tables, so the model gets structured rows back instead of free text.</p><h3>Seeing it work in the Playground</h3><p>In the Databricks Playground I attached three tools to the model: the vector search index, get_return_policy and get_service_history.</p><p>I asked about the return policy. The model called get_return_policy with policy_name = &quot;Return Policy&quot; and received this row from the policies table:</p><blockquote><em>Customers are entitled to return 12 items per calendar year and each must be within a period of 30 days from the date of purchase. (last updated 2023–01–15)</em></blockquote><p>That’s the whole agent loop in small: read the question, pick a tool, call it, answer from the result. I ran this on GPT OSS 120B (the system.ai.gpt-oss-120b endpoint, which has tools enabled).</p><p>This question also shows why one retrieval method isn’t enough. The policy lives in a table, not in a product manual, so it belongs behind a SQL function, not in the vector index.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*8wiU9aTXe2UjdvjdhI0Ncg.jpeg" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L26B24BKxn3B7f7tJ5ZeUA.jpeg" /></figure><p><em>Top: the three tools attached in Playground. Bottom: the model choosing get_return_policy.</em></p><h3>What went wrong, and what I learned</h3><p>After the pipeline “worked”, I went back and checked it against the data. I found four problems.</p><h3>1. A column name that overstates what it counts</h3><p>get_service_history returns a column called returns_last_12_months, but the SQL has no date filter. It counts every record for that email in each issue category. For the customer I tested, the function returned 23 under that label. A model reading that result can report it as a 12-month figure, and it isn&#39;t one: the sample data runs from May 2023 to July 2025, so as of November 2026 a real 12-month window would return nothing. All 23 Returns rows also belong to one customer.</p><p>A model will often take a column name at face value, so a misleading label can turn into a confident wrong answer. The fix is a date filter such as date_time &gt;= now() - INTERVAL 12 MONTHS (cast date_time to a timestamp first if it was loaded as a string), or an honest column name.</p><h3>2. A join key that is not unique</h3><p>products.csv has 553 rows but only 509 distinct product names, because 29 names appear more than once, which adds 44 extra rows. Joining on product_name fans out, which matches the 550 rows in the index. Those are joined rows, not 550 products: the same manual text gets indexed under more than one product ID. Three PDFs (<em>Advanced Algebra</em>, <em>Biology Today</em> and one edition of <em>Whispering Shadows</em>) never matched, because in the repo&#39;s files their names use _ where the product names use :. The inner join drops them without a warning.</p><p>Row counts tell the story. When 509 documents turn into 550 indexed rows, something is fanning out. Before any join I want to know whether the keys are unique, whether there are nulls or duplicates, whether the names follow one convention, and which rows found no match. Two queries would have caught both problems early:</p><pre>-- product names that appear more than once<br>SELECT product_name, count(*) AS n<br>FROM agentic_catalog.agentic_schema.products<br>GROUP BY product_name<br>HAVING count(*) &gt; 1;</pre><pre>-- documents with no matching product<br>SELECT d.product_name<br>FROM agentic_catalog.agentic_schema.product_docs d<br>LEFT ANTI JOIN agentic_catalog.agentic_schema.products p<br>  ON d.product_name = p.product_name;</pre><p>Next time I’ll deduplicate the product list and normalise the names before joining, and use a stable ID wherever one exists.</p><h3>3. No chunking yet</h3><p>My architecture diagram lists parsing and chunking, but the code stores each PDF as one row and indexes the whole text. A manual can hold installation steps, troubleshooting and specifications in one document, so a search can return a lot of unrelated text next to the useful part. The next step is to split manuals into passages with some overlap, and to keep the product ID, section and page number with each passage so it still has context when it comes back.</p><h3>4. Personal data in the sample</h3><p>cust_service_data.csv has names, emails, phone numbers and addresses. Even if the records are sample data, I treat them as sensitive: check where they came from, and mask or restrict them with Unity Catalog permissions before reuse.</p><p>One more limit: PyPDF2 only extracts text. Scanned pages or complex tables would need OCR or a layout-aware parser.</p><h3>What is next, and how to run it yourself</h3><p>The data, retrieval and tools work. What’s left is the part that turns this into a deployed product, and none of it is built yet:</p><ul><li>Fix the two data issues above: a real 12-month filter and a clean join.</li><li>Chunk the documents before indexing.</li><li>Model Serving: put the agent and its tools behind a REST endpoint.</li><li>A chat interface on Databricks Apps.</li><li>MLflow tracing, to log each reasoning step, tool call and token count.</li><li>Memory: session context in the short term, user history in the long term.</li><li>Retrieval tests: a fixed set of questions with known answers, instead of a few queries that happened to work.</li></ul><p>To run it yourself, the setup looks like this:</p><ol><li>Create the catalog agentic_catalog, the schema agentic_schema and a Volume named customer_service.</li><li>Upload the product PDFs to the Volume.</li><li>Load the three CSV files as tables named products, policies and cust_service_data.</li><li>Run notebook 2 (PDF extraction), then notebook 3 (enrichment).</li><li>Create a Vector Search endpoint and an index on product_docs_combined, with indexed_doc as the text column.</li><li>Run notebook 4 to query the index.</li><li>Run notebook 5 to create the SQL functions.</li><li>In Playground, attach the index and the two functions as tools and test.</li></ol><p>The repository README has the exact paths and settings.</p><h3>What I took away</h3><p>The pipeline returned results, and all four problems above were still in it. I only found them by comparing the output with the source tables. For me, reliability came from the data work: joins that keep the rows I expect, metadata that is accurate, and checks against the source tables.</p><p>Skills this project shows: PySpark and Delta Lake pipelines, Unity Catalog governance, Vector Search with hybrid retrieval, SQL functions as LLM tools, and checking my own work against the data.</p><p>Where it started: I was inspired by the public tutorial <em>Agentic AI for Beginners: Build an E2E Agentic Solution in Databricks Free Edition</em>. I built and ran the pipeline in my own workspace, then checked it against the data and wrote up the limits I found.</p><p>Code: <a href="https://github.com/Subhajit-Chowdhury/Enterprise-Grade-End-to-End-Agentic-AI-Solution">github.com/Subhajit-Chowdhury/Enterprise-Grade-End-to-End-Agentic-AI-Solution</a></p><p><em>I’m Subhajit Chowdhury, a data engineer with 4+ years of experience in data and AI. I hold the AWS Cloud Practitioner certification and am preparing for the AWS Certified Data Engineer — Associate exam. You can find me on </em><a href="https://www.linkedin.com/in/subhajit-dataengineer/"><em>LinkedIn</em></a><em>.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a60581fcaa32" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[We Helped Retire a 15-Year-Old MongoDB System. Here’s What That Actually Looked Like.]]></title>
            <link>https://subhajitchowdhury.medium.com/we-helped-retire-a-15-year-old-mongodb-system-heres-what-that-actually-looked-like-dc64b254f11e?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/dc64b254f11e</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-lakehouse]]></category>
            <category><![CDATA[mongodb]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Sat, 16 May 2026 19:11:18 GMT</pubDate>
            <atom:updated>2026-05-16T19:11:18.986Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The £487K annual saving wasn’t the goal. It was the result of doing something much simpler: stopping the bleeding.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dtHtQ_QYbNhFB1RvyuDhXQ.png" /></figure><p>There’s a category of infrastructure that nobody wants to talk about in data engineering.</p><p>Not the shiny Spark clusters. Not the real-time Kafka pipelines. Not the Databricks notebooks that everyone’s writing about on LinkedIn right now.</p><p>I’m talking about the old stuff. The systems that were built before cloud was a word anyone used in a business context. The databases that have been running in a data centre somewhere, quietly accumulating 15 years of records, kept alive by a maintenance contract that renews every year and a team of people whose entire job is to make sure the thing doesn’t fall over.</p><p>I worked on a project that touched exactly this kind of system. And I want to write about it honestly — not as a case study with clean slides, but as the messy, real engineering problem it actually was.</p><h3>The system we inherited</h3><p>The client had a MongoDB instance that had been running on-premises for around 15 years.</p><p>Let that sit for a moment. 15 years of data. 15 years of schema changes, business logic baked into queries, operational runbooks written by people who had long since left. The database had outlasted multiple technology cycles. It was adopted in MongoDB’s early commercial years, long before cloud-native data infrastructure became the default.</p><p>And it was expensive to keep alive.</p><p>Not because MongoDB is a bad database — it isn’t. But running any database on-premises at this scale, for this long, carries a cost that compounds quietly year after year:</p><ul><li><strong>Vendor licensing.</strong> Enterprise database licences don’t get cheaper with age.</li><li><strong>Data centre operations.</strong> Physical infrastructure means physical maintenance — hardware, cooling, space, power.</li><li><strong>Operational labour.</strong> Someone has to babysit the system. Patch it. Back it up. Respond at 2am when something goes wrong.</li><li><strong>Vendor support contracts.</strong> The kind that exist not because you’re actively using vendor support, but because you’re afraid of what happens if you don’t have it.</li></ul><p>None of these costs were outrageous individually. Together, across a year, they added up to roughly £487,000. Every year. For a system that, from a business perspective, was only needed for one thing: making data available to the people who needed it.</p><p>That was the problem we were asked to solve.</p><h3>Why migration is harder than it sounds</h3><p>The instinct when you hear “migrate a database to the cloud” is to think of it as a data movement problem. Export here, import there, done.</p><p>It’s not.</p><p>The actual problem is that a system running for 15 years in production has dependencies you can’t fully see until you start pulling on threads. Business processes built around its availability. Downstream consumers — dashboards, reports, calculations — that expect data to behave in a specific way. Historical records that are legally and operationally required to be preserved exactly as they are.</p><p>You don’t just move the database. You move everything that depends on it, at the same time, without breaking anything.</p><p>The team I was part of approached this in stages.</p><h3>Stage 1 — Getting the data out cleanly</h3><p>The first challenge was migration itself: moving around 15 years of MongoDB data from an on-premises data centre into AWS, without data loss and without disrupting the systems that were still reading from the source.</p><p>We used <strong>AWS Database Migration Service (DMS)</strong> for this.</p><p>DMS handles the physical complexity of reading from a source database and writing to a target. In our case, the source was the on-prem MongoDB instance and the target was <strong>Amazon S3</strong> — AWS’s object storage service. We weren’t migrating into another database. We were moving into object storage, because the goal wasn’t to replicate the old system in the cloud. It was to replace the entire pattern of how data was stored and accessed.</p><p>The entire historical dataset — every record accumulated over ~15 years of production use — landed in S3. Structured, preserved, accessible. No data loss. No gaps.</p><p>This is the part that’s easy to understate. Getting 15 years of production data out of an on-premises system cleanly, maintaining consistency throughout, is not a trivial operation. DMS handled the heavy lifting, but it required careful configuration: connection profiles, task settings, validation checks, monitoring to catch any row-count discrepancies between source and target as the migration ran.</p><p>Once the data was in S3, the on-premises MongoDB could be decommissioned. The data centre footprint — the hardware, the maintenance contracts, the vendor licences — started to wind down.</p><p>That’s where the £487K came from. Not from optimising a cloud bill. From eliminating an entire category of cost that existed only because the data had nowhere else to live.</p><h3>Stage 2 — Building what replaced it</h3><p>Moving the data was the prerequisite. The actual work was building the system that made it usable.</p><p>The historical data sitting in S3 is not useful on its own. People need dashboards. Business stakeholders need to run calculations on demand. Operations teams need reports. The business doesn’t care that data is “in the cloud” — they care that they can get what they need, when they need it, on whatever device they’re using.</p><p>We structured the data in S3 across multiple layers — each one serving a different purpose:</p><p><strong>Bronze layer:</strong> Raw ingested data exactly as it came from the source. No transformations. This is the source of truth. If something goes wrong downstream, you can always go back to bronze.</p><p><strong>Silver layer:</strong> Cleaned, validated, deduplicated data. This is where we applied transformation logic — standardising formats, handling nulls, reconciling records that had accumulated inconsistencies over 15 years of real-world use.</p><p><strong>Gold layer:</strong> Business-ready data. Aggregated, modelled, structured for the specific consumption patterns of the downstream teams — reporting, dashboards, ad hoc queries.</p><p>The multiple staging layers also served another purpose: recovery and data management. At each stage, the data is preserved independently. If a transformation job fails or produces bad output, you don’t lose the raw data. You fix the job and re-run. This is not how on-premises systems with tight storage budgets typically work — but S3 makes it cheap enough to be practical.</p><p><strong>A quick note on processing infrastructure — and a decision worth explaining.</strong></p><p>When you’re moving ~15 years of data and building transformation jobs on top of it, the natural question is: why Glue and not EMR?</p><p>It’s a fair question. Amazon EMR is the standard choice when you need distributed Spark processing at large scale — it gives you full control over your cluster configuration, instance types, bootstrap actions, and execution environment. For very large workloads where you need to tune aggressively, EMR is the right tool.</p><p>In this case, AWS Glue’s serverless model covered what we needed. The transformation logic — cleaning, deduplication, schema reconciliation across the layers — ran reliably within Glue’s managed environment without requiring us to size and manage a cluster. Glue handled the execution overhead so we could focus on the transformation logic itself.</p><p>That said, EMR is firmly on the roadmap. As query complexity grows and the data volumes continue to build on top of ~15 years of historical records, the case for moving heavier workloads to EMR becomes stronger. The architecture was deliberately designed so that migration path is available — the data is in S3 in Parquet format, which EMR reads natively. Switching the compute layer doesn’t require touching the storage layer. That flexibility was an intentional part of how we structured it.</p><h3>Stage 3 — Getting data to the people who need it</h3><p>The end consumers of this system are not data engineers. They’re business users, operations teams, and clients who need to see accurate information quickly — on a laptop in the office or a phone in a meeting.</p><p>We built the reporting and dashboard layer on <strong>Amazon QuickSight</strong>, connected to the processed data in S3.</p><p>The day-to-day view is straightforward: dashboards that refresh from the data in S3, available on desktop and mobile. Business stakeholders see the metrics they need without having to think about where the data comes from or how it gets there.</p><p>The more interesting pattern is the on-demand calculation flow.</p><p>When a business user needs a calculation that isn’t pre-built into a dashboard — a specific scenario, a one-off analysis, a calculation triggered by a particular business event — a <strong>Glue job</strong> is triggered on demand. The job pulls the relevant data from S3, runs the computation, and delivers the result back to the user through QuickSight.</p><p>This replaced a pattern that previously required someone to query the MongoDB instance directly, or export data and run calculations manually. Now it’s triggered, automated, and the result lands where the user already is.</p><h3>What the decommission actually means</h3><p>I want to be specific about this because it’s easy to abstract.</p><p>When we say the on-premises MongoDB system was decommissioned, we mean:</p><ul><li>Physical servers in a data centre are no longer running this workload</li><li>The operational team that maintained those servers no longer has this system on their plate</li><li>Vendor licence renewal conversations no longer happen</li><li>The maintenance contract for this database no longer exists</li><li>~15 years of data, previously locked in a system that required significant overhead to keep running, is now in S3 — managed by AWS, durable by design, accessible to the tools and users who need it</li></ul><p>The data centre labour, the vendor costs, the licensing, the operational overhead — collectively around £487,000 annually — is gone.</p><p>What replaced it is an S3 bucket, a set of Glue jobs, and QuickSight dashboards. The AWS bill for running this is a fraction of what the on-premises operation cost.</p><h3>What I took away from this</h3><p>I was one of several engineers on this project. I’m not going to pretend I designed the whole thing — I didn’t. But I was involved in building and operating it end to end, and a few things stuck with me.</p><p><strong>The cost wasn’t in the cloud migration. It was in the delay.</strong></p><p>Every year that system stayed on-premises was another £487K spent maintaining the status quo. The technology to move it existed years earlier. The barrier was organisational — getting alignment, understanding risk, planning the migration carefully enough that nothing broke. That’s not a criticism. It’s just the reality of how large organisations handle legacy systems. But the engineering lesson is that the expensive choice is often inaction, not change.</p><p><strong>Data in object storage is more durable than data in a managed database, at scale.</strong></p><p>This sounds counterintuitive. Databases feel more structured, more “managed.” But S3 at this scale, with proper organisation and the staging layers we described, is resilient in ways that a single on-premises database simply can’t be. AWS handles replication, availability, and durability. You don’t have to.</p><p><strong>The architecture is only as good as the consumption layer.</strong></p><p>The fanciest data lake in the world is useless if the people who need the data can’t get it. QuickSight being accessible on mobile wasn’t a nice-to-have — it was the point. The business stakeholder who needs to check a number before a client call is not going to VPN into a system and run a query. They’re going to open their phone. Building for that reality is the job.</p><h3>The stack, for reference</h3><p>For those who want the specifics:</p><ul><li><strong>Source:</strong> MongoDB (on-premises, ~15 years of accumulated production data)</li><li><strong>Migration:</strong> AWS Database Migration Service (DMS)</li><li><strong>Storage:</strong> Amazon S3 — Bronze / Silver / Gold layers</li><li><strong>Processing:</strong> AWS Glue (PySpark) for transformation jobs — serverless, no cluster management overhead</li><li><strong>On-demand compute:</strong> AWS Glue jobs triggered by business events</li><li><strong>Evaluated / roadmap:</strong> Amazon EMR — for heavier distributed workloads as volumes scale; the Parquet-on-S3 storage layer makes this a clean swap when needed</li><li><strong>Consumption:</strong> Amazon QuickSight (desktop and mobile dashboards)</li><li><strong>Data format:</strong> Parquet, with Delta Lake for ACID transactions and schema enforcement on the processed layers</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=dc64b254f11e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Instagram Feels Like It “Knows You”]]></title>
            <link>https://subhajitchowdhury.medium.com/why-instagram-feels-like-it-gets-you-c1e1ad6bfa54?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/c1e1ad6bfa54</guid>
            <category><![CDATA[instagram]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[recommendation-system]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Fri, 02 Jan 2026 10:17:59 GMT</pubDate>
            <atom:updated>2026-01-02T10:47:18.189Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>A quiet story of data, behavior, and careful engineering</strong></h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bSl8WvKdc9OFmNs2dXw7bQ.png" /></figure><p>Sometimes Instagram shows a reel and you pause.<br>Not because it is viral.<br>Not because it is loud.</p><blockquote><strong>But because it feels… <em>relevant</em>.</strong></blockquote><p>It matches your mood.<br>Your pace.<br>Your curiosity at that moment.</p><blockquote><strong>That feeling is not coincidence.<br>And it is not magic.</strong></blockquote><p>It is the result of “<strong>how ordinary human actions quietly become data”</strong>, and how that data is handled with discipline.</p><p>Let’s walk through that story — slowly, simply, and honestly…</p><h3>It always starts with a human, not an algorithm 👤</h3><blockquote>Someone opens Instagram during a short break.</blockquote><blockquote>They scroll a little.<br>They stop on one reel.<br>They skip another.</blockquote><blockquote>They like ❤️ something.<br>They share 🔁 something else.<br>They follow a creator.<br>They ignore ten posts without thinking.</blockquote><blockquote><strong><em>“Nothing special happens”…</em></strong></blockquote><p>And that is exactly the point.</p><p>From a data perspective, these actions are not opinions or emotions.<br>They are “<strong>signals of attention”</strong>.</p><blockquote>❌ Instagram does not ask <strong><em>why ?</em></strong><br>✅ It only records <strong><em>what</em></strong><em> happened</em>…!!!</blockquote><h3>Every action becomes a small, truthful event 🧾</h3><h4>Each interaction is captured as a simple event :</h4><ul><li>a reel was viewed 👀</li><li>watch time was short or long ⏱️</li><li>a like or share occurred ❤️🔁</li><li>feedback like <strong><em>Not Interested</em></strong> was given !!!</li></ul><h4><strong><em>Each event answers only four things :</em></strong></h4><ul><li><strong>who ?</strong></li><li><strong>what ?</strong></li><li><strong>when ?</strong></li><li><strong>on which content ?</strong></li></ul><blockquote>No interpretation yet.<br>Just facts.</blockquote><p><strong><em>“This is where data engineering truly begins”…</em></strong></p><h3>These events must arrive safely, in order, at massive scale 📦</h3><blockquote>Millions of people are doing this at the same time…</blockquote><p>So Instagram relies on <strong>distributed event ingestion systems</strong> — commonly built using tools like <strong>Kafka</strong> — to :</p><ul><li>✅ handle very high event volumes.</li><li>✅ preserve ordering where required.</li><li>✅ avoid data loss even during failures.</li></ul><h4>From a Data Engineer’s perspective :</h4><ul><li>✅ event schemas must be stable.</li><li>✅ producers and consumers must agree on contracts.</li><li>✅ late or duplicate events must be handled gracefully.</li></ul><blockquote>At this stage, the system is not “<strong>smart</strong>”.<br>It is <strong>reliable</strong>.</blockquote><h3>Recent behavior is processed fast — but carefully ⚡</h3><p>Some signals matter immediately.</p><p>If someone suddenly starts watching travel reels ✈️, the system should “<strong>notice”</strong> — but not “<strong>overreact”</strong>.</p><p>This is handled through <strong>stream processing</strong>, using engines such as:</p><ul><li>✅ Apache Flink</li><li>✅ Spark Streaming</li></ul><h4><strong>These pipelines compute :</strong></h4><ul><li>🧩 recent engagement strength .</li><li>🧩 freshness of interest .</li><li>🧩 short-term behavioral shifts .</li></ul><blockquote>The goal is not “<strong>prediction”</strong>.<br>It is “<strong>responsiveness without instability”</strong>.</blockquote><h3>Long-term behavior is handled with patience 🕰️</h3><p>At the same time, historical data flows through <strong>batch processing</strong>.</p><p>Using systems like <strong>Apache Spark</strong>, the platform learns:</p><ul><li>🧩 which interests persist over months ?</li><li>🧩 which topics repeatedly return ?</li><li>🧩 which patterns naturally fade ?</li></ul><p>Short-term data <strong>adapts</strong>.<br>Long-term data <strong>stabilizes</strong>.</p><blockquote><em>A good </em><strong><em>recommendation</em></strong><em> system needs </em><strong><em>both</em></strong><em> — and “a good </em><strong><em>Data Engineer </em></strong><em>ensures they stay aligned”.</em></blockquote><h3>Raw data is not useful until it is refined 🧹</h3><p>Before anything is used downstream, data must be:</p><ul><li>✅ validated</li><li>✅ deduplicated</li><li>✅ aggregated</li><li>✅ structured</li></ul><h4>This processed data is stored in :</h4><ul><li><strong>data lakes</strong> for scale and history .</li><li><strong>analytical warehouses</strong> for structured access .</li></ul><p>Often, signals are exposed through <strong>feature-ready datasets</strong> so downstream systems receive consistent and reliable inputs.</p><blockquote>This part is invisible to <strong>users</strong> — <br>but “this is where trust is built”.</blockquote><h3>Aftar that ranking begin 🎯</h3><p>After all this preparation, <strong>ranking systems</strong> decide:</p><ul><li>what content to consider ?</li><li>how relevant it might be ?</li><li>how to balance familiarity and discovery ?</li></ul><blockquote><strong>This layer depends entirely on the data foundation beneath it.</strong></blockquote><p>⌛ If ingestion is delayed,<br>🔗 if signals are noisy,<br>🛠️ if pipelines break —</p><p>recommendations may feel random.</p><p>But when data flows cleanly, they feel natural 🍀</p><h3>The feed appears — but nothing is final 🔁</h3><p>The feed is shown.<br>People react without thinking.</p><p>And the system listens again.</p><p>Every scroll, skip, like, share, or correction becomes:</p><ul><li>🧩 another event</li><li>🚦another signal</li><li>⚒️ another adjustment</li></ul><p>The loop continues.</p><blockquote>Quietly.<br>Continuously.</blockquote><h3>Why it feels emotionally connected ❤️</h3><p>Instagram does not understand emotions.</p><p>It understands <strong>patterns of attention over time</strong>.</p><p>When people:</p><ul><li>follow similar creators</li><li>engage with similar topics</li><li>interact within similar circles</li></ul><blockquote>✅ the system observes overlap.</blockquote><p>That <strong>overlap</strong> creates the feeling of being among <em>like-minded people</em> — something humans naturally seek to preserve energy and emotional balance.</p><p>In a world where many live far from family and friends,<br>social platforms become bridges.</p><p>Not because they feel — <br>but because <strong>data patterns reflect human behavior</strong>.</p><h3>A note on privacy 🔒</h3><p>Instagram does not:</p><ul><li>❌ listen through microphones</li><li>❌ watch through cameras</li><li>❌ read private messages</li></ul><p>The system relies on:</p><ul><li>✅ interaction events</li><li>✅ coarse signals such as region and language</li><li>✅ time-based usage patterns</li></ul><blockquote>At scale, this is sufficient.</blockquote><h3>The quiet work of Data Engineers 🧠</h3><p>Nothing here is flashy.</p><p>But everything here is intentional.</p><p>Data Engineers:</p><ul><li>⚙️ design event schemas</li><li>🏗️ build ingestion pipelines</li><li>⚒️ maintain streaming and batch systems</li><li>🖇️ ensure data quality and consistency</li></ul><p>When this work is done well, no one notices.</p><p>People simply say:<br>“Instagram feels relevant.”</p><blockquote>That is the highest compliment a data system can receive.</blockquote><h3>Final thought 🌱</h3><p>Instagram recommendations do not work because of a single algorithm.</p><p>They work because:</p><ul><li>✅ human behavior is respected</li><li>✅ data is handled carefully</li><li>✅ systems are built to learn gradually and continuously…</li></ul><p>Good data engineering does not shout.</p><p>It listens.</p><p>And that is why it feels realated to us.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=c1e1ad6bfa54" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Modernizing 20 Years of Enterprise Data Pipelines — My Journey as a Data Engineer from Legacy…]]></title>
            <link>https://subhajitchowdhury.medium.com/modernizing-20-years-of-enterprise-data-pipelines-my-journey-as-a-data-engineer-from-legacy-001fc1fe1ef3?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/001fc1fe1ef3</guid>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[oracle]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Fri, 12 Dec 2025 08:54:40 GMT</pubDate>
            <atom:updated>2025-12-12T09:46:24.417Z</atom:updated>
            <content:encoded><![CDATA[<h3>Modernizing nearly 20 Years of Enterprise Data Pipelines — My Journey as a Data Engineer from Legacy Chaos to Cloud-Native Clarity</h3><h4>When I entered the ecosystem, I didn’t start with “greenfield cloud projects” or shiny modern stacks.<br> I walked into a universe of <strong>2,000+ pipelines</strong>, built and evolved over nearly <strong>two decades</strong>.</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*t76s5qwQ8H3nibjjPWKLHg.png" /></figure><p>Some pipelines in our ecosystem were <strong>older than my age when I started</strong>.<br>Some had been quietly running for nearly <strong>20 years</strong>, powering thousands of daily business decisions.</p><blockquote>And somewhere inside that massive system, my journey began.<br>I didn’t just step into a project.<br>I stepped into a <strong>living ecosystem</strong> — 2000+ pipelines, countless source systems…<br>This is the story of how we transformed it — using practical engineering, careful planning, and cloud-native thinking — without breaking what was built over two decades.</blockquote><h3>🌱 1 . Understanding the Old World Before Fixing It</h3><blockquote>My first few months were not about writing code.<br>They were about <strong>listening to the ecosystem</strong>.</blockquote><ul><li>Who uses which data and why?</li><li>Why was Informatica PowerCenter designed this way?</li><li>What breaks often, and what never fails?</li><li>What can be retired, and what must be rebuilt?</li></ul><blockquote>Every workflow felt like reading someone else’s novel — except there were <strong>hundreds of authors</strong>, and the plot twisted with every change request.</blockquote><blockquote>In this project after working on 200+ pipelines (as part of a 10+ member engineering team), I slowly learned that <strong>legacy systems are not “bad.”</strong><br> They are simply <strong>a reflection of decades of business evolution</strong> — mergers, new products, regulatory changes, and architectural shifts.</blockquote><h4>The World I Stepped Into — Raw, Rigid, and Real</h4><p>Our landscape was a mix of everything:</p><ul><li>On-prem Oracle &amp; SQL Server</li><li>Legacy <strong>PowerCenter</strong> ETLs with nested transformations</li><li>API responses in JSON</li><li>CSV, fixed-width, log, and partner files</li><li>Unstructured documents</li><li>SFTP drops</li><li>Hard-coded filters, dependencies, and undocumented logic</li></ul><blockquote>Every dataset had a personality of its own.<br>Every pipeline behaved differently.<br>Understanding the <em>history</em> behind data became my first real task.</blockquote><blockquote>This was my classroom — the data itself taught me how systems grow, break, and survive.</blockquote><h3>⭐ 2. Why We Chose IICS Instead of PowerCenter for Cloud</h3><blockquote>A frequent question I was getting in my mind:<br><em>“Why not con</em>nect PowerCenter<em> directly to OCI and S3?”</em></blockquote><h4>Discovered that : Because <strong>PowerCenter isn’t built for cloud-native connectivity</strong>.</h4><ul><li>No native connector for <strong>AWS S3</strong></li><li>Limited direct support for <strong>Oracle DBCS on OCI</strong></li><li>Heavy on infra, patching, and admin</li><li>Not suitable for hybrid cloud movement</li></ul><h4><strong>IICS</strong>, on the other hand:</h4><ul><li>Has <strong>native S3 connector</strong> (we used it for all landings)</li><li>Supports <strong>Oracle DBCS</strong> connections reliably</li><li>Works seamlessly with Secure Agents</li><li>Handles APIs, files, SQL sources in one platform</li><li>Scales without infra overhead</li><li>Parameterized, modular, easy to promote Dev → QA → Prod</li></ul><blockquote>It wasn’t a “tool upgrade.”<br>It was an architectural requirement.</blockquote><h3>⭐ 3. Rebuilding 200+ Pipelines — The Heart of My Work</h3><p>Inside IICS, we rebuilt logic using real transformations with real purposes:</p><ul><li><strong>Lookup / Connected Lookup</strong> → enrich incoming records with reference data</li><li><strong>Unconnected Lookup</strong> → reusable checks inside expressions</li><li><strong>Joiner</strong> → merge data arriving from multiple systems</li><li><strong>Router</strong> → split business rules cleanly</li><li><strong>Filter</strong> → remove noise early</li><li><strong>Expression</strong> → standardize and derive new values</li><li><strong>Aggregator</strong> → prepare summary metrics</li><li><strong>Normalizer</strong> → convert multi-row structures</li><li><strong>Sequence Generator</strong> → create surrogate keys</li><li><strong>Union</strong> → merge similar datasets into a single flow</li><li><strong>Source/Target transformations</strong> → structured + semi-structured ingestion</li><li><strong>HTTP transformation</strong> → fetch API data</li><li><strong>Flatten transformation</strong> → handle nested JSON from APIs</li></ul><blockquote>Every pipeline had a reason.<br>Every transformation had a purpose.</blockquote><h3>⭐ 4. Designing CDC + Incremental Data Loads Properly</h3><blockquote>With 20 years of data, full reloads weren’t realistic.<br> So we built a <strong>practical, reliable CDC framework</strong>:</blockquote><h4>✔ Watermark Logic</h4><p>Tracked last_updated_timestamp to fetch only changed records.</p><h4>✔ MD5 Hash Comparison</h4><p>Detected real changes instead of blindly reloading.</p><h4>✔ Upsert Strategy</h4><ul><li>New → Insert</li><li>Modified → Update</li><li>Duplicate → Skip</li></ul><h4>✔ Row-Count Checks</h4><p>Source → Staging → DW<br>We reconciled every level before promoting.</p><blockquote>This ensured <strong>no duplication</strong>, <strong>no missing rows</strong>, and <strong>no silent corruption</strong>.</blockquote><h3>⭐ 5. S3 as Our Data Lake — The Practical Choice</h3><blockquote>We used <strong>AWS S3 Standard</strong> as the landing + staging layer because:</blockquote><h4>✔ It handles all file types</h4><p>CSV, JSON, fixed-width, logs, partner dumps.</p><h4>✔ Extremely durable + scalable</h4><p>Perfect for storing 20 years of historical + new data.</p><h4>✔ Cheap compared to database storage</h4><h4>✔ S3 Features We Used:</h4><ul><li><strong>S3 Standard storage class</strong> → best for daily-access data</li><li><strong>S3 Versioning</strong> → rollback safety</li><li><strong>S3 Bucket Policies &amp; IAM</strong> → strict access and governance</li><li><strong>IICS S3 Connector</strong> → fast, native integration</li></ul><blockquote>S3 wasn’t just “storage.”<br> It was our <strong>data lake</strong>, our backup, our audit history, our recovery safety net.</blockquote><h3>⭐ 6. Oracle Cloud (OCI) DBCS as Our Enterprise DW</h3><p>We used <strong>Oracle Database Cloud Service (DBCS)</strong> on OCI as our warehouse because:</p><ul><li>It matched existing enterprise skills</li><li>Easy migration from on-prem Oracle</li><li>Strong support for analytical queries</li><li>Stable performance for Fact/Dimension models</li><li>Native compatibility with IICS</li><li>Enterprise governance already aligned to Oracle</li></ul><p><strong>S3 = Landing &amp; Staging</strong><br><strong>Oracle DBCS = Curated Warehouse</strong></p><p>This hybrid pattern gave us speed + flexibility + governance.</p><h3>⭐ 7. SDLC, Quality, and Governance — The Part No One Talks About</h3><p>Every pipeline followed strict engineering steps:</p><ol><li><strong>Build mapping in IICS</strong></li><li><strong>Unit test</strong> against business rules</li><li><strong>Validate output</strong> with SMEs</li><li><strong>Document mapping logic</strong> in detail</li><li><strong>Sanity Test</strong> after deployment</li><li><strong>SIT</strong> with cross-system validation</li><li><strong>UAT</strong> with business users</li><li><strong>Prod release</strong> with checks</li><li><strong>Post-prod monitoring</strong></li></ol><blockquote>We followed <strong>Agile</strong> via <strong>Jira</strong> — solution designs, estimation, acceptance criteria, demos.<br><em>We also improved governance:</em></blockquote><ul><li>Fixed inconsistent business rules</li><li>Added missing lineage</li><li>Introduced naming standards</li><li>Improved validation rules</li><li>Cleaned undocumented logic</li></ul><blockquote><strong>This turned chaos into clarity.</strong></blockquote><h3>⭐ 8. My Learning as a Data Engineer</h3><p>This project taught me:</p><ul><li>Old systems deserve <em>respect</em> — they survived for a reason.</li><li>Cloud isn’t magic; it’s careful design.</li><li>Simple solutions → stable pipelines.</li><li>Documentation isn’t extra; it is engineering.</li><li>Clean data earns trust.</li><li>A Data Engineer’s job is not building pipelines — <br> <strong>it’s building reliability for an entire organization.</strong></li></ul><blockquote>My 200+ pipelines were small contributors to a massive ecosystem,<br>but each added stability, quality, and clarity to a near 20-years of journey.</blockquote><h3>⭐ 9. A Question for You ?</h3><blockquote>Just curious:</blockquote><p>👉 <strong>When designing a modern data platform, how do you personally decide what belongs in the Data Lake and what belongs in the Data Warehouse?</strong></p><blockquote>I’d love to learn how others approach this balance.</blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=001fc1fe1ef3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Ever Wondered How PW Calls You Within Minutes After Browsing a Course?]]></title>
            <link>https://subhajitchowdhury.medium.com/ever-wondered-how-pw-calls-you-within-minutes-after-browsing-a-course-a60164aef7ee?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/a60164aef7ee</guid>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[education-technology]]></category>
            <category><![CDATA[real-time-data]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Wed, 10 Dec 2025 06:14:11 GMT</pubDate>
            <atom:updated>2025-12-12T09:39:40.200Z</atom:updated>
            <content:encoded><![CDATA[<h3>Ever Wondered How a Data Engineer Connects Your Daily Digital Life… Without You Noticing?</h3><blockquote>Suppose you browse a course on PW, search something on their app, or revisit the same course twice — within minutes you get a call:</blockquote><blockquote><strong>“Hi, we noticed you’re exploring GATE. Can we help?”</strong></blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*zfupyCCvod8is7M8Rrndfg.png" /></figure><p>It feels personal.<br>It feels instant.<br>And most people think: <strong><em>“Are they watching my screen?”</em></strong></p><p>The truth is far more fascinating — <br>It’s <strong>Data Engineering quietly orchestrating every moment of that experience</strong>.</p><p>Let me take you behind the curtain.<br>No jargon. No exaggeration. Just how it <em>actually</em> works.👇</p><h3>📌 1. The Moment You Browse a Course — The Story Begins</h3><p>Let’s say you open the <strong>PW</strong> app and browse a <strong>GATE</strong> course.</p><p>The instant you view the course page, the app generates a tiny “<strong>event</strong>”:</p><pre>Event: Course_Viewed<br>Course: GATE<br>User_ID: 56789<br>Timestamp: 12:31:04</pre><p>This event is automatically sent into a real-time stream like <strong>Kafka</strong>, <strong>Kinesis</strong>, or <strong>Pub/Sub</strong> — <br> think of it as a <strong>fast-moving digital conveyor belt</strong> carrying millions of such actions every day.</p><h3>📌 2. The Pipeline That Never Sleeps</h3><p>A real-time processing engine — such as <strong>Apache Flink</strong> or <strong>Spark Structured Streaming</strong> — picks up your event instantly.</p><p>It checks:</p><ul><li>Are you a registered user?</li><li>What’s your name?</li><li>What did you browse?</li><li>Is this your first time visiting this course?</li><li>Did you view pricing? Syllabus? Faculty?</li><li>Did you stay on the page for long?</li></ul><blockquote><strong>Nothing intrusive.<br>Just the natural signals from your own actions.</strong></blockquote><p>This is how the system detects <strong>intent</strong>:<br>🧩 <strong><em>Curious? Browsing? Confused? Comparing?</em></strong></p><h3>📌 3. The Decision Engine — Where the Magic Happens</h3><p>A simple rule engine processes your activity:</p><p><strong>If:</strong></p><ul><li>User browsed GATE</li><li>User viewed it multiple times</li><li>User is logged in</li><li>Contact info is verified</li></ul><p><strong>Then:</strong><br>✅ Mark this user as <strong>High Intent</strong>.</p><p>This decision is pushed instantly into PW’s CRM (e.g., Salesforce, LeadSquared, FreshSales depending on their setup).</p><h3>📌 4. “Hi Subhajit…” — The Personalized Touch</h3><p>Here’s the part many people don’t realize:</p><p><strong>The system knows your name because you logged in.</strong><br> So when the counselor calls and says:</p><blockquote><em>“Hi Subhajit, we noticed you’re exploring the GATE course. Can we help?”</em></blockquote><p>…it’s not magic.</p><p>Your name, profile, course interest, and past interactions were automatically forwarded to the call team <strong>in real time</strong>.</p><p>That’s what creates that subconscious feeling of trust and connection.</p><h3>📌 5. The Callback Assignment Engine</h3><p>Once the CRM receives your “<strong>high-intent event</strong>,” it automatically picks an available counselor based on:</p><ul><li>Your preferred course (like GATE)</li><li>Your location/timezone</li><li>Counselor availability</li><li>Language preference</li><li>Past interactions</li></ul><p>Then the Dialer triggers the call in <strong>1–3 minutes</strong>.</p><p>That’s why it feels instant — because it <em>is</em>.</p><h3>📌 6. The Data Engineer’s Invisible Hand</h3><p>Here’s where Data Engineers quietly power the entire system:</p><h3>1️⃣ Event Tracking Framework</h3><p>They define <em>what</em> gets captured:<br> Searches, clicks, course views, scroll depth, repeat visits, and more.</p><h3>2️⃣ Real-Time Ingestion Pipelines</h3><p>Using Kafka, Pub/Sub, or Kinesis to carry every user action instantly.</p><h3>3️⃣ Real-Time Processing Jobs</h3><p>Flink or Spark jobs that:</p><ul><li>Clean the event</li><li>Enrich with user profile</li><li>Detect intent</li><li>Trigger actions</li></ul><h3>4️⃣ CRM Integration</h3><p>Pushing only the “meaningful” events to the sales system.</p><h3>5️⃣ Warehousing + Analytics</h3><p>Storing everything in systems like Snowflake, BigQuery, Redshift, or Databricks for:</p><ul><li>Trend analysis</li><li>Conversion metrics</li><li>Performance dashboards</li></ul><h3>6️⃣ Reliability, Monitoring &amp; Quality</h3><p>Ensuring the system never breaks — even when millions of students use it daily.</p><blockquote>This is why people often says that:<br><strong>A Data Engineer is the invisible architect of every smooth digital experience you feel.</strong></blockquote><h3>📐 Architecture Overview —</h3><pre>User Browses GATE Course<br>        |<br>        ▼<br>Frontend Event Capture<br>        |<br>        ▼<br>Event Stream (Kafka / Kinesis)<br>        |<br>        ▼<br>Real-Time Processor (Flink / Spark)<br>        |<br>        ▼<br>Intent Detection + User Enrichment<br>        |<br>        ▼<br>CRM (Salesforce / LeadSquared)<br>        |<br>        ▼<br>Callback Assignment Engine<br>        |<br>        ▼<br>Dialer System → Personalized Call</pre><h3>🎯 Final Thought</h3><p><em>Every time an app feels fast, personal, and perfectly timed — <br></em><strong>there’s a Data Engineer somewhere ensuring the right data flows to the right place at the right moment.</strong></p><blockquote><strong><em>We’re the quiet connectors of the digital world.<br> And real-time systems like this are where our craft truly shines.</em></strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a60164aef7ee" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ Data Lake vs Delta Lake vs Lakehouse vs Data Warehouse —]]></title>
            <link>https://subhajitchowdhury.medium.com/%EF%B8%8F-delta-lake-vs-data-lake-vs-lakehouse-vs-data-warehouse-1041f446de56?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/1041f446de56</guid>
            <category><![CDATA[data-architecture]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[databricks]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Mon, 08 Dec 2025 20:34:19 GMT</pubDate>
            <atom:updated>2025-12-09T02:12:25.504Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*k7JeEvVb81DyKZNr2U137Q.png" /></figure><p><em>How one simple “</em><strong><em>Data City</em></strong><em>” analogy ties everything together.</em></p><blockquote>Imagine we’re building an entire <strong>Data City</strong>.</blockquote><blockquote>Every company, every team, every engineer is living here.<br>And every decision we make — formats, tools, architecture — shapes how well this city runs.</blockquote><p>Let’s walk through this city together 👇</p><h3>🏞️ 1. Data Lake → “The Open Plot of Land”</h3><p>This is the starting point.</p><blockquote>A <strong>Data Lake</strong> is like a vast empty plot of land where people dump all kinds of construction material (<strong>Raw Data : Structured, Un-Structured or Semi-Structured</strong>) :</blockquote><ul><li>Bricks (<strong>CSV</strong>)</li><li>Sand (<strong>JSON</strong>)</li><li>Cement bags (<strong>Parquet</strong>)</li><li>Scrap metal (<strong>logs</strong>)</li><li>Broken materials for future use</li></ul><blockquote><strong>Tools you commonly see here:</strong></blockquote><ul><li>S3, ADLS, GCS</li><li>Kafka, Kinesis</li><li>Fivetran, Pentaho</li><li>PySpark ingestion scripts</li></ul><p><strong>👍 Pros:</strong> cheap, flexible<br><strong>👎 Cons:</strong> unorganized and messy</p><h3>🏗️ 2. Delta Lake → “The Construction Crew Arrives”</h3><p>Now the plot gets <strong>rules, structure, and order</strong>.</p><blockquote><strong>Delta Lake is the construction team that :</strong></blockquote><ul><li>Keeps inventory</li><li>Enforces schemas</li><li>Maintains blueprints (versioning)</li><li>Ensures no two workers break the same wall (ACID)</li><li>Handles last-minute material updates (MERGE/CDC)</li></ul><blockquote><strong>Tech stack you find on-site:</strong></blockquote><ul><li>Apache Spark</li><li>Delta Lake</li><li>Databricks</li><li>Structured Streaming</li></ul><blockquote>This is where the city becomes <em>usable</em>.<br> Pipelines stabilize.<br> Data becomes trustworthy.</blockquote><h3>🏡 3. Lakehouse → “Now We Build Real Homes People Can Live In”</h3><p>With materials organized and rules enforced, real structures appear.</p><blockquote><strong>A Lakehouse turns raw land into a functional neighborhood where people can:</strong></blockquote><ul><li>Analyse data</li><li>Run ML workloads</li><li>Govern access</li><li>Build dashboards</li><li>Use the same data without copying it everywhere</li></ul><blockquote><strong>Common tools:</strong></blockquote><ul><li>Databricks Lakehouse</li><li>Delta + Unity Catalog</li><li>Trino / Dremio</li><li>Power BI / Looker / Tableau</li><li>MLflow</li></ul><blockquote><strong>This is the stage where analytics and ML teams finally breathe.</strong></blockquote><h3>🏛️ 4. Data Warehouse → “The City Hall”</h3><p>Every city needs a <strong>formal, official building</strong> where records are maintained.<br>That’s the <strong>Data Warehouse</strong>.<br>It’s highly structured, secure, optimized, audit-ready.</p><blockquote><strong>Tech you see here :</strong></blockquote><ul><li>Snowflake</li><li>BigQuery</li><li>Amazon Redshift</li><li>Azure Synapse</li><li>Oracle Autonomous DW</li></ul><blockquote><strong>Perfect for :</strong></blockquote><ul><li>Financial reporting</li><li>Dashboards</li><li>KPIs</li><li>Governance</li><li>Compliance-heavy workloads</li></ul><h3>🌆 How the Four Fit Together (One Connected Story)</h3><p>Your city needs all four:</p><ul><li><strong>Data Lake</strong> → raw land</li><li><strong>Delta Lake</strong> → structure &amp; rules</li><li><strong>Lakehouse</strong> → functional ecosystem</li><li><strong>Data Warehouse</strong> → official decision center</li></ul><blockquote><strong>Most real-world companies combine these to build a stable, scalable data platform.</strong></blockquote><blockquote><strong><em>“When you understand these four layers, you understand the foundation that most modern data architectures rely on — regardless of which tools or cloud a company chooses.”</em></strong></blockquote><h3>🎯 Why This Matters for Data Engineers</h3><blockquote><strong>Because day-to-day, we face:</strong></blockquote><ul><li>Messy data</li><li>Schema changes</li><li>Failing pipelines</li><li>Slow warehouses</li><li>Governance issues</li><li>Real-time needs</li><li>ML workflows</li></ul><blockquote><strong>This architecture helps solve them with:</strong></blockquote><ul><li>ACID guarantees</li><li>Time-travel</li><li>Unified governance</li><li>Scalable compute</li><li>Simplified analytics</li></ul><blockquote><strong>It’s not theory — it’s the real battle we fight daily.</strong></blockquote><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1041f446de56" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ I Nuked My AWS Account — The Open Source Tool That Helped Me Clean Up After My Data Engineering…]]></title>
            <link>https://subhajitchowdhury.medium.com/i-nuked-my-aws-account-the-open-source-tool-that-helped-me-clean-up-after-my-data-engineering-2f3eb54ffe21?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/2f3eb54ffe21</guid>
            <category><![CDATA[aws-cleanup]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[default]]></category>
            <category><![CDATA[reset]]></category>
            <category><![CDATA[open-source]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Sat, 07 Jun 2025 20:45:36 GMT</pubDate>
            <atom:updated>2025-06-07T20:45:36.724Z</atom:updated>
            <content:encoded><![CDATA[<h3>💥 I Nuked My AWS Account — The Open Source Tool That Helped Me Clean Up After My Data Engineering Project (And How You Can Too)</h3><p><strong>A real-world walkthrough of how I cleaned up my AWS account after building data pipelines — and how you can avoid surprise charges and manual cleanup hassles.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xgrEypO_q2fFCZxBBI356w.jpeg" /></figure><h3>🚨 Why This Post Matters</h3><p>If you’ve ever experimented or built a project on AWS, chances are you’ve left some unused services running — S3 buckets, Glue jobs, Lambda triggers, or maybe even QuickSight dashboards. I did the same, and it cost me ₹2,500 in unexpected charges.</p><p>This post is a practical guide on:</p><ul><li>How I identified the issue</li><li>What I did to fix it</li><li>The exact open-source tool that helped me reset my account</li><li>How you can replicate it safely</li></ul><h3>🧪 The Setup: Building a Data Engineering Project on AWS</h3><p>As part of a personal project, I built a modern data engineering pipeline using several AWS services:</p><ul><li><strong>AWS Glue</strong> for ETL jobs</li><li><strong>Amazon S3</strong> for raw and processed data</li><li><strong>DynamoDB</strong> for lookup tables</li><li><strong>Lambda</strong> for trigger-based transformations</li><li><strong>QuickSight</strong> for dashboards and analytics</li></ul><p>It was a great hands-on learning experience. But once testing was done, I didn’t clean up properly. Resources stayed alive in the background — quietly racking up charges.</p><h3>📊 My Project Architecture (At a Glance)</h3><p>Here’s how my project flowed:</p><ol><li><strong>Raw data</strong> uploaded to S3 (events/logs)</li><li><strong>Glue ETL jobs</strong> processed and transformed the data</li><li><strong>Cleaned data</strong> saved in Parquet format back to S3</li><li><strong>Lambda functions</strong> updated DynamoDB and handled metadata</li><li><strong>QuickSight dashboards</strong> visualized insights for reporting</li></ol><p>This architecture worked well — but also left resources scattered across my account once the project ended.</p><h3>💸 The Problem: Hidden AWS Costs from Forgotten Resources</h3><p>Weeks after finishing the project, I noticed a ₹2,500 spike in my AWS bill. That’s when I realized:</p><ul><li>My <strong>ETL jobs</strong> were scheduled but no longer needed</li><li><strong>S3 buckets</strong> had large volumes of stored data</li><li><strong>Lambda functions</strong> were still running triggers</li><li><strong>QuickSight</strong> retained unused dashboards</li><li>Resources were spread across multiple <strong>regions</strong></li></ul><p>Manual cleanup was not only tedious — it was also prone to human error. I needed a smarter way to clean house.</p><h3>🛠️ The Solution: AWS Nuke</h3><p>A senior of mine, <a href="https://www.linkedin.com/in/devops-engineer-samibanerjee/">Sami Banerjee</a>, suggested a tool called <strong>AWS Nuke</strong> — an open-source CLI tool built to <strong>reset AWS accounts by deleting all active resources</strong>.</p><h3>🔍 Key Features:</h3><ul><li><strong>Dry-run mode</strong> to preview deletions</li><li><strong>Region-specific targeting</strong> (e.g., ap-south-1)</li><li>Support for a wide variety of AWS services</li><li>YAML config for granular control</li><li>CLI-based and fully scriptable</li></ul><p>Official GitHub repo: 👉 <a href="https://github.com/rebuy-de/aws-nuke">rebuy-de/aws-nuke</a></p><h3>🧠 Pro Tip:</h3><p>Always run with --dry-run first to double-check what will be removed. Avoid accidental deletions!</p><h3>⚠️ Safety Checklist Before Nuking</h3><ul><li>✅ Use on <strong>non-production</strong> accounts only</li><li>✅ Double-check your <strong>AWS account and region</strong></li><li>✅ Backup any <strong>critical data</strong></li><li>✅ Never store or expose AWS credentials publicly</li><li>✅ Follow <strong>IAM best practices</strong></li></ul><h3>🧩 How I Used AWS Nuke (Step-by-Step)</h3><h3>✅ Prerequisites</h3><ul><li>AWS CLI installed and configured with admin access</li><li>Latest version of AWS Nuke installed (cloud-nuke)</li></ul><h3>💻 Installation</h3><p><strong>macOS/Linux:</strong></p><pre>brew install cloud-nuke</pre><p><strong>Windows:</strong></p><pre>winget install cloud-nuke</pre><p>Or manually download from GitHub Releases.</p><h3>⚙️ Commands I Ran</h3><p><strong>Inspect all resources (non-destructive):</strong></p><pre>cloud-nuke inspect-aws --region ap-south-1</pre><p><strong>Dry run — preview deletions:</strong></p><pre>cloud-nuke aws --region ap-south-1 --dry-run</pre><p><strong>Final cleanup — deletes all matched resources:</strong></p><pre>cloud-nuke aws --region ap-south-1</pre><h3>🧼 Why I Recommend AWS Nuke</h3><p>Manually deleting resources one-by-one through the AWS Console is slow, error-prone, and incomplete.</p><p>AWS Nuke:</p><ul><li>Caught <strong>everything I missed</strong></li><li>Saved me from future bills</li><li>Helped reset my account in under <strong>15 minutes</strong></li><li>It’s <strong>open source</strong>, actively maintained, and secure</li></ul><h3>📸 Bonus: Full Walkthrough with Demos</h3><p>Want to follow along with screenshots, code, and more?<br> 👉 <a href="https://github.com/Subhajit-Chowdhury/Reset-AWS-with-Nuke">github.com/Subhajit-Chowdhury/Reset-AWS-with-Nuke</a></p><h3>🙏 Special Thanks</h3><p>Huge shoutout to <a href="https://github.com/TryToLearnProgramming">Sami Banerjee</a> — thanks for the timely recommendation and for guiding me through the cleanup process.</p><h3>🤝 Let’s Connect</h3><ul><li>🧑‍💻 GitHub: <a href="https://github.com/Subhajit-Chowdhury">Subhajit-Chowdhury</a></li><li>💼 LinkedIn: <a href="https://www.linkedin.com/in/subhajitch0wdhury/">subhajitchowdhury</a></li><li>📬 Email: <a href="/service/mailto:er.subhajitchowdhury@gmail.com">er.subhajitchowdhury@gmail.com</a></li></ul><h3>🧠 Final Thoughts</h3><p>If you’re building projects on AWS, <strong>cleaning up is just as important as building</strong>. Tools like AWS Nuke help you maintain a tidy, cost-efficient environment — especially in non-prod accounts or student/test environments.</p><p>Don’t let forgotten resources drain your wallet. Hit reset when you need it — <strong>the smart, safe way.</strong></p><h3>🔖 Tags</h3><p>AWS AWSNuke CloudCleanup DataEngineering CostOptimization DevOps OpenSource</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2f3eb54ffe21" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[️ WeatherStream: Real-Time Serverless ELT Pipeline with AWS & Snowflake ❄️]]></title>
            <link>https://subhajitchowdhury.medium.com/%EF%B8%8F-weatherstream-real-time-serverless-elt-pipeline-with-aws-snowflake-%EF%B8%8F-9ae5b3e25805?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/9ae5b3e25805</guid>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[real-time-data-processing]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Thu, 29 May 2025 12:16:52 GMT</pubDate>
            <atom:updated>2025-08-14T09:53:57.542Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A practical ELT pipeline that streams and loads weather data into Snowflake ❄️ using fully managed AWS services.</blockquote><p><strong>WeatherStream</strong> is a hands-on, serverless ELT (Extract → Load → Transform) pipeline built using AWS services and Snowflake ❄️.<br> It automatically ingests real-time weather data from a public API, stores raw data in DynamoDB, transforms it using AWS Lambda, stages it in S3, and loads it into Snowflake for querying.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fdpRxtJrPaGTpeAspt5big.png" /><figcaption>Turn real-time weather data into insights using a fully serverless ELT pipeline with AWS &amp; Snowflake ❄️. Built with DynamoDB, Lambda, EventBridge, S3, Snowpipe, and Python.</figcaption></figure><h3>🛠️ What This Project Does</h3><ul><li>✅ Fetches <strong>live weather data</strong> from a public API.</li><li>✅ Stores <strong>raw JSON</strong> data into <strong>AWS DynamoDB</strong>.</li><li>✅ Transforms and formats the data via <strong>AWS Lambda</strong>.</li><li>✅ Stages processed data in <strong>Amazon S3</strong>.</li><li>✅ Loads data <strong>automatically into Snowflake ❄️</strong> using <strong>Snowpipe</strong>.</li><li>✅ Data is ready for <strong>SQL-based analytics and insights</strong> in near real-time.</li></ul><h3>🗺️ Architecture Diagram :</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/822/1*QDsb54MqULwy8a6J7yhZqw.png" /><figcaption>Public API → AWS DynamoDB (Raw Ingestion) → AWS Lambda (Transformation) → Amazon S3 (Staging) → Snowpipe (Automated Loading) → Snowflake (Analytics-Ready Warehouse)</figcaption></figure><h3>🧰 Tech Stack Breakdown :-</h3><p>Here’s what powers the <strong>WeatherStream</strong> pipeline behind the scenes:</p><ul><li>🌐 <strong>Public Weather API</strong><br> → Source of real-time weather data (e.g., temperature, humidity, wind)</li><li>🗃️ <strong>AWS DynamoDB</strong><br> → Stores the raw weather data in NoSQL (JSON) format</li><li>⏰ <strong>AWS EventBridge</strong><br> → Triggers the data fetch script automatically at regular intervals</li><li>⚙️ <strong>AWS Lambda</strong><br> → Transforms raw JSON data into clean CSV format on the fly</li><li>📦 <strong>Amazon S3</strong><br> → Acts as a staging area for transformed data before loading into Snowflake</li><li>❄️ <strong>Snowflake</strong><br> → Cloud data warehouse where final structured data is stored and queried</li><li>⛓️ <strong>Snowpipe</strong><br> → Monitors the S3 bucket and ingests new data into Snowflake in near real-time</li><li>🐍 <strong>Python</strong><br> → Used to write the data extraction and transformation logic</li></ul><h3>🔍 Pipeline Flow: Step-by-Step :-</h3><h3>1️⃣ Extract</h3><ul><li>A scheduled Python script (<a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake/blob/main/Fetch_WeatherAPI.py">Fetch_WeatherAPI.py</a>) uses <strong>AWS EventBridge</strong> to hit the weather API periodically.</li><li>Example API: <a href="https://api.weatherapi.com/v1/current.json">http://api.weatherapi.com/v1/current.json</a></li></ul><h3>2️⃣ Load (Raw)</h3><ul><li>The script loads the raw JSON response into <strong>DynamoDB</strong>.</li></ul><h3>3️⃣ Transform</h3><ul><li>When a new record is added to DynamoDB, <strong>DynamoDB Streams</strong> trigger a <strong>Lambda function</strong> (<a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake/blob/main/DDB2Snowflake.py">DDB2Snowflake.py</a>).</li><li>This function parses and converts JSON → CSV and saves it in <strong>Amazon S3</strong>.</li></ul><h3>4️⃣ Load into Snowflake ❄️</h3><ul><li><strong>Snowpipe</strong> monitors the S3 bucket and automatically ingests new files into a <strong>Snowflake table</strong> (<a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake/blob/main/SF_2025-05-27%204_16am.csv"><em>weather_data</em></a>).</li><li>You can query the data using SQL in real time once ingested.</li></ul><h3>📂 Repository Link</h3><p>👉 GitHub: <a href="https://github.com/Subhajit-Chowdhury/Real-Time-Weather-Data-ELT-Pipeline-with-AWS-and-Snowflake">Real-Time-Weather-Data-ELT-Pipeline-with-AWS-and-Snowflak</a>e</p><p>Includes:</p><ul><li><a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake/blob/main/Fetch_WeatherAPI.py">Fetch_WeatherAPI.py</a> — API data fetcher</li><li><a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake/blob/main/DDB2Snowflake.py">DDB2Snowflake.py</a> — Lambda transformation logic</li><li><a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake/blob/main/Snowflake.sql">Snowflake.sql</a> — Snowflake schema creation &amp; setup</li><li><a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake/blob/main/README.md">README.md</a> — Full setup guide</li></ul><h3>🧪 Querying Data in Snowflake ❄️</h3><p>After ingestion, you can write queries like:</p><pre>SELECT location_name, temperature_c, humidity, condition_text, last_updated<br>FROM weather_data<br>ORDER BY last_updated DESC<br>LIMIT 10;</pre><h3>🚀 Getting Started Quickly :</h3><p><strong>1. Clone the repo</strong></p><ul><li>git clone <a href="https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake.git">https://github.com/Subhajit-Chowdhury/WeatherStream-Real-Time-ELT-Pipeline-using-AWS-and-Snowflake.git</a></li></ul><p><strong>2. Set up AWS Services</strong></p><ul><li>Create DynamoDB table</li><li>Configure EventBridge</li><li>Deploy the two Lambda functions</li><li>Create an S3 bucket</li></ul><p><strong>3. Set up Snowflake</strong></p><ul><li>Run the SQL script to create table &amp; file format</li><li>Configure Snowpipe to point to your S3 location</li></ul><p><strong>4. Test the Flow</strong></p><ul><li>Trigger data ingestion manually or wait for EventBridge</li><li>Watch the CSV appear in S3 and get loaded into Snowflake</li><li>Query your weather_data table</li></ul><h3>🎓 What I Learned</h3><p>Through this project, I learned to:</p><ul><li>Automate ETL flows using EventBridge, Lambda, and Snowpipe</li><li>Handle NoSQL → S3 → DWH transformation logic</li><li>Use AWS-native services to reduce operational overhead</li><li>Set up Snowflake data ingestion using Snowpipe for real-time use cases</li></ul><h3>🔗 Connect With Me</h3><ul><li>📧 Email: <a href="/service/mailto:er.subhajitchowdhury@gmail.com">er.subhajitchowdhury@gmail.com</a></li><li>💼 LinkedIn: <a href="https://linkedin.com/in/subhajitch0wdhury">linkedin.com/in/subhajitch0wdhury</a></li><li>💻 GitHub: <a href="https://github.com/Subhajit-Chowdhury">github.com/Subhajit-Chowdhury</a></li></ul><h3>🏷️ Tags</h3><p>#DataEngineering #Snowflake #AWS #Python #RealTimeData #Serverless #DataPipeline #ETL #CloudComputing #PortfolioProject</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9ae5b3e25805" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[ Turning Spotify Data into Insights: Building a Modern Data Pipeline on AWS ]]></title>
            <link>https://subhajitchowdhury.medium.com/turning-music-into-meaning-a-practical-spotify-analytics-pipeline-using-aws-s3-glue-athena-630272f017bd?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/630272f017bd</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[project-based-learning]]></category>
            <category><![CDATA[data-analytics]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[aws]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Wed, 21 May 2025 20:36:10 GMT</pubDate>
            <atom:updated>2025-05-29T12:40:32.294Z</atom:updated>
            <content:encoded><![CDATA[<blockquote>A complete serverless data engineering project using Amazon S3, Glue, Athena, and QuickSight to analyze Spotify tracks and visualize music trends.</blockquote><h3>🧐 Ever wondered what your Spotify data could reveal about your music taste?</h3><p>In this project, I explored how to build a <strong>complete end-to-end serverless data engineering pipeline</strong> using <strong>AWS services</strong>. The goal was simple: take raw Spotify data, process it, and transform it into beautiful, interactive dashboards to extract meaningful insights from the music we love. All using <strong>pay-as-you-go</strong>, <strong>cloud-native tools</strong> — no servers to manage!</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*shoiiPixRdIZFjZSL-knPw.png" /><figcaption><strong>🎧 Spotify + AWS = Music Insights in the Cloud 🚀</strong><br> <em>A Serverless Data Engineering Journey with S3, Glue, Athena &amp; QuickSight</em></figcaption></figure><h3>🧱 Tech Stack at a Glance</h3><p>Tool Purpose :-<br><strong>Amazon S3 :</strong> Data lake storage (raw → curated zone) <br><strong>AWS Glue :</strong> ETL job creation using PySpark <br><strong>Amazon Athena :</strong> Serverless SQL querying <br><strong>Amazon QuickSight</strong> : Data visualization dashboards <br><strong>Python + PySpark</strong> : Scripting, transformation logic</p><h3>🔄 Architecture Overview</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/702/0*JGsNNusBZWuTl6_b" /></figure><h3>🚦 Pipeline Breakdown</h3><h3>1️⃣ Raw Data Ingestion</h3><p>The dataset used is from <a href="https://www.kaggle.com/datasets/tonygordonjr/spotify-dataset-2023">Kaggle’s Spotify Dataset 2023</a>. It was broken down into:</p><ul><li>albums.csv</li><li>artists.csv</li><li>tracks.csv</li></ul><p>These were uploaded into an <strong>Amazon S3 bucket</strong> under a /raw folder — the <em>raw zone</em> of our <strong>data lake</strong>.</p><h3>2️⃣ Data Transformation using AWS Glue</h3><p>Using <strong>AWS Glue Studio</strong>, I created a <strong>PySpark-based ETL workflow</strong> that:</p><ul><li>Reads from raw/ S3 folder</li><li>Cleans nulls and filters noisy fields</li><li>Joins albums, artists, and tracks</li><li>Outputs <strong>Parquet files</strong> to the /curated zone in S3</li></ul><p>💡 <strong>Why Parquet?</strong><br> Efficient, columnar format that enables fast analytics with Athena.</p><p>🧠 <em>Glue Script:</em><br> You can find the complete script here:<br> 👉 <a href="https://github.com/Subhajit-Chowdhury/Spotify_Data-Engineering-using-AWS/blob/main/Spotify%20Project.py">Spotify Project.py</a></p><h3>3️⃣ Schema Discovery using Glue Crawlers</h3><p>An <strong>AWS Glue Crawler</strong> scans the curated S3 zone and automatically registers the schema in the <strong>AWS Glue Data Catalog</strong>.</p><p>No need to define the schema manually — Glue figures it out for us!</p><h3>4️⃣ Querying with Amazon Athena</h3><p>Athena lets us run <strong>SQL queries directly on S3</strong> using the schema created by the Glue Crawler.</p><p>📄 <strong>Sample Query:</strong></p><pre>SELECT artist_name, COUNT(track_id) AS total_tracks<br>FROM spotify_curated<br>GROUP BY artist_name<br>ORDER BY total_tracks DESC<br>LIMIT 10;</pre><p>Athena integrates seamlessly with QuickSight for BI dashboards!</p><h3>5️⃣ Dashboarding in QuickSight</h3><p>Finally, I connected <strong>Amazon QuickSight</strong> to Athena and built dynamic dashboards that visualize:</p><ul><li>Top artists by track count</li><li>Genre distribution</li><li>Album popularity</li><li>Explicit vs non-explicit songs</li></ul><p>📸 <strong>Sample Dashboard:</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*xaQRclrLjJ5b5KdN" /><figcaption>QuickSight Dashboard Created with Athena DataWarehouse</figcaption></figure><h3>💻 Core ETL Script Snippet (PySpark)</h3><pre># Load tracks and artists from S3 using AWS Glue<br>tracks_df = glueContext.create_dynamic_frame.from_options(...)</pre><pre># Join datasets<br>joined_df = Join.apply(albums_df, tracks_df, ...)</pre><pre># Drop nulls, filter, and write back as Parquet<br>glueContext.write_dynamic_frame.from_options(<br>    frame=joined_df,<br>    connection_type=&quot;s3&quot;,<br>    format=&quot;parquet&quot;,<br>    connection_options={&quot;path&quot;: output_path}<br>)</pre><p>🔗 <strong>Full Code:</strong> <a href="https://github.com/Subhajit-Chowdhury/RAW-Spotify-Data-into-Insights-with-AWS/blob/main/Spotify%20Project.py">GitHub Repo</a></p><h3>📂 Dataset Info</h3><ul><li><strong>Source</strong>: <a href="https://www.kaggle.com/datasets/tonygordonjr/spotify-dataset-2023">Spotify Dataset 2023</a></li><li><strong>Creator</strong>: Tony Gordon Jr.</li><li><strong>License</strong>: Public Domain (CC0)</li><li><strong>Format</strong>: CSV</li></ul><h3>🧠 Key Learnings</h3><p>✅ How to build a <strong>serverless data lake</strong> using S3 + Glue<br> ✅ Using <strong>PySpark</strong> for transformation and automation<br> ✅ Performing <strong>SQL analytics on S3</strong> using Athena<br> ✅ Visualizing Spotify insights using <strong>QuickSight dashboards</strong></p><h3>📬 Let’s Connect</h3><p>Have questions or want to collaborate?</p><ul><li>💼 <a href="https://www.linkedin.com/in/subhajitch0wdhury/">LinkedIn</a></li><li>🧠 <a href="https://subhajitchowdhury.medium.com/">GitHub</a></li><li>💬 Comments welcome below!</li></ul><h3>⭐ Bonus: GitHub Repository</h3><p>👉 <a href="https://github.com/Subhajit-Chowdhury/RAW-Spotify-Data-into-Insights-with-AWS">Spotify Data Engineering Project on AWS (GitHub)</a></p><blockquote><em>If you found this helpful, give the repo a ⭐ and share it with your network!</em></blockquote><h3>🔖 Tags</h3><p>#DataEngineering #AWS #Spotify #ETL #Glue #Athena #QuickSight #Serverless #BigData #S3 #PySpark #Medium</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=630272f017bd" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[npm.ps1 cannot be loaded
because running scripts is
disabled on this system]]></title>
            <link>https://subhajitchowdhury.medium.com/the-day-when-npm-said-no-and-how-i-made-npm-say-yes-f0c30d71064c?source=rss-6af0eefb7d77------2</link>
            <guid isPermaLink="false">https://medium.com/p/f0c30d71064c</guid>
            <category><![CDATA[powershell]]></category>
            <category><![CDATA[npm]]></category>
            <category><![CDATA[nodejs]]></category>
            <category><![CDATA[developer-tools]]></category>
            <dc:creator><![CDATA[Subhajit Chowdhury]]></dc:creator>
            <pubDate>Mon, 05 May 2025 18:11:40 GMT</pubDate>
            <atom:updated>2025-12-12T10:14:55.339Z</atom:updated>
            <content:encoded><![CDATA[<h3>npm.ps1 cannot be loaded because running scripts is disabled on this system</h3><p><strong><em>The day when </em></strong>npm<strong><em>said “No” — and how I made </em></strong>npm<strong><em>say “Yes”.</em></strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*neE3wlQEeh1SHKELZk22-w.png" /></figure><h3>📖 What Happened</h3><p>After installing the latest version of Node.js to start building my portfolio project, I did what every developer does — opened my terminal in VS Code and typed:</p><pre>npm -v</pre><blockquote>“But instead of the version number, I got hit with this unexpected error:”</blockquote><pre>npm.ps1 cannot be loaded because running scripts is disabled on this system.</pre><blockquote>Just like that, my excitement turned into confusion. <br>Why would a fresh Node.js install block npm from running?<br>That was confusing. Nothing had changed, and now npm just… stopped working?<br>But it wasn’t npm’s fault. It was PowerShell being overly cautious — blocking scripts for security reasons.<br>Here’s exactly what I did to fix it.</blockquote><h3>💡 What This Error Really Means</h3><p>Windows has a built-in security rule in PowerShell called <strong>Execution Policy</strong>.<br> If it’s set to Restricted, PowerShell blocks <strong>all scripts</strong> — even safe ones like npm.ps1.</p><blockquote><strong>“That’s why I was getting the error.”</strong></blockquote><h3>🛠️ How I Fixed It (In 3 Quick Steps)</h3><h3>1. Open PowerShell as Administrator</h3><ul><li>Press <strong>Start</strong>, search for <strong>PowerShell</strong></li><li>Right-click → <strong>Run as administrator</strong></li></ul><h3>2. Check the Current Policy</h3><pre>Get-ExecutionPolicy</pre><p>If it returns Restricted, that’s the issue.</p><h3>3. Set It to RemoteSigned (Safe for Local Scripts)</h3><pre>Set-ExecutionPolicy RemoteSigned -Scope CurrentUser</pre><blockquote><strong><em>note : don’t change CurrentUser to your username</em></strong></blockquote><ul><li>Press Y to confirm</li></ul><h4><strong>What does this change actually do?<br></strong><em>You’re not turning off security — you’re just telling PowerShell:</em></h4><blockquote><em>“Hey, it’s okay to run scripts I wrote or installed locally.<br>Let me run my stuff, but still watch out for the shady stuff.<br>If something came from the internet, make sure it’s signed and verified first.”</em></blockquote><h4><em>It’s a balanced setting:</em></h4><ul><li>✅ Your local tools (like npm) work as expected</li><li>🛡️ Suspicious or unsafe scripts are still blocked</li><li>🚧 No major security risks for everyday development</li></ul><blockquote><em>In short, it’s safe, smart, and just enough access to get things done.</em></blockquote><h3>🧪 Test It</h3><p>Now try:</p><pre>npm -v</pre><p>It should return the version number like 10.9.2 — npm is start working !</p><blockquote>“And this time, PowerShell didn’t complain.<br> Just a clean version number on the screen — npm was finally ready to go.<br><em>A small change, a quick fix — and I was back on track building my project.”</em></blockquote><h3>🔁 <strong>Optional: Lock It Back Later</strong></h3><p>Not sure about leaving things open? No worries — you can always tighten the rules again.</p><p>When you’re done with development, just tell PowerShell:</p><pre>Set-ExecutionPolicy Restricted -Scope CurrentUser</pre><p><strong>It’s like saying,</strong></p><blockquote><em>“Thanks for letting me work — now let’s lock the door again.”</em></blockquote><p><strong><em>No harm done. Just a clean, safe way to code when you need to — and stay cautious when you don’t.</em></strong></p><h3>🔗 Reference Links</h3><ul><li><a href="https://stackoverflow.com/questions/41117421/ps1-cannot-be-loaded-because-running-scripts-is-disabled-on-this-system">Stack Overflow</a></li><li><a href="https://lakhan10.medium.com/npm-nodemon-ps1-8d1a929a22a8">Lakhan’s Medium Post</a></li></ul><h3>🧠 Final Thought</h3><blockquote>If npm suddenly stops working on Windows, don’t panic.<br>It’s not broken — it’s just PowerShell being careful.<br>A small policy tweak is all it takes.</blockquote><blockquote>Sometimes, it’s these little roadblocks that teach you the most.<br> Now you know how to handle them — and keep moving forward. 🚀</blockquote><p>💡 <strong>Hope this helped.</strong><br> If it saved your day — pass it along.<br> Let’s make debugging simpler, together.</p><p><strong>#NodeJS #npm #PowerShell #Windows #WebDevelopment #VSCode #DeveloperTools #Beginners #FixErrors #Debugging</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f0c30d71064c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>