<?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 Ritu Srivastava on Medium]]></title>
        <description><![CDATA[Stories by Ritu Srivastava on Medium]]></description>
        <link>https://medium.com/@rit_sri?source=rss-8228a4b7a8f9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*LB7Ad63puDPK-RqrEHc-jg.jpeg</url>
            <title>Stories by Ritu Srivastava on Medium</title>
            <link>https://medium.com/@rit_sri?source=rss-8228a4b7a8f9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 03:15:22 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rit_sri/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[The easiest ROADMAP to become an AI Engineer in 2026]]></title>
            <link>https://medium.com/@rit_sri/the-easiest-roadmap-to-become-an-ai-engineer-in-2026-70c557f24cce?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/70c557f24cce</guid>
            <category><![CDATA[tech]]></category>
            <category><![CDATA[ai-agent]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[deep-learning]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Sun, 14 Jun 2026 13:07:59 GMT</pubDate>
            <atom:updated>2026-06-14T13:07:59.130Z</atom:updated>
            <content:encoded><![CDATA[<p>Here is the truth nobody says upfront: <strong>most working AI engineers in 2026 have never read an academic paper in their professional life.</strong> They have not derived a backpropagation equation. They have not implemented a transformer from scratch. They build production systems using APIs, frameworks, and tools that abstract all of that away and they get paid extremely well to do it.</p><p>The math-heavy research paper path is for ML researchers at DeepMind and Anthropic.</p><p>The path in this article is for AI engineers who build real things that real companies pay for. These are different jobs. This roadmap is for the second one.</p><h3>WHAT AN AI ENGINEER ACTUALLY DOES IN 2026</h3><p>Before the roadmap, let us be precise about the job — because “AI engineer” is used to mean three different things</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/805/1*LdDLcHzfImGEbI7gQqJqLw.png" /><figcaption>AI Engineer</figcaption></figure><p>This roadmap is for the <strong>AI Engineer</strong> path. You are the person who takes a powerful model (Claude, GPT-4o, Gemma, Llama) and builds something useful with it — a chatbot, an agent, a document processing pipeline, a RAG system, an automation.</p><h3>THE FOUR THINGS YOU ACTUALLY NEED</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*SCIDGO0U8NQ3p-L5AxAFOA.jpeg" /></figure><p>Before the phase-by-phase roadmap, here is the complete skills list — everything an AI engineer needs, nothing they do not.</p><p><strong>1. Python</strong> — the only programming language you need. Not expert-level. Not competitive-programming level. Clean, readable Python with an understanding of functions, classes, APIs, and async basics.</p><p><strong>2. API literacy</strong> — the ability to read API documentation, make HTTP requests, handle responses, manage authentication, and debug errors. This is the core job.</p><p><strong>3. LLM application frameworks</strong> — specifically LangChain and/or LlamaIndex. These are the tools that turn raw API calls into production-grade AI systems.</p><p><strong>4. System design intuition</strong> — understanding how to connect components (models, databases, APIs, user interfaces) into a working system. Not architecture theory — practical “what connects to what” thinking.</p><p>That is it.</p><h3>THE ROADMAP: 6 PHASES, 0 RESEARCH PAPERS</h3><h3>PHASE 1: PYTHON FOUNDATIONS</h3><p><strong>Duration:</strong> 4–6 weeks | <strong>Cost:</strong> Free</p><p>You do not need to become a Python expert. You need to reach “comfortable” — the level where you can write a script, read someone else’s code, and fix basic errors without panicking.</p><p><strong>What to learn:</strong></p><ul><li>Variables, data types, loops, conditionals</li><li>Functions and classes (basic OOP)</li><li>Working with files, JSON, and dictionaries</li><li>Installing and using packages via pip</li><li>Reading and understanding error messages</li><li>Making HTTP requests with the requests library</li></ul><p><strong>What to skip:</strong> Algorithms, data structures, competitive programming, decorators, metaclasses, async (for now). None of that is needed yet.</p><p><strong>Best free resources:</strong></p><ul><li>🔗</li><li><a href="https://www.coursera.org/specializations/python"><strong>Python for Everybody — Coursera</strong></a></li><li>(audit free) — The most beginner-friendly structured Python course. Dr. Chuck’s teaching style is unusually clear.</li><li>🔗</li><li><a href="https://cs50.harvard.edu/python/2022/"><strong>CS50P — Harvard’s Python course</strong></a></li><li>(completely free) — More rigorous than Python for Everybody. Better if you want a stronger foundation.</li><li>🔗</li><li><a href="https://www.youtube.com/watch?v=rfscVS0vtbw"><strong>freeCodeCamp Python Full Course — YouTube</strong></a></li><li>— 4.5 hours. Good for visual learners who prefer video.</li><li>🔗</li><li><a href="https://www.codecademy.com/learn/learn-python-3"><strong>Codecademy Python</strong></a></li><li>— Interactive, browser-based. No setup required. Good for absolute beginners.</li><li>🔗</li><li><a href="https://scrimba.com/learn/python"><strong>Scrimba Python for Beginners</strong></a></li><li>— Interactive coding environment built into the video</li></ul><p><strong>Milestone:</strong> You can write a Python script that reads a JSON file, loops through the data, calls an external API, and saves the response to a new file. If you can do that, you are ready for Phase 2.</p><h3>PHASE 2: YOUR FIRST LLM API CALLS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gma-bkjUIbqUTHrPw4yz_w.png" /></figure><p><strong>Duration:</strong> 1–2 weeks | <strong>Cost:</strong> ~$5–10 in API credits</p><p>This is where it starts feeling real. You make your first call to an actual AI model and get a response back in code — not in a chat interface, in a script you wrote.</p><p><strong>What to learn:</strong></p><ul><li>What an API key is and how to keep it secure (environment variables)</li><li>How to make calls to the Anthropic Claude API or OpenAI API</li><li>Understanding the message structure (system prompt, user message, assistant response)</li><li>Reading API documentation without getting overwhelmed</li><li>Handling errors and rate limits</li><li>Streaming responses</li></ul><p><strong>Step-by-step for your first API call (Claude):</strong></p><ol><li>Create a free Anthropic account at</li><li><a href="https://console.anthropic.com/">console.anthropic.com</a></li><li>Generate an API key</li><li>Install the SDK: pip install anthropic</li><li>Run your first call:</li></ol><p><strong><em>import anthropic</em></strong></p><p><strong><em>client = anthropic.Anthropic(api_key=”your-key-here”)</em></strong></p><p><strong><em>message = client.messages.create(</em></strong></p><p><strong><em>model=”claude-opus-4–5&quot;,</em></strong></p><p><strong><em>max_tokens=1024,</em></strong></p><p><strong><em>messages=[</em></strong></p><p><strong><em>{“role”: “user”, “content”: “Explain RAG in one paragraph.”}</em></strong></p><p><strong><em>]</em></strong></p><p><strong><em>)</em></strong></p><p><strong><em>print(message.content[0].text)</em></strong></p><p>That is it. You are an AI engineer.</p><p><strong>Best resources:</strong></p><ul><li>🔗</li><li><a href="https://docs.anthropic.com/"><strong>Anthropic API Documentation</strong></a></li><li>— Read the Quickstart. It is clearly written and takes 20 minutes.</li><li>🔗</li><li><a href="https://platform.openai.com/docs/quickstart"><strong>OpenAI API Quickstart</strong></a></li><li>— Alternative if you prefer starting with GPT-4o.</li><li>🔗</li><li><a href="https://learn.deeplearning.ai/courses/chatgpt-prompt-eng"><strong>DeepLearning.AI: ChatGPT Prompt Engineering for Developers</strong></a></li><li>(free) — Taught by Andrew Ng and OpenAI. The most practical introduction to working with LLMs programmatically.</li></ul><p><strong>Milestone:</strong> You can write a Python script that takes user input, sends it to an LLM API with a custom system prompt, and prints the response. Bonus: you have stored your API key in an environment variable, not hardcoded.</p><h3>PHASE 3: THE THREE CORE CONCEPTS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BiHpJuEp5_ZA2YCts-n0tA.png" /></figure><p><strong>Duration:</strong> 3–4 weeks | <strong>Cost:</strong> Free + small API costs</p><p>Every AI engineering project in production uses some combination of these three concepts. Understanding them — not their mathematical internals, their practical function — is what separates AI engineers from people who can just make a single API call.</p><p><strong>Concept 1: Prompt Engineering</strong></p><p>Prompt engineering is the craft of writing instructions to an LLM that reliably produce the output you want. This is a real skill with real techniques — and it has nothing to do with math.</p><p>Key techniques to learn:</p><ul><li>System prompts vs. user messages</li><li>Few-shot prompting (giving examples inside the prompt)</li><li>Chain-of-thought prompting (asking the model to reason step by step)</li><li>Output formatting (asking for JSON, structured lists, specific formats)</li><li>Handling edge cases (what to do when the input is unclear or out of scope)</li></ul><p>🔗</p><p><a href="https://docs.anthropic.com/en/docs/build-with-claude/prompt-engineering/overview"><strong>Anthropic Prompt Engineering Guide</strong></a></p><p>— The definitive practical guide. Written by the people who know Claude best. 🔗</p><p><a href="https://learn.deeplearning.ai/courses/chatgpt-prompt-eng"><strong>DeepLearning.AI: ChatGPT Prompt Engineering for Developers</strong></a></p><p>— Free, practical, takes 2–3 hours.</p><p><strong>Concept 2: RAG (Retrieval-Augmented Generation)</strong></p><p>RAG is the most important pattern in AI engineering right now. The idea is simple: instead of relying only on what an LLM was trained on, you retrieve relevant information from your own documents or databases and include it in the prompt context.</p><p>The result: an AI that can answer questions about <em>your</em> data — your company’s documentation, your client’s knowledge base, your product manual — accurately and without hallucinating.</p><p>The practical pipeline:</p><p><strong><em>Documents → Split into chunks → Convert to embeddings</em></strong></p><p><strong><em>→ Store in vector database → User asks question</em></strong></p><p><strong><em>→ Find relevant chunks → Inject into prompt → LLM answers</em></strong></p><p>You do not need to understand the math of embeddings. You need to understand what each step does and how to implement it using LlamaIndex or LangChain.</p><p>🔗</p><p><a href="https://docs.llamaindex.ai/en/stable/getting_started/starter_example/"><strong>LlamaIndex Getting Started</strong></a></p><p>— Build a basic RAG system in 15 lines of code. 🔗</p><p><a href="https://python.langchain.com/docs/tutorials/rag/"><strong>LangChain RAG Tutorial</strong></a></p><p>— Official step-by-step guide. 🔗</p><p><a href="https://cognitiveclass.ai/courses/langchain-vs-llamaindex-a-brief-introduction"><strong>CognitiveClass: LangChain vs LlamaIndex Introduction</strong></a></p><p>(free) — Side-by-side comparison with hands-on RAG implementation. 🔗</p><p><a href="https://www.youtube.com/watch?v=cCyYGYyCka4"><strong>YouTube: Introduction to LlamaIndex with Python</strong></a></p><p>— Excellent beginner walkthrough.</p><p><strong>Concept 3: AI Agents</strong></p><p>An AI agent is an LLM that can use tools — search the web, run code, query a database, send an email, call an API — to complete multi-step tasks autonomously. This is the fastest-growing area of AI engineering right now.</p><p>The mental model: instead of one prompt → one response, an agent is a loop where the LLM decides what action to take, executes it, observes the result, and decides what to do next — until the task is complete.</p><p>You do not need to build agent infrastructure from scratch. Tools like LangChain, LlamaIndex, and Anthropic’s Claude tool use feature handle the loop mechanics. Your job is to define the tools and the system prompt.</p><p><a href="https://docs.anthropic.com/en/docs/build-with-claude/tool-use"><strong>Anthropic Tool Use Documentation</strong></a></p><p>— Claude’s implementation of agent tool calling. Start here. 🔗</p><p><a href="https://python.langchain.com/docs/how_to/#agents"><strong>LangChain Agents Documentation</strong></a></p><p>— Framework-level agent building. 🔗</p><p><a href="https://learn.deeplearning.ai/courses/ai-agents-in-langgraph"><strong>DeepLearning.AI: AI Agents in LangGraph</strong></a></p><p>(free) — The best beginner course on building agentic systems.</p><p><strong>Milestone for Phase 3:</strong> You have built a working RAG system that can answer questions about a PDF document you provided. You have also built a simple agent that can use at least one external tool (a search API or a calculator).</p><h3>PHASE 4: BUILD FIVE PORTFOLIO PROJECTS</h3><p><strong>Duration:</strong> 6–10 weeks | <strong>Cost:</strong> $20–50 in API and hosting</p><p>This is the phase that gets you hired. Job descriptions ask for experience. Portfolio projects <em>are</em> experience. Five well-documented projects on GitHub is worth more than any certificate.</p><p><strong>Project 1: Document Q&amp;A System (RAG)</strong> Build a chatbot that can answer questions about any set of PDFs or text files you provide. Use LlamaIndex, a vector database (Chroma is free and simple to start with), and any LLM API.</p><p>Real-world version: make it work on your country’s tax regulations, a company’s employee handbook, or a set of legal documents.</p><p>🔗</p><p><a href="https://www.trychroma.com/"><strong>Chroma — Free Local Vector Database</strong></a></p><p>— No account, no cost, runs locally.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*tnk2qf-bkx9Ls8zBRYfnLA.png" /></figure><p><strong>Project 2: AI Writing Assistant with Memory</strong> Build a writing tool that remembers your writing style and previous sessions, so it generates content that sounds like you — not like generic AI. Implement conversation memory using LangChain’s memory classes.</p><p><strong>Project 3: Automated Research Agent</strong> Build an agent that takes a research question, searches the web, reads relevant pages, synthesises the information, and produces a structured report. Use Tavily or SerpAPI for web search.</p><p>🔗</p><p><a href="https://tavily.com/"><strong>Tavily AI Search API</strong></a></p><p>— Built specifically for AI agents. Free tier available. 🔗</p><p><a href="https://serpapi.com/"><strong>SerpAPI</strong></a></p><p>— Google Search results in structured JSON. Free trial available.</p><p><strong>Project 4: Data Extraction Pipeline</strong> Build a system that takes unstructured text (emails, invoices, support tickets) and extracts structured data from it — names, dates, amounts, categories — in JSON format. Use Claude’s structured output or function calling.</p><p>This project is highly hireable — almost every business has this problem.</p><p><strong>Project 5: Multi-Agent Workflow</strong> Build a system where two or more agents collaborate on a task — one agent breaks a project into subtasks, other specialised agents complete each subtask, and a final agent synthesises the results. Use LangGraph or CrewAI.</p><p>🔗</p><p><a href="https://docs.crewai.com/"><strong>CrewAI Documentation</strong></a></p><p>— The most beginner-friendly multi-agent framework. 🔗</p><p><a href="https://langchain-ai.github.io/langgraph/"><strong>LangGraph Documentation</strong></a></p><p>— More control and flexibility than CrewAI.</p><p><strong>How to document each project:</strong></p><ul><li>A clear README explaining what it does, who it is for, and how to run it</li><li>A short (2–3 minute) demo video or GIF showing it working</li><li>The specific problem it solves stated in the first sentence</li></ul><h3>PHASE 5: DEPLOYMENT AND PRODUCTION BASICS</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*L82o5lWh0VC6sCUx9jGl6w.png" /></figure><p><strong>Duration:</strong> 2–3 weeks | <strong>Cost:</strong> Free to $5/month</p><p>A portfolio project that runs only on your laptop is a demo. A deployed application is a product. Knowing the basics of deployment is what separates candidates who look good on paper from candidates who can actually ship.</p><p><strong>What to learn:</strong></p><p><strong>FastAPI</strong> — The Python framework for building APIs. If you want to expose your AI system as a web service (which is almost always how AI is deployed in production), FastAPI is the standard. 🔗</p><p><a href="https://fastapi.tiangolo.com/tutorial/"><strong>FastAPI Official Tutorial</strong></a></p><p>— Start here. Excellent documentation.</p><p><strong>Streamlit</strong> — The fastest way to build a web interface for an AI app without learning frontend development. Turns a Python script into a usable web application in under 50 lines of code. 🔗</p><p><a href="https://docs.streamlit.io/get-started"><strong>Streamlit Getting Started</strong></a></p><p>— Deploy your first app in one afternoon.</p><p><strong>Basic Docker</strong> — Understanding how to containerise an application so it runs the same way everywhere. You do not need to be a Docker expert — you need to be able to write a Dockerfile and run a container. 🔗</p><p><a href="https://docs.docker.com/get-started/"><strong>Docker Official Getting Started</strong></a></p><p>— The official guide is genuinely beginner-friendly.</p><p><strong>Free deployment:</strong> 🔗</p><p><a href="https://railway.app/"><strong>Railway</strong></a></p><p>— The easiest production deployment for Python applications. Free tier available. 🔗</p><p><a href="https://huggingface.co/spaces"><strong>Hugging Face Spaces</strong></a></p><p>— Free hosting for AI demos and Streamlit apps. Widely used for portfolios. 🔗</p><p><a href="https://render.com/"><strong>Render</strong></a></p><p>— Free tier for web services. Good alternative to Railway.</p><p><strong>Milestone:</strong> At least two of your five portfolio projects are live on a public URL that anyone can visit.</p><h3>PHASE 6: GET HIRED</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xX23c3cu2ACAZy6fmUQQ4Q.png" /></figure><p><strong>Duration:</strong> 4–8 weeks | <strong>Cost:</strong> Free</p><p><strong>Where AI Engineer roles are posted:</strong></p><p>🔗<a href="https://www.linkedin.com/jobs/search/?keywords=AI+Engineer"><strong>LinkedIn Jobs — “AI Engineer”</strong></a></p><p>— Filter by “Entry level” and posted within the last 24 hours. 🔗</p><p><a href="https://wellfound.com/jobs"><strong>Wellfound (formerly AngelList)</strong></a></p><p>— Startup-focused. AI engineering roles are dense here, especially at seed and Series A companies. 🔗</p><p><a href="https://otta.com/"><strong>Otta</strong></a></p><p>— Curated job matching. Strong for tech roles at growth companies. 🔗</p><p><a href="https://www.upwork.com/freelance-jobs/artificial-intelligence/"><strong>Upwork — AI Engineering</strong></a></p><p>— Freelance. Good for building paid experience while job hunting.</p><p><strong>How to position yourself:</strong></p><p>Your LinkedIn headline should not say “Aspiring AI Engineer.” It should say what you have already built: “AI Engineer | RAG Systems | LLM Applications | LangChain | Claude API”</p><p>Your portfolio projects are your experience. Frame them as professional work, not student exercises. Each one solved a real problem. State that problem, state your solution, state the result.</p><p><strong>The one thing that gets responses:</strong></p><p>Cold outreach to AI-focused startups works better than applying through job boards for entry-level candidates with strong portfolios. A message that says “I built a working document Q&amp;A system using LlamaIndex and Claude — here is the GitHub link — I am looking for my first AI engineering role and your company’s work on [specific thing] caught my attention” will get responses that generic applications never will.</p><h3>YOUR FULL RESOURCE LIST</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0q75QSj1YnkIkCCHIwvVHw.png" /></figure><h3>Completely Free Structured Learning</h3><p>Resource</p><p>What it covers</p><p>Link</p><p>Python for Everybody (Coursera)</p><p>Python fundamentals</p><p>coursera.org</p><p>CS50P (Harvard)</p><p>Python, more rigorous</p><p>cs50.harvard.edu/python</p><p>DeepLearning.AI Prompt Engineering</p><p>Practical LLM prompting</p><p>learn.deeplearning.ai</p><p>DeepLearning.AI: AI Agents in LangGraph</p><p>Agent systems</p><p>learn.deeplearning.ai</p><p>CognitiveClass: LangChain vs LlamaIndex</p><p>RAG frameworks</p><p>cognitiveclass.ai</p><p>FastAPI Tutorial</p><p>API development</p><p>fastapi.tiangolo.com</p><p>Streamlit Docs</p><p>AI app interfaces</p><p>docs.streamlit.io</p><h3>YouTube Channels Worth Following</h3><ul><li>🔗<a href="https://www.youtube.com/@DataWithBaraa"><strong>Data With Baraa</strong></a></li><li>— Clear AI engineering roadmap videos</li><li>🔗<a href="https://www.youtube.com/@daveebbelaar"><strong>Dave Ebbelaar</strong></a></li><li>— Practical AI engineering and agent building</li><li>🔗<a href="https://www.youtube.com/@alejandro_ao"><strong>Alejandro AO</strong></a></li><li>— LlamaIndex and LangChain tutorials</li></ul><p><strong>(As I said) THE HONEST TIMELINE LOOKS LIKE THIS:</strong></p><h3>THE ONE MISTAKE THAT ADDS 6 MONTHS TO THIS TIMELINE</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*BMwC_muTv2Kyyat9Dpx5Qg.png" /></figure><p>Tutorial hell.</p><p>This is the trap where you watch one Python course, then another Python course, then a LangChain course, then an AI fundamentals course, then another course — and at month four you still have not built anything.</p><p>The rule that prevents this: <strong>after every two weeks of learning, you must build something with what you learned.</strong> It does not have to be impressive. It has to work. A working script that does something real is worth more to your development than a certificate from a course you completed passively.</p><p>The job market in 2026 does not care what you watched. It cares what you shipped. Follow me, save, and share with your friends<em>, specializing in AI tools, emerging trends, and niche applications.</em></p><p><strong>Follow for in-depth analyses, strategic insights, and professional updates to elevate your AI knowledge</strong></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=70c557f24cce" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Will Save Your Job for the Next 10 Years]]></title>
            <link>https://medium.com/@rit_sri/this-will-save-your-job-for-the-next-10-years-bede8aabe59c?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/bede8aabe59c</guid>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[data]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Sat, 28 Feb 2026 03:01:06 GMT</pubDate>
            <atom:updated>2026-02-28T03:01:06.477Z</atom:updated>
            <content:encoded><![CDATA[<p>In this article, we will dig deeper, so it’s PART 2.</p><p><strong>Let me simplify what AI-ready Data Engineering actually means.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ur-YUhaCOVcWApKtITMtgg.png" /></figure><p>In my last post, I talked about becoming an AI-aware Data Engineer.</p><p>But what does that look like in simple terms?</p><p>Let’s break it down visually (see below ).</p><h3>🧠 AI-Ready Data Skills (Layman Version)</h3><p>Old role:<br> You move data from Point A → Point B.</p><p>New role:<br> You prepare data so AI systems can <em>think</em> with it.</p><p>Example:</p><p>• Traditional pipeline → Store customer transactions<br> • AI-ready pipeline → Structure data so an LLM can answer:<br> “Why did sales drop in Q4?”</p><p>That requires:<br> — Clean structured data<br> — Context enrichment<br> — Embeddings<br> — Vector search</p><p>It’s not just storage anymore.<br> It’s intelligence enablement.</p><h3>📖 Understanding LLMs (Without the Hype)</h3><p>Think of LLMs like super-smart interns.</p><p>They:<br> • Break text into tokens (small pieces)<br> • Convert them into numbers (embeddings)<br> • Find similar meaning in massive datasets</p><p>If you understand how chunking, retrieval, and embeddings work…</p><p>You become the person who makes AI <em>accurate</em> — not just impressive.</p><p>And companies pay for accuracy.</p><h3>⚡ Real-Time Data = Competitive Advantage</h3><p>AI systems hate stale data.</p><p>If your architecture can:<br> • Stream events instantly<br> • Update feature stores in real time<br> • Trigger ML models automatically</p><p>You move from “data engineer” to “AI infrastructure engineer.”</p><p>That shift is massive.</p><h3>🏗 Think in Systems, Not Tools</h3><p>Tools change every 2–3 years.</p><p>Systems thinking lasts decades.</p><p>If you understand the full flow:<br> Source → Warehouse → Feature Store → Model → API → User</p><p>You are not replaceable.</p><p>Because you see the big picture.</p><p>The next 10 years won’t eliminate data engineers.</p><p>It will eliminate narrow data engineers.</p><p>The safest career path?</p><p>Build systems that power AI.</p><p>Not just pipelines that move data.</p><p>If you’re a fresher — start here.<br> If you’re experienced — evolve now.</p><p>What part of this system are you currently strongest in?</p><p>📌𝗙𝗼𝗿 𝗠𝗲𝗻𝘁𝗼𝗿𝘀𝗵𝗶𝗽/ 𝟭:𝟭 𝗖𝗮𝗹𝗹 𝗯𝗼𝗼𝗸 𝗵𝗲𝗿𝗲 — <a href="https://topmate.io/ritu_srivastava">https://topmate.io/ritu_srivastava</a></p><p>📌 𝐋𝐨𝐨𝐤𝐢𝐧𝐠 𝐟𝐨𝐫 𝐑𝐞𝐬𝐮𝐦𝐞 𝐡𝐚𝐯𝐢𝐧𝐠 𝟗𝟎+ 𝐀𝐓𝐒 𝐬𝐜𝐨𝐫𝐞? 𝗗𝗼𝘄𝗻𝗹𝗼𝗮𝗱 𝗥𝗲𝗰𝗿𝘂𝗶𝘁𝗲𝗿-𝗔𝗽𝗽𝗿𝗼𝘃𝗲𝗱 𝗥𝗲𝘀𝘂𝗺𝗲 𝗧𝗲𝗺𝗽𝗹𝗮𝘁𝗲 -<a href="https://topmate.io/ritu_srivastava/1944883">https://topmate.io/ritu_srivastava/1944883</a></p><p>📌𝐅𝐨𝐥𝐥𝐨𝐰 𝐦𝐲 𝐌𝐞𝐝𝐢𝐮𝐦 𝐇𝐚𝐧𝐝𝐥𝐞 𝐭𝐨 𝐬𝐭𝐚𝐲 𝐮𝐩𝐝𝐚𝐭𝐞𝐝 — <a href="https://medium.com/@rit_sri">https://medium.com/@rit_sri</a></p><p>📌If you’re stuck with a long notice period or planning a switch, this might save you weeks of confusion — <a href="https://www.naukri.com/minis/video-how-to-tackle-90-days-notice-period-to-switch-a-job-this-could-be-a-life-changing-experience-with-you-i-m-sharing-with-you-if-this-is-helpful-for-you-like-and-share-this-video-with-someone-who-is-in-need-vid-17c66efc-d540-4cfc-a513-26c525892dbc?utm_source=creator_referral_program&amp;utm_content=share_ritu-srivastava">https://www.naukri.com/minis/video-how-to-tackle-90-days-notice-period-to-switch-a-job-this-could-be-a-life-changing-experience-with-you-i-m-sharing-with-you-if-this-is-helpful-for-you-like-and-share-this-video-with-someone-who-is-in-need-vid-17c66efc-d540-4cfc-a513-26c525892dbc?utm_source=creator_referral_program&amp;utm_content=share_ritu-srivastava</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bede8aabe59c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Will Save Your Job for the Next 10 Years (Especially in Data Engineering)]]></title>
            <link>https://medium.com/@rit_sri/this-will-save-your-job-for-the-next-10-years-especially-in-data-engineering-131f88b073f1?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/131f88b073f1</guid>
            <category><![CDATA[jobs]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[llm]]></category>
            <category><![CDATA[data-science]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Wed, 25 Feb 2026 15:34:37 GMT</pubDate>
            <atom:updated>2026-02-25T15:35:58.511Z</atom:updated>
            <content:encoded><![CDATA[<p>Let me be very direct.</p><p>If you’re a Data Engineer and you’re only building ETL pipelines…</p><p>Your job is at risk.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*YBmlEfaLrsWf7lvWoEu3WQ.png" /><figcaption>AI generated</figcaption></figure><p>Not because AI will replace you.</p><p>But because <strong>AI-native data engineers</strong> will.</p><p>The next decade will not reward people who only know:<br> • SQL<br> • Airflow<br> • Spark<br> • Basic data warehousing</p><p>Those are table stakes now.</p><p>What will actually save your job?</p><h3>1️⃣ Become an AI-Aware Data Engineer</h3><p>Stop thinking only in terms of pipelines.<br> Start thinking in terms of <strong>data products for AI systems</strong>.</p><p>Can you:</p><p>• Design pipelines for LLM training data?<br> • Build vector databases for semantic search?<br> • Optimize data for RAG architectures?<br> • Handle embeddings at scale?</p><p>If not, that’s your signal.</p><h3>2️⃣ Understand How LLM Systems Actually Work</h3><p>You don’t need to train GPT from scratch.</p><p>But you must understand:</p><p>• Tokenization<br> • Embeddings<br> • Chunking strategies<br> • Retrieval pipelines<br> • Model evaluation<br> • Latency optimization</p><p>Because modern data engineering is becoming <strong>AI infrastructure engineering</strong>.</p><h3>3️⃣ Master Real-Time &amp; Streaming Architectures</h3><p>AI systems thrive on fresh data.</p><p>If you can design:<br> • Event-driven pipelines<br> • Kafka-based architectures<br> • Low-latency data flows<br> • Feature stores for ML systems</p><p>You become hard to replace.</p><h3>4️⃣ Think in Systems, Not Jobs</h3><p>Freshers — read this carefully.</p><p>Don’t aim to become:<br> “Just a Data Engineer.”</p><p>Aim to become:<br> The person who understands how data moves from raw source → warehouse → feature store → AI model → production API.</p><p>That system-level thinking is your moat.</p><p>The uncomfortable truth?</p><p>Traditional data engineering roles will shrink.</p><p>AI-integrated data roles will explode.</p><p>Your career safety in the next 10 years depends on one thing:</p><p>👉 Are you building pipelines…or building intelligence infrastructure?</p><p>I’m doubling down on AI-native data architecture this year.</p><p>What are you focusing on?</p><blockquote>📌𝗙𝗼𝗿 𝗠𝗲𝗻𝘁𝗼𝗿𝘀𝗵𝗶𝗽/ 𝟭:𝟭 𝗖𝗮𝗹𝗹 𝗯𝗼𝗼𝗸 𝗵𝗲𝗿𝗲 — <a href="https://topmate.io/ritu_srivastava">https://topmate.io/ritu_srivastava</a></blockquote><p>📌 𝐋𝐨𝐨𝐤𝐢𝐧𝐠 𝐟𝐨𝐫 𝐑𝐞𝐬𝐮𝐦𝐞 𝐡𝐚𝐯𝐢𝐧𝐠 𝟗𝟎+ 𝐀𝐓𝐒 𝐬𝐜𝐨𝐫𝐞? 𝗗𝗼𝘄𝗻𝗹𝗼𝗮𝗱 𝗥𝗲𝗰𝗿𝘂𝗶𝘁𝗲𝗿-𝗔𝗽𝗽𝗿𝗼𝘃𝗲𝗱 𝗥𝗲𝘀𝘂𝗺𝗲 𝗧𝗲𝗺𝗽𝗹𝗮𝘁𝗲 -<a href="https://topmate.io/ritu_srivastava/1944883">https://topmate.io/ritu_srivastava/1944883</a></p><p>📌𝐅𝐨𝐥𝐥𝐨𝐰 𝐦𝐲 𝐌𝐞𝐝𝐢𝐮𝐦 𝐇𝐚𝐧𝐝𝐥𝐞 𝐭𝐨 𝐬𝐭𝐚𝐲 𝐮𝐩𝐝𝐚𝐭𝐞𝐝 — <a href="https://medium.com/@rit_sri">https://medium.com/@rit_sri</a></p><p>📌<strong>If you’re stuck with a long notice period or planning a switch, this might save you weeks of confusion</strong> — <a href="https://www.naukri.com/minis/video-how-to-tackle-90-days-notice-period-to-switch-a-job-this-could-be-a-life-changing-experience-with-you-i-m-sharing-with-you-if-this-is-helpful-for-you-like-and-share-this-video-with-someone-who-is-in-need-vid-17c66efc-d540-4cfc-a513-26c525892dbc?utm_source=creator_referral_program&amp;utm_content=share_ritu-srivastava">https://www.naukri.com/minis/video-how-to-tackle-90-days-notice-period-to-switch-a-job-this-could-be-a-life-changing-experience-with-you-i-m-sharing-with-you-if-this-is-helpful-for-you-like-and-share-this-video-with-someone-who-is-in-need-vid-17c66efc-d540-4cfc-a513-26c525892dbc?utm_source=creator_referral_program&amp;utm_content=share_ritu-srivastava</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=131f88b073f1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[This Interview Question Made Me Rethink SQL Forever as a DATA ENGINEER]]></title>
            <link>https://medium.com/@rit_sri/this-interview-question-made-me-rethink-sql-forever-as-a-data-engineer-6065d20fb4a9?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/6065d20fb4a9</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[sql]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[database]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Thu, 16 Oct 2025 04:27:54 GMT</pubDate>
            <atom:updated>2025-10-16T05:40:34.465Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>A few years ago, I walked into a data interview feeling confident.</strong></p><p>I had built dashboards.<br> Written hundreds of SQL queries.<br> Maintained ETL pipelines.<br> I thought I had it all figured out.</p><p>Then came a curveball:</p><p><strong>“Can you explain the order in which a SQL query executes?”</strong></p><p>Easy, right?</p><p>“SELECT comes first,” I replied instantly.</p><p>❌ Wrong.</p><h3>The Wake-Up Call</h3><p>One day, during a panel interview, they asked me:</p><blockquote><em>“How would you design a pipeline to ingest sales data daily from 500 stores?”</em></blockquote><p>I started listing tools like a checklist: <em>“I’d use Airflow to schedule jobs, Snowflake for storage, and partition by date…”</em></p><p>They stopped me.</p><p><em>“Forget the tools for a second. How would you </em><strong><em>think</em></strong><em> about designing it?”</em></p><p>I froze. The truth? <strong>I had no idea how to answer without hiding behind tools.</strong></p><p>That evening, it hit me: I was so focused on answering questions correctly that I never learned how to think about scalable system design as a Data Engineer.</p><h3>What Interviewers Actually Want</h3><h3>When they ask about partitioning…</h3><p><strong>❌ What I was giving them:</strong></p><blockquote><em>“Partitioning divides data into smaller, manageable pieces based on a key like date or region.”</em></blockquote><p><strong>✅ What they wanted to hear:</strong></p><ul><li>How I decided partition keys on real projects</li><li>What trade-offs I faced between query speed vs. cost</li><li>What went wrong and how I fixed it</li></ul><p><strong>Example response:</strong></p><blockquote><em>“In my last project, I partitioned customer data by registration date. Initially, I chose daily partitions, but we had small file problems with low-activity days. I switched to weekly partitions and saw 40% faster queries while reducing storage costs.”</em></blockquote><h3>When they ask about data modeling…</h3><p><strong>❌ What I was giving them:</strong></p><blockquote><em>“Star schema has denormalized dimensions, snowflake has normalized ones.”</em></blockquote><p><strong>✅ What they wanted to hear:</strong></p><ul><li>How I understood business needs</li><li>How I chose SCD Type 2 to track customer changes</li><li>How I handled schema evolution without breaking reports</li></ul><p><strong>Example response:</strong></p><blockquote><em>“For our customer analytics, business needed to track address changes over time. I implemented SCD Type 2 with effective dates. When we added a ‘customer_tier’ field later, I used schema evolution with default values to avoid breaking existing dashboards.”</em></blockquote><h3>The Mental Shift</h3><p>I shifted from: <em>“How do I answer this question?”</em> to: <em>“How do I solve this problem and explain my thinking?”</em></p><h3>Real Interview Success</h3><p>In my next interview, when they asked about pipeline design, I didn’t freeze. I sketched out the flow and explained:</p><p>🔹 <strong>“First, I’d check data volume, freshness needs, and SLA.”</strong></p><ul><li>“500 stores × daily sales = roughly 50MB-500MB daily”</li><li>“Do they need real-time dashboards or is next-day okay?”</li></ul><p>🔹 <strong>“Then, I’d think about handling duplicates and schema changes.”</strong></p><ul><li>“I’d implement idempotent processing with unique keys”</li><li>“Use schema registry to handle new product categories”</li></ul><p>🔹 <strong>“For partitioning, I’d test based on volume and watch for small file issues.”</strong></p><ul><li>“Partition by date for time-series queries”</li><li>“Monitor file sizes and adjust if needed”</li></ul><p><strong>The difference?</strong> I showed my thinking process, not just my knowledge.</p><h3>The Framework That Works</h3><h3>1. Start with Requirements</h3><ul><li>Data volume and velocity</li><li>SLA and freshness needs</li><li>Business constraints</li></ul><h3>2. Identify Trade-offs</h3><ul><li>Cost vs. performance</li><li>Complexity vs. maintainability</li><li>Real-time vs. batch processing</li></ul><h3>3. Share Real Experience</h3><ul><li>What worked in past projects</li><li>What failed and how you fixed it</li><li>Lessons learned from production issues</li></ul><h3>💥 A Shift in Perspective</h3><p>That moment stuck with me.<br> Not because I got it wrong — but because it changed how I think about SQL forever.</p><h3>🧠 The Hidden Logic Behind SQL</h3><p>SQL <em>looks</em> like it runs top-to-bottom.<br> But under the hood, the database engine follows a completely different execution order.</p><p>Here’s the actual logical flow:</p><ol><li><strong>FROM</strong> — Load the data</li><li><strong>WHERE</strong> — Filter rows</li><li><strong>GROUP BY</strong> — Group the filtered data</li><li><strong>HAVING</strong> — Filter groups</li><li><strong>SELECT</strong> — Choose columns</li><li><strong>ORDER BY</strong> — Sort results</li><li><strong>LIMIT</strong> — Return final rows</li></ol><h3>🔍 A Simple Example</h3><p>SQL</p><p>SELECT department, COUNT(*) AS headcount FROM employees WHERE salary &gt; 50000 GROUP BY department HAVING COUNT(*) &gt; 5 ORDER BY headcount DESC LIMIT 3;</p><p>Show more lines</p><p>Looks like SELECT comes first — but the engine starts with FROM and ends with LIMIT.</p><p>Understanding this changed everything.</p><h3>🚀 Why It Matters</h3><p>Before this, I’d waste hours debugging:</p><ul><li>Why isn’t this filter working?</li><li>Why is this column missing?</li><li>Why is the aggregation off?</li></ul><p>Now, I debug like the database does — clause by clause.</p><p>FROM<br> WHERE<br> GROUP BY &amp; HAVING<br> SELECT, ORDER BY, LIMIT</p><p>It’s like solving a puzzle in the right order.</p><h3>🛠️ Real-World Impact</h3><p>After that interview, here’s what changed:</p><ul><li>Cleaner SQL — no more spaghetti queries</li><li>Faster debugging — even with 100+ lines</li><li>Smarter optimization — filters come early</li><li>Better mentoring — juniors grasp it faster</li></ul><p>This one concept quietly powers everything else.</p><h3>💡 Key Takeaways</h3><ul><li>SQL doesn’t execute top-to-bottom</li><li>Knowing the logical order = faster queries, easier debugging</li><li>One interview question can reshape your mindset</li></ul><h3>🙌 Your Turn</h3><p>If you work with data, don’t skip this.<br> Mastering SQL’s execution flow is a small habit with massive impact.</p><p>Found this helpful? Drop a 👏 — it helps others discover it too!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=6065d20fb4a9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Why Every Data Engineer Is Talking About dbt — And How It’s Transforming the Modern Data Stack]]></title>
            <link>https://medium.com/@rit_sri/why-every-data-engineer-is-talking-about-dbt-and-how-its-transforming-the-modern-data-stack-b103cf90c691?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/b103cf90c691</guid>
            <category><![CDATA[dbt]]></category>
            <category><![CDATA[transformation]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Sat, 06 Sep 2025 14:13:51 GMT</pubDate>
            <atom:updated>2025-09-06T14:30:37.749Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why Every Data Engineer Is Talking About dbt — And How It’s Transforming the Modern Data Stack</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*cmIDC4hoQUXKJ_W6RtwCBA.png" /><figcaption>AI generated</figcaption></figure><p>If you’ve worked with data, you’ve likely experienced the frustration: <strong>10 slightly different SQL queries for the same metric</strong>, each living in a different dashboard or script. A small business rule change feels like pulling a thread from a tangled ball of yarn — you’re never quite sure what might break.</p><p>This is exactly the problem dbt (Data Build Tool) set out to solve. And it’s why companies like <strong>Airbnb, HubSpot, and GitLab</strong> have embraced it to streamline their transformations, improve data reliability, and scale analytics without drowning in “SQL chaos.”</p><h3>What Is DBT and Why Is It Everywhere?</h3><p>DBT is an open-source framework designed to handle the <strong>T in ELT/ETL — the transformations that happen inside your data warehouse or lakehouse</strong>. Let me break through it in simple terms</p><p>It lets data teams:</p><ul><li>Write SQL as <strong>modular, reusable models</strong>.</li><li>Declare <strong>dependencies between models using </strong><strong>ref()</strong>.</li><li>Run transformations in the right order using a <strong>Directed Acyclic Graph (DAG)</strong>.</li><li>Apply <strong>version control, testing, and documentation</strong> — just like software engineering best practices.</li></ul><p>In other words, dbt treats SQL like code — not an afterthought.</p><h3>Real-World Impact: Who Uses dbt and What’s the Gain?</h3><ul><li><strong>Airbnb</strong> reduced its pipeline maintenance time by <strong>30%</strong> after adopting dbt, making transformations auditable and faster to scale.</li><li><strong>HubSpot</strong> runs <strong>thousands of dbt models</strong> across teams, ensuring analysts and engineers speak the same language when it comes to data definitions.</li><li><strong>GitLab</strong> uses dbt to unify analytics from multiple data sources, cutting data transformation errors by nearly <strong>40%</strong>.</li><li><strong>Fiserv</strong> uses dbt for product solution and data delivery to their customers.</li></ul><p>These companies didn’t just adopt a tool; they adopted a way to <strong>collaborate on data like developers collaborate on code. Hence, the hype is real.</strong></p><h3>How dbt Works: A Simple Example</h3><p>Imagine you have an orders table and you want to calculate the <strong>total revenue per customer</strong>.</p><p><strong>Without dbt</strong>, you might write a SQL query:</p><pre>SELECT<br>    customer_id,<br>    SUM(order_amount) AS total_revenue<br>FROM orders<br>GROUP BY customer_id;</pre><p>Later, your business team asks: <em>“Only include completed orders.”</em> Now you copy-paste and modify the query:</p><pre>SELECT<br>    customer_id,<br>    SUM(order_amount) AS total_revenue<br>FROM orders<br>WHERE status = &#39;completed&#39;<br>GROUP BY customer_id;</pre><p>Now there are two queries floating around, no history, no dependency — classic SQL sprawl.</p><p><strong>With dbt</strong>, you’d:</p><ol><li>Create a base model filtering completed orders (models/base_orders.sql).</li><li>Reference it in your revenue model using {{ ref(&#39;base_orders&#39;) }}.</li></ol><p>dbt automatically:</p><ul><li>Builds a dependency graph.</li><li>Runs them in the right order.</li><li>Makes both models versioned, testable, and documented.</li></ul><h3>Core Features That Make dbt a Game-Changer</h3><ul><li><strong>Testing</strong> — Built-in uniqueness, not-null, and custom checks.</li><li><strong>Documentation &amp; Lineage</strong> — Auto-generated, interactive lineage graphs.</li><li><strong>Incremental Models</strong> — Process only new or changed data (huge cost saver).</li><li><strong>Macros &amp; Jinja Templates</strong> — Reduce SQL duplication across models.</li><li><strong>Community Ecosystem</strong> — dbt Hub provides prebuilt packages for common transformations.</li></ul><h3>Where dbt Fits — and Where It Doesn’t</h3><p>dbt is <strong>not a silver bullet</strong>. It’s amazing at transformations, but it doesn’t:</p><ul><li>Handle <strong>data ingestion</strong> (use Fivetran, Airbyte, or Azure Data Factory).</li><li>Perform <strong>real-time streaming</strong> (use Kafka, Flink, or Spark Streaming).</li><li>Fully orchestrate workflows (use Airflow, Prefect, or dbt Cloud for light orchestration).</li><li>Monitor data quality (pair it with Monte Carlo, Great Expectations, or custom dashboards).</li></ul><p>Think of dbt as the <strong>heart of your transformation layer</strong>, working alongside these tools.</p><h3>Getting Started With dbt in 7 Steps</h3><ol><li><strong>Install dbt</strong>:</li></ol><ul><li>pip install dbt-core dbt-snowflake</li></ul><ol><li><em>(Replace </em><em>dbt-snowflake with your adapter.)</em></li><li><strong>Initialize a project</strong>:</li></ol><ul><li>dbt init my_project</li></ul><ol><li><strong>Set up your warehouse connection</strong> (profiles.yml).</li><li><strong>Create your first model</strong>:</li></ol><ul><li>SELECT * FROM raw.orders WHERE status = &#39;completed&#39;;</li></ul><ol><li><strong>Run transformations</strong>:</li></ol><ul><li>dbt run</li></ul><ol><li><strong>Add tests</strong>:</li></ol><ul><li>models: - name: orders tests: - unique: column_name: order_id</li></ul><ol><li><strong>Generate docs &amp; lineage</strong>:</li></ol><ul><li>dbt docs generate dbt docs serve</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-korbeyEpDLfS_0ybvj8AA.png" /></figure><h3>Final Thoughts: Why dbt Is Becoming a Must-Have for Data Teams</h3><p>dbt has earned its hype because it solves a very real problem: <strong>turning messy, fragile SQL into structured, maintainable pipelines.</strong> It brings software engineering discipline to data work, makes collaboration easier, and scales effortlessly with your data warehouse.</p><p>Whether you’re a data engineer building complex pipelines or an analyst defining KPIs, <strong>adopting dbt means fewer headaches, faster iterations, and far more trust in your data.</strong></p><p>If you have any questions or if there’s a topic you’d like me to cover next, feel free to drop a comment.</p><p>If you’d like to support my work, you can <a href="https://buymeacoffee.com/srivastava7p">buy me a coffee</a> — it’s a small gesture that helps keep the ideas brewing. ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=b103cf90c691" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Let me make it easy for you, ‘AIRFLOW’]]></title>
            <link>https://medium.com/@rit_sri/let-me-make-it-easy-for-you-airflow-5154f2430fcf?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/5154f2430fcf</guid>
            <category><![CDATA[orchestration]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[data-science]]></category>
            <category><![CDATA[airflow]]></category>
            <category><![CDATA[apache-spark]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Sun, 20 Jul 2025 02:41:48 GMT</pubDate>
            <atom:updated>2025-09-06T14:29:51.488Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dESCUBZLHtAEYyEvEWQNyA.jpeg" /><figcaption>designed by author</figcaption></figure><h3>DAG (Directed Acyclic Graph)</h3><ul><li>Definition: A collection of tasks with dependencies, no cycles allowed</li><li>File location: dags/ folder in Airflow home</li><li>Must have: dag_id, start_date, schedule_interval</li></ul><h3>Task</h3><ul><li>Single unit of work within a DAG</li><li>Types: Operators, Sensors, Hooks</li><li>States: none, scheduled, queued, running, success, failed, retry, skipped</li></ul><h3>Operator</h3><ul><li>Defines what actually gets executed</li><li>Common types: BashOperator, PythonOperator, SQLOperator</li><li>Parameters: task_id, dag, depends_on_past, retries</li></ul><h3>Sensor</h3><ul><li>Special operator that waits for external events</li><li>Examples: FileSensor, S3KeySensor, TimeSensor</li><li>Key params: timeout, poke_interval, mode</li></ul><h3>Hook</h3><ul><li>Interface to external systems (databases, APIs, cloud services)</li><li>Examples: PostgresHook, S3Hook, HttpHook</li><li>Manages connections and authentication</li></ul><h3>📅 Scheduling &amp; Execution</h3><h3>Schedule Intervals</h3><pre># Cron expressions<br>&#39;0 0 * * *&#39;        # Daily at midnight<br>&#39;0 */6 * * *&#39;      # Every 6 hours<br>&#39;0 0 * * MON&#39;      # Every Monday</pre><pre># Presets<br>&#39;@once&#39;            # Run once<br>&#39;@daily&#39;           # 0 0 * * *<br>&#39;@weekly&#39;          # 0 0 * * 0<br>&#39;@monthly&#39;         # 0 0 1 * *<br>&#39;@yearly&#39;          # 0 0 1 1 *<br># Timedelta<br>timedelta(hours=1) # Every hour<br>timedelta(days=1)  # Daily</pre><h3>Task Dependencies</h3><pre># Method 1: Using &gt;&gt; and &lt;&lt;</pre><pre>task1 &gt;&gt; task2 &gt;&gt; task3<br>task1 &gt;&gt; [task2, task3] &gt;&gt; task4</pre><pre># Method 2: Using set_upstream/downstream<br>task2.set_upstream(task1)<br>task3.set_downstream(task2)</pre><pre># Method 3: Using depends_on_past<br>task = BashOperator(<br>    task_id=&#39;my_task&#39;,<br>    depends_on_past=True<br>)</pre><h3>🔧 Essential Operators</h3><h3>BashOperator</h3><pre>from airflow.operators.bash import BashOperator<br>bash_task = BashOperator(<br>    task_id=&#39;bash_example&#39;,<br>    bash_command=&#39;echo &quot;Hello World&quot;&#39;,<br>    dag=dag<br>)</pre><h3>PythonOperator</h3><pre>from airflow.operators.python import PythonOperator<br>def my_function(**context):<br>    return &quot;Task completed&quot;<br>python_task = PythonOperator(<br>    task_id=&#39;python_example&#39;,<br>    python_callable=my_function,<br>    dag=dag<br>)</pre><h3>EmailOperator</h3><pre>from airflow.operators.email import EmailOperator<br>email_task = EmailOperator(<br>    task_id=&#39;send_email&#39;,<br>    to=[&#39;admin@company.com&#39;],<br>    subject=&#39;DAG Success&#39;,<br>    html_content=&#39;&lt;h1&gt;Pipeline completed!&lt;/h1&gt;&#39;,<br>    dag=dag<br>)</pre><h3>SQLOperator</h3><pre>from airflow.providers.postgres.operators.postgres import PostgresOperator<br>sql_task = PostgresOperator(<br>    task_id=&#39;sql_example&#39;,<br>    postgres_conn_id=&#39;postgres_default&#39;,<br>    sql=&#39;SELECT * FROM users WHERE active = true;&#39;,<br>    dag=dag<br>)</pre><h3>🏗️ DAG Structure Template</h3><pre>from datetime import datetime, timedelta<br>from airflow import DAG<br>from airflow.operators.bash import BashOperator<br>from airflow.operators.python import PythonOperator<br></pre><pre># Default arguments<br>default_args = {<br>    &#39;owner&#39;: &#39;data-team&#39;,<br>    &#39;depends_on_past&#39;: False,<br>    &#39;start_date&#39;: datetime(2024, 1, 1),<br>    &#39;email_on_failure&#39;: True,<br>    &#39;email_on_retry&#39;: False,<br>    &#39;retries&#39;: 1,<br>    &#39;retry_delay&#39;: timedelta(minutes=5),<br>}<br># DAG definition<br>dag = DAG(<br>    &#39;example_dag&#39;,<br>    default_args=default_args,<br>    description=&#39;Example DAG&#39;,<br>    schedule_interval=&#39;@daily&#39;,<br>    catchup=False,<br>    tags=[&#39;example&#39;, &#39;tutorial&#39;],<br>)<br># Tasks<br>def process_data():<br>    print(&quot;Processing data...&quot;)<br>    return &quot;Data processed&quot;<br>extract = BashOperator(<br>    task_id=&#39;extract_data&#39;,<br>    bash_command=&#39;echo &quot;Extracting data&quot;&#39;,<br>    dag=dag,<br>)<br>transform = PythonOperator(<br>    task_id=&#39;transform_data&#39;,<br>    python_callable=process_data,<br>    dag=dag,<br>)<br>load = BashOperator(<br>    task_id=&#39;load_data&#39;,<br>    bash_command=&#39;echo &quot;Loading data&quot;&#39;,<br>    dag=dag,<br>)<br># Dependencies<br>extract &gt;&gt; transform &gt;&gt; load</pre><h3>🔗 Connections &amp; Variables</h3><h3>Managing Connections</h3><pre># CLI commands<br>airflow connections add &#39;postgres_default&#39; \<br>    --conn-type &#39;postgres&#39; \<br>    --conn-host &#39;localhost&#39; \<br>    --conn-login &#39;airflow&#39; \<br>    --conn-password &#39;airflow&#39; \<br>    --conn-schema &#39;airflow&#39;</pre><pre>from airflow.hooks.postgres_hook import PostgresHook<br>hook = PostgresHook(postgres_conn_id=&#39;postgres_default&#39;)</pre><h3>Variables</h3><pre>from airflow.models import Variable</pre><pre># Set variable<br>Variable.set(&quot;my_var&quot;, &quot;my_value&quot;)<br># Get variable<br>my_value = Variable.get(&quot;my_var&quot;)<br>my_value = Variable.get(&quot;my_var&quot;, default_var=&quot;default&quot;)</pre><h3>📊 XComs (Cross-Communication)</h3><pre># Push XCom<br>def push_function(**context):<br>    value = &quot;Hello from task 1&quot;<br>    context[&#39;task_instance&#39;].xcom_push(key=&#39;my_key&#39;, value=value)<br>    return value  # Also pushes to &#39;return_value&#39; key</pre><pre># Pull XCom<br>def pull_function(**context):<br>    value = context[&#39;task_instance&#39;].xcom_pull(<br>        task_ids=&#39;push_task&#39;,<br>        key=&#39;my_key&#39;<br>    )<br>    print(f&quot;Received: {value}&quot;)<br># In templates<br>&#39;{{ ti.xcom_pull(task_ids=&quot;push_task&quot;, key=&quot;my_key&quot;) }}&#39;</pre><h3>⚡ TaskFlow API (@task decorator)</h3><pre>from airflow.decorators import dag, task<br>from datetime import datetime</pre><pre>@dag(<br>    dag_id=&#39;taskflow_example&#39;,<br>    start_date=datetime(2024, 1, 1),<br>    schedule_interval=&#39;@daily&#39;,<br>    catchup=False<br>)<br>def my_dag():<br>    <br>    @task<br>    def extract():<br>        return {&quot;data&quot;: [1, 2, 3, 4, 5]}<br>    <br>    @task<br>    def transform(data):<br>        return {&quot;processed&quot;: sum(data[&quot;data&quot;])}<br>    <br>    @task<br>    def load(processed_data):<br>        print(f&quot;Final result: {processed_data}&quot;)<br>    <br>    # Dependencies are inferred from function calls<br>    data = extract()<br>    processed = transform(data)<br>    load(processed)<br># Instantiate the DAG<br>dag_instance = my_dag()</pre><h3>🎯 Best Practices</h3><h3>DAG Design</h3><ul><li>✅ Keep DAGs simple and focused</li><li>✅ Use meaningful task and DAG IDs</li><li>✅ Set appropriate timeouts and retries</li><li>✅ Use catchup=False for most cases</li><li>✅ Tag your DAGs for better organization</li></ul><h3>Task Design</h3><ul><li>✅ Make tasks idempotent</li><li>✅ Use appropriate operators for the job</li><li>✅ Handle failures gracefully</li><li>✅ Keep tasks atomic and independent</li><li>✅ Use XComs sparingly (prefer external storage)</li></ul><h3>Performance</h3><ul><li>✅ Use pools to limit resource usage</li><li>✅ Set task concurrency limits</li><li>✅ Use appropriate executor (Local, Celery, K8s)</li><li>✅ Monitor DAG performance regularly</li></ul><h3>🔍 Monitoring &amp; Debugging</h3><h3>Common CLI Commands</h3><pre># List DAGs<br>airflow dags list</pre><pre># Test a task<br>airflow tasks test my_dag my_task 2025-01-01</pre><pre># Trigger DAG<br>airflow dags trigger my_dag</pre><pre># Check DAG status<br>airflow dags state my_dag 2025-01-01</pre><pre># View logs<br>airflow tasks logs my_dag my_task 2024-01-01 1</pre><pre># Backfill<br>airflow dags backfill my_dag -s 2025-01-01 -e 2025-01-31</pre><h3>Task States</h3><ul><li>none: Task not yet scheduled</li><li>scheduled: Task scheduled but not queued</li><li>queued: Task queued for execution</li><li>running: Task currently executing</li><li>success: Task completed successfully</li><li>failed: Task failed</li><li>retry: Task failed but will retry</li><li>skipped: Task was skipped</li><li>up_for_retry: Task failed, waiting for retry</li><li>up_for_reschedule: Sensor task waiting to reschedule</li></ul><h3>DAG States</h3><ul><li>running: DAG currently executing</li><li>success: All tasks completed successfully</li><li>failed: One or more tasks failed</li></ul><h3>🚨 Error Handling</h3><h3>Retry Configuration</h3><pre>default_args = {<br>    &#39;retries&#39;: 3,<br>    &#39;retry_delay&#39;: timedelta(minutes=5),<br>    &#39;retry_exponential_backoff&#39;: True,<br>    &#39;max_retry_delay&#39;: timedelta(hours=1),<br>}</pre><h3>Failure Callbacks</h3><pre>def failure_callback(context):<br>    print(f&quot;Task {context[&#39;task_instance&#39;].task_id} failed&quot;)<br>    # Send notification, log to external system, etc.</pre><pre>task = BashOperator(<br>    task_id=&#39;my_task&#39;,<br>    bash_command=&#39;exit 1&#39;,  # Will fail<br>    on_failure_callback=failure_callback,<br>    dag=dag<br>)</pre><h3>Branching</h3><pre>from airflow.operators.python import BranchPythonOperator</pre><pre>def choose_branch(**context):<br>    if datetime.now().hour &lt; 12:<br>        return &#39;morning_task&#39;<br>    else:<br>        return &#39;afternoon_task&#39;<br>branch = BranchPythonOperator(<br>    task_id=&#39;branching&#39;,<br>    python_callable=choose_branch,<br>    dag=dag<br>)<br>morning = BashOperator(task_id=&#39;morning_task&#39;, bash_command=&#39;echo &quot;Good morning!&quot;&#39;, dag=dag)<br>afternoon = BashOperator(task_id=&#39;afternoon_task&#39;, bash_command=&#39;echo &quot;Good afternoon!&quot;&#39;, dag=dag)<br>branch &gt;&gt; [morning, afternoon]</pre><h3>🌐 Assets (Data-Aware Scheduling)</h3><pre>from airflow import Dataset<br># Define datasets<br>raw_data = Dataset(&quot;s3://bucket/raw-data/&quot;)<br>processed_data = Dataset(&quot;postgres://db/processed_table&quot;)<br># Producer DAG<br>@dag(schedule_interval=&#39;@daily&#39;)<br>def producer_dag():<br>    @task(outlets=[processed_data])<br>    def process():<br>        # Process data and update dataset<br>        return &quot;Data processed&quot;<br>    <br>    process()<br># Consumer DAG<br>@dag(schedule=[processed_data])  # Triggered by dataset update<br>def consumer_dag():<br>    @task<br>    def analyze():<br>        return &quot;Analysis complete&quot;<br>    <br>    analyze()</pre><h3>📚 Useful Resources</h3><ul><li><strong>Official Docs</strong>: <a href="https://airflow.apache.org/docs/">https://airflow.apache.org/docs/</a></li><li><strong>Community</strong>: <a href="https://airflow.apache.org/community/">https://airflow.apache.org/community/</a></li><li><strong>GitHub</strong>: <a href="https://github.com/apache/airflow">https://github.com/apache/airflow</a></li><li><strong>Slack</strong>: apache-airflow.slack.com</li></ul><p>If you’d like to support my work, you can <a href="https://buymeacoffee.com/srivastava7p">buy me a coffee</a>— it’s a small gesture that helps keep the ideas brewing. ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5154f2430fcf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Stop Being “Just” a Data Engineer — 2025 Roadmap to Lead the Stack]]></title>
            <link>https://medium.com/@rit_sri/stop-being-just-a-data-engineer-2025-roadmap-to-lead-the-stack-1a0c3223a38d?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1a0c3223a38d</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[blog]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Fri, 18 Jul 2025 11:16:12 GMT</pubDate>
            <atom:updated>2025-09-06T14:32:29.925Z</atom:updated>
            <content:encoded><![CDATA[<h3>Stop Being “Just” a Data Engineer — 2025 Roadmap to Lead the Stack</h3><p>The Data Engineer’s No-Fluff Guide to Staying Relevant!</p><p>Before we get into it, let me just say this — <strong>both soft skills and tech skills matter</strong>.<br> We’re not just moving data from A to B. We’re here to <strong>make sense of chaos</strong> and turn data into something meaningful for the business. But let’s be honest — for most of us, it’s our <em>technical chops</em> that keep us valuable.<br> The ability to write clean, scalable code under pressure? That’s still the game.</p><p>And if you’re a Senior or beyond, even if you’re not hands-on every day, you’re still expected to:<br> 1-Navigate an overwhelming jungle of tools and platforms<br> 2-Handle vendors changing pricing like it’s a stock market<br> 3-Answer questions like “Can we plug in GenAI here?” (everywhere, literally everywhere)<br> 4-And quietly laugh (or panic?) at the AGI hype train, knowing full well that 5-Transformers aren’t magic without some serious breakthroughs</p><p>It’s a lot.<br> And that’s exactly why we need a roadmap that’s <em>not</em> for beginners, but for those of us already in the trenches.</p><p>Ok, we can <strong>breathe</strong> again.</p><blockquote><em>In this post I’ll guide you through the consolidated technologies used by data engineers beyond the starter stack.</em></blockquote><p><strong><em>If you’re reading this, I expect you to have these skills already:</em></strong></p><p>Python / SQL / Data Modeling / Spark (or any flavor of RDD) / Git /</p><p>Any cloud analytics stack</p><p>I’ll focus on established and mainstream tools, setting aside emerging favorites in the data community.</p><p><strong><em>We’ll cover these topics:</em></strong></p><p>∘ <em>Books<br>∘ Leetcode’s SQL 50<br>∘ Open Table Format<br>∘ Data Lake + Data Warehouse<br>∘ Modern OLAP<br>∘ Streaming<br>∘ Real-time Processing<br>∘ Other Flavors of DB<br>∘ Orchestration<br>∘ Data Quality<br>∘ CI/CD<br>∘ AI Code Editor<br>∘ Visualization<br>∘ Data Validation<br>∘ Containers<br>∘ Cloud Security &amp; Networking<br>∘ OAuth2.0 and other kinds of auth<br>∘ Certifications<br>∘ Conferences<br>∘ Project Ideas</em></p><p><em>⚠️ </em>This post is not data-driven, so read it cautiously and apply it to the context you or your employer are currently in.</p><p><strong><em>We’ll not cover Kubernetes.</em></strong></p><p>Yes, it’s a lot, so <strong>let’s get started</strong>:</p><p>BOOKS</p><p>I’m starting with books for a reason — this post isn’t meant to repeat what’s already been covered in foundational texts.</p><p>If you haven’t read these yet or don’t feel confident with their content, I recommend bookmarking this post and coming back once you’ve gone through them. They’ll give you the grounding you need to get the most out of what’s ahead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Nzcrxx9bjpBB7RAW.png" /></figure><p><strong>Fundamentals of Data Engineering</strong></p><p>Joe Reis and Matt Housley bring future proof of what it means to be a data engineer and go through the concepts of data generation, ingestion, orchestration, transformation, storage, and governance.</p><p><strong>The Data Warehouse Toolkit: The Definitive Guide to Dimensional Modeling</strong></p><p>So classic people refer to it as just Kimball, we have all been there, if you haven’t read it already or understand what is the Kimball Model, time to go for it.</p><p>The book introduces us to the concepts of</p><ul><li>Star Schema Design</li><li>Dimension and Fact Table Architecture</li><li>Slowly Changing Dimensions (SCDs)</li><li>Conformed Dimensions</li><li>Bus Architecture</li></ul><p><strong>Designing Data-Intensive Applications</strong><br> If you work with software, this book is a must-read. It doesn’t just tell you <em>what</em> tools to use — it helps you understand <em>why</em> you should use them, and how they function under the hood.</p><p>It blends real-world case studies with deep technical insight into databases and modern data architectures, giving you the knowledge to make smarter decisions and understand the trade-offs behind them.</p><h3>Leetcode’s SQL 50</h3><p>While some suggest completing three problems daily, we’ll take a more sustainable approach throughout the year.</p><p>This year, we’ll solve problems at your own pace, focusing on understanding how to optimize time and space complexity rather than rushing through the exercises.</p><p>The graph below displays the distribution of successful submission times (solutions that passed all test cases).</p><p><strong><em>Learning goals:</em></strong></p><p>Our objective is to optimize our solution to align with the most efficient group of users, represented by the leftmost peak of the distribution curve. While multiple peaks may exist, focusing on the leftmost one represents the optimal balance between correctness and execution time</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*FMM03MIrK3ASgjuF.png" /></figure><p><strong><em>Resources:</em></strong></p><p><a href="https://leetcode.com/studyplan/top-sql-50/">Leetcode SQL 50</a></p><p><a href="https://www.hackerrank.com/domains/sql">Hacker Rank SQL</a></p><p><a href="https://youtube.com/playlist?list=PLE9ajAH604fpl7zhomOXNzMpthr2Qxq_x&amp;si=qPiWdlzEX5yiCkI2">Youtube link for best solution: </a>Click now!</p><h3>Open Table Format</h3><p>In 2024, Apache Iceberg emerged as the clear frontrunner in the data lake table format battle, particularly after AWS threw its weight behind it with native S3 Tables integration, effectively overshadowing Delta Lake.</p><p>Still wrestling with raw Parquet files and gzip compression like it’s 2017? It’s time to stop living in the past. Meet Apache Iceberg — the table format your future self will thank you for. 😵</p><h3>🎯<strong><em>Learning goals:</em></strong></h3><ul><li>Understand use cases in which your team will benefit from using Open Tables</li><li>Hidden Partitioning</li><li>Schema Evolution</li><li>Time Travel</li><li>Data Compaction</li></ul><p><strong><em>Resources:</em></strong></p><p>Tabular, the creators of Iceberg, acquired by Databricks have their <a href="https://www.tabular.io/apache-iceberg-cookbook/introduction-from-the-original-creators-of-iceberg/">Introduction Guide</a>.</p><p>Dremio has a perfect <a href="https://www.youtube.com/playlist?list=PL-gIUf9e9CCtGr_zYdWieJhiqBG_5qSPa">YouTube Playlist</a> for more visual learners, like me.</p><h3>Data Lake + Data Warehouse</h3><p>By now, you’re probably well-versed in terms like <strong>Data Lake</strong>, <strong>Data Warehouse</strong>, <strong>Lakehouse</strong>, <strong>Data Mart</strong>, and so on.</p><p>Over the past decade, <strong>storage has become significantly cheaper than compute</strong>, and that shift gave rise to the <strong>Lakehouse</strong> — a hybrid approach aiming to blend the best of both worlds.</p><p>But here’s where it gets tricky:<br> As Data Engineers, we often see companies choosing between <strong>Snowflake</strong> and <strong>Databricks</strong>, as if they’re interchangeable — two flavors of the same thing.</p><p>They’re not.</p><p>Our real job is to go deeper — to understand <strong>why</strong> a business might choose one over the other, and more importantly, <strong>when</strong> to opt for a Data Lake vs. a Data Warehouse.<br> Because behind every architecture decision is a trade-off, and it’s our role to guide those choices with clarity and context.</p><p>But if you don’t, here’s a video by Databricks presenting the concepts:</p><p><strong><em>Learning goals:</em></strong></p><ul><li>Differences between Data Lake and Data Warehouse</li><li>Snowflake vs Databricks</li></ul><p><strong><em>Data Lake Alternatives</em></strong>:</p><ul><li><a href="https://www.tabular.io/">Tabular</a></li><li><a href="https://www.microsoft.com/">Microsoft</a></li><li><a href="https://www.databricks.com/company/about-us">Databricks</a></li><li><a href="https://delta.io/">Delta Lake</a></li></ul><p><strong><em>Data Warehouse Alternatives</em></strong>:</p><ul><li>Snowflake</li><li>Redshift</li><li>BigQuery</li></ul><h3>Modern OLAP</h3><p>The explosive momentum of OLAP (<em>Online Analytical Processing) </em>databases like DuckDB, Druid, Pinot, and Clickhouse demands attention. Despite any initial reservations, their growing adoption makes understanding these analytical processing systems’ fundamentals a worthwhile investment for data professionals.</p><h3>🎯<strong><em>Learning goals:</em></strong></h3><ul><li>Learn <strong>when it actually makes sense to use OLAP</strong> in your architecture — and why it’s still highly relevant in certain scenarios.</li><li>Also, dive into <strong>why the OLAP space has seen so many new players recently</strong>. What gaps are they filling? And what are giants like <strong>Microsoft and Oracle missing</strong> in this evolving landscape?</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://dev.to/hoptical/clickhouse-basic-tutorial-an-introduction-52il">ClickHouse Basic Tutorial</a></p><p><a href="https://www.timescale.com/learn/understanding-olap-how-it-works-tools-to-use">Timescale: Understanding OLAP</a></p><p><strong><em>Alternatives</em></strong>:</p><ul><li><a href="https://druid.apache.org/">Apache Druid</a></li><li><a href="https://clickhouse.com/">ClickHouse</a></li><li><a href="https://pinot.apache.org/">Apache Pinot</a></li><li><a href="https://kylin.apache.org/">Apache Kylin</a></li><li><a href="https://duckdb.org/">DuckDB</a></li></ul><h3>Streaming</h3><p>While Apache Kafka is widely adopted, you’re free to explore other streaming platforms that best suit your needs.</p><p>Our goal here is to understand why most companies are adopting Apache Kafka as their main Data Source for both streaming and batch sinking.</p><p><strong><em>Learning goals:</em></strong></p><ul><li>Understand the use cases where Streaming is the best option</li><li>Kappa vs Lambda</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://www.confluent.io/resources/online-talk/fundamentals-workshop-apache-kafka-101/">Fundamentals Workshop: Apache Kafka 101</a></p><h3>Real-time Processing</h3><p>Along with Streaming, we need to introduce the concept of Real-Time Processing, which is usually implemented along with Apache Flink or Spark Streaming.</p><h3>🎯<strong><em>Learning goals:</em></strong></h3><ul><li>Understand the common Use Cases for Real-Time i.e. data analytics, fraud detection, rule-based alerting, etc.</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://www.timescale.com/learn/data-analytics-vs-real-time-analytics-how-to-pick-your-database">Timescale: Data Analytics vs. Real-Time Analytics: How to Pick Your Database</a></p><p><a href="https://developer.confluent.io/courses/apache-flink/intro/">Confluent: Apache Flink — A Complete Introduction</a></p><h3>Other Flavors of DB</h3><p>Key-Value / In-Memory / Document / Wide-Column / Graph / Time-Series</p><p>Yes, there are a lot of Database types, and Postgres always seems the best one to go.</p><p>But we need to be able to understand, as consumers or producers, the other options.</p><p>🎯<strong><em>Learning goals:</em></strong></p><ul><li>Get an overview of the Pros and Cons for each Database Type, including the ability and interest of your team to learn a new concept</li><li>Acquire a wider range of options than just Postgres and MongoDB</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://docs.aws.amazon.com/decision-guides/latest/databases-on-aws-how-to-choose/databases-on-aws-how-to-choose.html">Choosing an AWS Database Service</a></p><h3>Orchestration</h3><p>When it comes to orchestration tools, <strong>there are plenty of options</strong> — Dagster, Prefect, and others — but <strong>Apache Airflow still holds its place as the industry standard</strong> for managing data pipelines at scale.</p><p>Yes, it has its quirks. Many data engineers have voiced concerns about the current version, and there’s a lot of buzz around what Airflow 3.0 might bring. But despite its limitations, <strong>Airflow remains the most battle-tested and widely adopted solution</strong> out there.</p><h3>🎯 Learning Focus:</h3><p>The goal isn’t just to schedule tasks — it’s to <strong>unlock the full power of orchestration</strong>: managing dependencies, handling retries, integrating with your broader data stack, and streamlining complex workflows.</p><p>If you’re just getting started, a great first step is pairing <strong>Apache Airflow with dbt Core</strong> — a combination that offers both power and clarity for building reliable data pipelines.</p><p><strong><em>Alternatives:</em></strong></p><ul><li><a href="https://www.mage.ai/">Mage</a></li><li><a href="https://www.astronomer.io/">Astronomer</a></li><li><a href="https://www.prefect.io/">Prefect</a></li><li><a href="https://www.dagster.io/">Dagster</a></li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://airflow.apache.org/docs/apache-airflow/stable/start.html">Airflow Documentation</a></p><p><a href="https://www.udemy.com/course/the-complete-hands-on-course-to-master-apache-airflow">The Complete Hands-On Introduction to Apache Airflow (Paid)</a> on Udemy by <a href="https://www.linkedin.com/in/marclamberti/">Marc Lambert</a> (you should also follow him!)</p><h3>Data Quality</h3><p>Bringing modularity and simplicity to the transformation layer of modern ELT pipelines, enabling data teams to build and manage data transformations using software engineering best practices.</p><p>As the industry shifts from ETL to ELT workflows, dbt Core offers a free, open-source solution for handling the critical transformation phase with version control, testing, and documentation capabilities.</p><p><strong><em>Learning goals:</em></strong></p><ul><li>Determine the appropriate level of Data Quality checks by analyzing similar use cases you aim to implement.</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://learn.getdbt.com/courses/dbt-fundamentals">dbt Fundamentals</a>, from dbt Labs.</p><p><strong><em>Alternatives:</em></strong></p><ul><li><a href="https://www.getdbt.com/">dbt</a></li><li><a href="https://www.greatexpectations.io/">Great Expectations</a></li><li><a href="https://coalesce.io/">Coalesce</a></li><li><a href="https://www.soda.io/">Soda</a></li></ul><h3>CI/CD</h3><p>It used to be harder to set up CI/CD, but now we have GitHub Actions and other options that integrate with our Git workflow.</p><p>So it’s time to learn the basics of GH Actions.</p><pre>name: GitHub Actions Demo<br>run-name: ${{ github.actor }} is testing out GitHub Actions 🚀<br>on: [push]<br>jobs:<br>  Explore-GitHub-Actions:<br>    runs-on: ubuntu-latest<br>    steps:<br>      - run: echo &quot;🎉 The job was automatically triggered by a ${{ github.event_name }} event.&quot;<br>      - run: echo &quot;🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!&quot;<br>      - run: echo &quot;🔎 The name of your branch is ${{ github.ref }} and your repository is ${{ github.repository }}.&quot;<br>      - name: Check out repository code<br>        uses: actions/checkout@v4<br>      - run: echo &quot;💡 The ${{ github.repository }} repository has been cloned to the runner.&quot;<br>      - run: echo &quot;🖥️ The workflow is now ready to test your code on the runner.&quot;<br>      - name: List files in the repository<br>        run: |<br>          ls ${{ github.workspace }}<br>      - run: echo &quot;🍏 This job&#39;s status is ${{ job.status }}.&quot;</pre><h3>🎯<strong><em>Learning goals:</em></strong></h3><ul><li>Learn common use cases for CI/CD to save your time, not only for build and deploy</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://docs.github.com/en/actions/use-cases-and-examples">GH Actions: Use Cases and Examples</a></p><p><a href="https://github.com/sdras/awesome-actions">Awesome Actions</a></p><h3>AI Code Editor</h3><p>It’s being reported that Engineers’ productivity went up by 25% when using AI-aided coding, both GH Copilot and Cursor make it easy to integrate with our coding workflow instead of making it a cumbersome copy-paste activity.</p><p>🎯<strong><em>Learning goals:</em></strong></p><ul><li>Test a couple of AI Code editors and see which one adapts well into your current workflow</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://docs.github.com/en/copilot/managing-copilot/managing-copilot-as-an-individual-subscriber/about-github-copilot-free">Github Copilot Free</a></p><p><a href="https://www.cursor.com/features">Cursor Features</a></p><h3>Visualization</h3><p>Data visualization extends beyond the traditional Data Analyst domain. Understanding how end users interact with data — whether through direct exports or visualization tools — is crucial for effective data engineering.</p><p>While tools like Microsoft Power Query can handle basic data transformations, they’re unsuitable for large-scale data processing. These desktop-based solutions often fail when dealing with datasets that exceed local memory constraints, making them an inappropriate choice for enterprise-level data pipelines.</p><h3>🎯<strong><em>Learning goals:</em></strong></h3><ul><li>Understand the limitations of the most used DataViz tools</li><li>Know common patterns that should be replaced with ETL</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://www.datacamp.com/blog/power-bi-vs-tableau-which-one-should-you-choose">Datacamp: Power BI vs. Tableau</a></p><p><a href="https://www.simplilearn.com/data-visualization-tools-article">23 Best DataViz Tools</a></p><p><strong><em>Alternatives</em></strong>:</p><ul><li><a href="https://www.tableau.com/">Tableau</a></li><li><a href="https://powerbi.microsoft.com/">Power BI</a></li><li><a href="https://streamlit.io/">Streamlit</a></li><li><a href="https://www.preset.io/">Preset</a></li><li><a href="https://www.metabase.com/">Metabase</a></li><li><a href="https://www.qlik.com/us">Qlik</a></li></ul><h3>Data Validation</h3><p>Pydantic has established itself as a game-changing data validation library in Python’s ecosystem, transforming how we handle data structures and type checking.</p><p>By supercharging Python’s native dataclasses with intuitive validation capabilities, Pydantic has accomplished what the standard library’s dataclasses couldn’t: widespread adoption in the data community. Its seamless integration with FastAPI further cements its position as an essential tool for modern data engineering.</p><p>The library’s elegant approach to runtime type checking and data validation has made previously tedious input validation tasks both robust and maintainable.</p><p><strong><em>Learning goals:</em></strong></p><ul><li>Understand the difference between Dataclasses/Pydantic and regular Data Quality checks.</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://docs.pydantic.dev/latest/">Pydantic Docs</a></p><h3>Containers</h3><p>Beyond building and running containers, crafting efficient Dockerfiles is crucial.</p><p>As Data Engineers, we’ll prioritize two key learning aspects: properly exposing database ports and optimizing image size for maximum performance</p><p><strong><em>Learning goals:</em></strong></p><ul><li>Understanding Containerization</li><li>Dockerfile: A text file containing instructions to build a Docker image</li><li>Port Mapping: Connect container ports to host ports (-p 80:80)</li><li>Volumes: Persistent data storage outside containers</li><li>Networks: Connect containers to communicate</li><li>Environment Variables: Configure containers at runtime</li><li>Docker Compose: Tool for defining multi-container applications</li></ul><p><strong><em>Resources: </em></strong><a href="https://learn.cantrill.io/p/docker-fundamentals?source=post_page-----2b39d865dd0b---------------------------------------">Docker Fundamentals</a></p><h3><a href="https://learn.cantrill.io/p/docker-fundamentals?source=post_page-----2b39d865dd0b---------------------------------------">Learn just enough docker to to do simple things</a></h3><p><a href="https://learn.cantrill.io/p/docker-fundamentals?source=post_page-----2b39d865dd0b---------------------------------------">learn.cantrill.io</a></p><p><a href="https://www.docker.com/101-tutorial/">Docker 101</a></p><h3>Cloud Security &amp; Networking</h3><p>We often start with just enough setup to get our cloud environments running.</p><p>However, it’s now time to implement the principle of least privilege and learn to operate within private subnets, i.e., subnets that do not allow direct internet access.</p><blockquote><em>Friends don’t let friends use IAM Users</em></blockquote><p><strong><em>Learning goals:</em></strong></p><ul><li>Learn how to protect the data you’re working on, removing internet connection and granting only necessary access.</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/best-practices.html">Security best practices in IAM</a></p><p><a href="https://docs.aws.amazon.com/vpc/latest/userguide/vpc-security-best-practices.html">Security best practices for your VPC</a></p><p><a href="https://owasp.org/www-project-top-ten/">OWASP Top Ten</a></p><h3>API Development</h3><p>An API management tool remains essential in a Data Engineer’s toolkit.</p><p>While Postman’s free tier has become increasingly limited compared to its early days, mastering an API testing platform is non-negotiable in our field.</p><p>Whether for validating endpoints before pipeline integration or importing OpenAPI (formerly Swagger) specifications, having a reliable API testing environment streamlines the development process and reduces integration headaches downstream.</p><p><strong><em>Learning goals:</em></strong></p><ul><li>We aim to set up a development environment, import an Open API schema, or build our own Open API Schema.</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://jnikenoueba.medium.com/how-to-define-an-openapi-schema-with-fastapi-9af41e9b7e83">How to Define an Open API Schema</a></p><p><strong><em>Alternatives:</em></strong></p><h3>OAuth2.0 and other kinds of auth</h3><p>Learning and doing beginner projects it’s common to use Public APIs to get data, but in a working setting, that’s not the case.</p><p>You’ll probably need to use a form of authentication, OAuth2.0 being the most common. And while putting client_id/client_secret in Postman or your favorite BI tool, as a Data Engineer we’ll need to add this to our Python Code base.</p><p><strong>Basic Authentication Types</strong></p><p>No Auth / API Key / Bearer Token</p><p><strong>Advanced Authentication Types</strong></p><p>JWT Bearer / Basic Auth / OAuth 2.0</p><p>In the image below is the classic Spotify API, and while getting the refresh token is an easy task, getting the proper setup for the user to accept the authorization scope, is not the easiest task (as we’re not full stack engineers)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wylmuwXlvk-iSRrm.png" /></figure><p>Image from <a href="https://developer.spotify.com/documentation/web-api/tutorials/code-flow">Spotify API Documentation</a></p><p><strong><em>Learning goals:</em></strong></p><ul><li>Understand the available methods for API Auth, learn how to implement it fast, and debug it.</li></ul><p><strong><em>Resources:</em></strong></p><p><a href="https://learning.postman.com/docs/sending-requests/authorization/authorization/">API authentication and authorization in Postman</a></p><p><a href="https://docs.insomnia.rest/insomnia/authentication">Kong’s Insomnia: Authentication</a></p><h3>Certifications</h3><p>Set aside the never-ending debate between hands-on projects and certifications.</p><p>Now is the time to pursue an Associate-Level Certification with the cloud provider you previously selected.</p><p>I recommend a more general credential like the AWS Solutions Architect Associate, but the choice is yours — even if you’re focusing on data engineering.</p><p>Expect to spend around two months preparing for the exam.</p><p><strong><em>Resources:</em></strong></p><p><a href="https://aws.amazon.com/certification/certified-data-engineer-associate/">AWS Certified Data Engineer — Associate</a></p><p><a href="https://learn.microsoft.com/en-us/credentials/certifications/azure-data-engineer/">Microsoft Certified: Azure Data Engineer Associate</a></p><p><a href="https://cloud.google.com/learn/certification/data-engineer">GCP Professional Data Engineer</a></p><h3>Conferences</h3><p>Usually, company conferences will be when they do the most simultaneous releases, we need to check the top announcements for our favorite vendor to stay on the top of our game.</p><ul><li>Data + AI Summit — June 9–12, San Francisco, CA, USA + Online</li><li>Snowflake Summit 2025, will take place from June 2–5, 2025, at the Moscone Center in San Francisco</li><li>Google Cloud Next 2025, will be held from April 9–11, 2025, at the Mandalay Bay Convention Center in Las Vegas</li><li>Coalesce 2025, by dbt Labs, will take place in Las Vegas from October 4–11, 2025</li><li>Microsoft Ignite 2025: will be held November 19–21, 2025</li><li>AWS re:Invent 2025 will take place December 1–5, 2025, in Las Vegas, Nevada</li></ul><h3>Project Ideas</h3><p>As a great contemporary philosopher said (I’ll give the credit if he ends up reading this article):</p><blockquote><em>“Studying without practicing is entertainment”</em></blockquote><p><strong><em>Learning goals:</em></strong></p><ul><li>Getting Hands-on experience on some of the topics from this article</li><li>Building a GitHub Portfolio</li></ul><blockquote><em>💡 Did you know that you can “Clap” up to 50 times in Medium?</em></blockquote><p>When reading an article on Medium, click the clap icon (👏) and hold it down or click repeatedly to give anywhere from 1 to 50 claps.</p><p>Loved this article ❤️? Share it with your friends and colleagues!</p><p>If you’d like to support my work, you can <a href="https://buymeacoffee.com/srivastava7p">buy me a coffee</a> — it’s a small gesture that helps keep the ideas brewing. ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1a0c3223a38d" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Leveling Up as a Data Engineer in 2025 — My Step-by-Step Plan]]></title>
            <link>https://medium.com/@rit_sri/leveling-up-as-a-data-engineer-in-2025-my-step-by-step-plan-95e7ea5ec47e?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/95e7ea5ec47e</guid>
            <category><![CDATA[cloud]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[llm]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Tue, 08 Jul 2025 01:53:51 GMT</pubDate>
            <atom:updated>2025-07-08T01:53:51.647Z</atom:updated>
            <content:encoded><![CDATA[<h3>Leveling Up as a Data Engineer in 2025 — My Step-by-Step Plan</h3><h3>🚨 In 2022, learning Spark &amp; SQL felt like a superpower.</h3><p>In 2025? It feels like the <strong>bare minimum.</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*IIH2xiyPwDVkTDjkbElDuA.png" /></figure><p>The turning point came at 2:17 AM on a Databricks job failure.</p><p>I was neck-deep in delta logs trying to debug a schema drift issue. But the real question wasn’t <em>“Why is the schema corrupt?”<br></em>I was knee-deep in delta logs, but the real question wasn’t about a corrupted schema — it was about my own growth:</p><p>It was this:<br> 👉 <em>“Am I growing fast enough to keep up with where data engineering is headed?”</em></p><h3>🌍 The Data Landscape Has Changed — Fast.</h3><p>🧠 AI agents are writing unit tests<br> 📜 LLMs are generating documentation<br> 🛠️ Platform engineering is replacing repetitive dev work<br> 📦 Pipelines aren’t the end — they’re just the start</p><blockquote><em>The value isn’t just in moving data anymore — it’s in how you </em>productize, govern,<em> and </em>enhance<em> it with AI.</em></blockquote><h3>What Top Data Engineers Are Doing in 2025</h3><p>In 2025, the best data engineers aren’t just “pipeline builders.”<br> They’re becoming <strong>AI-literate, platform-first thinkers</strong>.</p><p>Here’s what that looks like in practice:</p><ul><li>🤖 <strong>Orchestrating AI-powered workflows</strong></li><li>🔍 <strong>Automating data documentation with LLMs</strong></li><li>🗂️ P<strong>rocessing unstructured data at scale</strong></li><li>🧠 <strong>Integrating GenAI with LangChain + Databricks</strong></li><li>🔗 <strong>Working with vector DBs like Pinecone, Weaviate</strong></li><li>🧪 <strong>Building custom AI agents to reduce manual toil</strong></li><li>⚖️ <strong>Learning MLOps &amp; governance (even as engineers)</strong></li><li>📦 <strong>Thinking like platform engineers — reusability &gt; scripts</strong></li></ul><h3>🧭 My 2025 Data Engineering Roadmap</h3><p>What I’m Learning (and You Should Too)</p><h3>1️⃣ Master the Modern Stack — with Automation</h3><ul><li>✅ Spark, Delta, Unity Catalog, dbx</li><li>🤖 GitHub Copilot + Databricks CLI = speed boost</li><li>🕵️ Data observability with Monte Carlo, OpenMetadata, Soda</li></ul><h3>2️⃣ Understand Generative AI &amp; Agents</h3><ul><li>🧠 LangChain + OpenAI APIs</li><li>🔍 Natural Language → SQL pipelines</li><li>📦 Vector DBs: Pinecone, Weaviate, Chroma</li><li>🛠️ Create agents that write queries, fix broken pipelines, or document data flows</li></ul><h3>3️⃣ Learn MLOps / LLMOps Basics</h3><p>Even if you’re not a data scientist:</p><ul><li>🚀 MLflow (model tracking &amp; serving)</li><li>📊 Azure ML / PromptFlow (LLM workflows)</li><li>🧠 Understand fine-tuning, inference, and prompt engineering</li></ul><h3>4️⃣ Embrace Platform Engineering</h3><ul><li>📦 Databricks Asset Bundles (DAB)</li><li>🔁 CI/CD via GitHub Actions, Terraform, Azure DevOps, AWS EKS</li><li>🧱 Infra as Code &gt; manual cluster setups</li><li>🧑‍💻 Treat pipelines like <strong>products</strong>: versioned, tested, modular</li></ul><h3>5️⃣ System Design for Data @ Scale</h3><ul><li>📐 Event-driven architecture: Kafka, Delta Live Tables</li><li>💸 Cost-aware design: optimize for performance &amp; price</li><li>🌍 Build multi-tenant, real-time systems with SLAs in mind</li></ul><h3>🎓 Go-To Resources &amp; Courses</h3><h3>GenAI for Data Engineers</h3><ul><li><strong>Databricks Academy</strong> — Generative AI Fundamentals</li><li><strong>LangChain Bootcamp</strong> (YouTube + GitHub)</li><li><strong>DeepLearning.AI</strong> — LLMOps specialization</li></ul><h3>MLOps &amp; AI Engineering</h3><ul><li><strong>MLflow + Model Serving</strong> — Databricks Academy</li><li><strong>PromptFlow</strong> — Azure</li><li><strong>Coursera</strong> — MLOps with TensorFlow &amp; TFX</li></ul><h3>LangChain &amp; AI Agents</h3><ul><li><strong>LangGraph Tutorials</strong> — Multi-agent workflows</li><li><strong>Chat With Your Data</strong> — LangChain YouTube Series</li><li><strong>LlamaIndex</strong> — Knowledge graph agents</li></ul><h3>🧠 How I Save 10+ Hours/Week (Real-World Hacks)</h3><ul><li>🧑‍💻 GitHub Copilot’s <strong>agent mode</strong> → write tests, debug YAML</li><li>💬 Slack bot using OpenAI → generate SQL + explain queries</li><li>⚡ Use <strong>Databricks Assistant</strong> to debug notebooks faster</li><li>📝 Automate metadata population with LLMs</li><li>📢 Trigger alerts using AI-based anomaly detection (vs fixed thresholds)</li></ul><h3>💡 Final Advice for Fellow Data Engineers</h3><blockquote><em>2025 isn’t the year to stay “comfortable.”<br> It’s the year to </em><strong><em>adapt, build smarter</em></strong><em>, and ride the GenAI wave</em></blockquote><p>So, what should you focus on?</p><p>✅ Learn how GenAI changes your tools<br> ✅ Build WITH AI, not just around it<br> ✅ Treat your career like a <strong>product</strong> — test, learn, ship, improve<br> ✅ Don’t just run pipelines — build platforms, mentor others, scale ideas</p><h3>🔚 Closing Thought</h3><p>The question isn’t <strong>“Will AI replace data engineers?”</strong></p><p>The real question is:<br> <strong>“Will <em>you</em> learn how to work with AI before someone else does?”</strong></p><p>🧠 If you found this valuable, drop a like or comment — or share it with a fellow data engineer exploring their 2025 roadmap.</p><p>Follow me for more behind-the-scenes insights on:</p><ul><li>Databricks + GenAI</li><li>Modern Data Stack</li><li>Career growth in tech’s AI era</li></ul><p>Let’s upscale together 🚀</p><p><em>Hello, I am Ritu Srivastava, a </em><strong><em>Senior Data Engineer </em></strong><em>at </em><strong><em>Coforge </em></strong><em>and desk.to.destination YouTuber (</em><a href="https://www.youtube.com/@Corporate_Couple">Link<em>),</em></a><em> a mentor(</em><a href="https://topmate.io/ritu_srivastava"><em>Link</em></a><em>), and my goal is to help more people break into a data engineering career.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=95e7ea5ec47e" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[I Didn’t Think Databricks Lakebase Was a Big Deal — Until I Dug Deeper]]></title>
            <link>https://medium.com/@rit_sri/i-didnt-think-databricks-lakebase-was-a-big-deal-until-i-dug-deeper-7e3a7e89d3eb?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/7e3a7e89d3eb</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[etl]]></category>
            <category><![CDATA[azure]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[blog]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Tue, 17 Jun 2025 03:40:06 GMT</pubDate>
            <atom:updated>2025-09-06T14:33:37.282Z</atom:updated>
            <content:encoded><![CDATA[<h3><strong>I Didn’t Think Databricks Lakebase Was a Big Deal — Until I Dug Deeper</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xC4dt3v5YavHg_3ad6s6GQ.png" /></figure><p>When I first saw the <strong>Lakebase</strong> announcement, I rolled my eyes a little.<br> <em>“Decoupled compute and storage? Serverless? Zero ETL?”</em><br> We’ve seen these buzzwords before — AWS, Azure, Snowflake… so what’s new?</p><p>Well — turns out, <strong>a lot</strong>.</p><p>These aren’t new ideas. AWS, Azure, and other cloud vendors have already rolled out similar capabilities. So what makes Lakebase different? Why all the buzz?</p><p>I wasn’t convinced — until I took a deeper look and realized something important. This isn’t just another serverless OLTP database. It’s <strong>a bridge between the operational and analytical worlds</strong>, fully integrated with the <strong>lakehouse</strong> we already love and use every day.</p><p>Let me walk you through how I changed my mind.</p><h3>A Real Problem: Reverse ETL Overhead</h3><p>In many of my Databricks-powered projects, we’ve built amazing pipelines — taking raw data, transforming it in the lakehouse, and delivering rich insights.</p><p>But when it came time to feed this data back into operational systems, things got messy.</p><p>Reverse ETL was often a necessary evil. Building additional pipelines, syncing data into SaaS apps, or creating internal-facing APIs to serve our cleaned data — all that <strong>extra effort</strong> just to make transformed data usable in apps.</p><p>Enter Lakebase.</p><h3>The Game-Changer: Native Lakehouse Integration</h3><p>What clicked for me is that <strong>Lakebase shares the same object storage as your Delta tables</strong>. That means no more stitching pipelines between your data warehouse and a separate transactional database.</p><p>You can now <strong>build data apps directly on top of the tables you already have</strong>, without moving or duplicating data. Just sync it into Lakebase and go.</p><p>That’s not just a convenience — it’s a whole new workflow paradigm.</p><h3>What Exactly Is a Lakebase?</h3><p>According to Databricks, a <strong>Lakebase</strong> is a modern architecture for operational databases that:</p><ul><li>🧩 <strong>Is open</strong>: Built on standards like Postgres, it avoids vendor lock-in.</li><li>🪣 <strong>Separates compute and storage</strong>: Store your data in object storage (like S3 or ADLS) in open formats, scale compute independently.</li><li>🛰️ <strong>Is serverless</strong>: Elastic compute that scales down to zero — you only pay for storage when idle.</li><li>🌱 <strong>Supports modern development workflows</strong>: You can branch your database like you branch code, instantly.</li><li>🤖 <strong>Is AI-agent ready</strong>: AI agents can operate, experiment, and rewind states — thanks to its branching and checkpointing model.</li><li>🧠 <strong>Integrates seamlessly with your lakehouse</strong>: No ETL required between OLTP and analytical systems.</li></ul><p>That last point is huge.</p><p>Lakebase isn’t just a transactional database. It’s <strong>an OLTP engine natively wired into your lakehouse</strong>, so everything from data science to AI agents to real-time dashboards can draw from the same well.</p><h3>Why It Matters</h3><p>For teams already building on Databricks, Lakebase could be a no-brainer. Here’s why I think it matters:</p><ul><li>No more reverse ETL gymnastics.</li><li>Less infrastructure to manage.</li><li>Shorter feedback loops between data creation and data activation.</li><li>And for AI-enabled systems? It offers something traditional databases were never designed to do.</li></ul><h3>What I’m Watching Closely</h3><p>I’m still curious about real-world performance and scalability under production workloads. Also:</p><ul><li>How well does it support traditional OLTP use cases?</li><li>How does branching behave under concurrency?</li><li>What’s the experience like for developers new to the Databricks ecosystem?</li></ul><h3>Final Thoughts</h3><p>So, was Lakebase <em>truly</em> groundbreaking?</p><p>Not in the sense of inventing brand-new technology — but <strong>in the way it combines what already exists into something that just <em>makes sense</em> for modern data teams</strong>, yes, it absolutely is.</p><p>Lakebase aligns with how we already build in Databricks, and removes pain points we’ve accepted for too long.</p><p>If you’re using Databricks already, I’d say: don’t sleep on this.</p><p>📣 Have you played around with Lakebase yet? What are your thoughts? Drop a comment or connect — I’d love to hear how others are exploring this new tool.</p><p>If you’d like to support my work, you can <a href="https://buymeacoffee.com/srivastava7p">buy me a coffee</a> — it’s a small gesture that helps keep the ideas brewing. ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7e3a7e89d3eb" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Building a Scalable ETL Pipeline with AWS Services/Snowflake and Spark]]></title>
            <link>https://medium.com/@rit_sri/building-a-scalable-etl-pipeline-with-aws-services-snowflake-and-spark-54a12a5de007?source=rss-8228a4b7a8f9------2</link>
            <guid isPermaLink="false">https://medium.com/p/54a12a5de007</guid>
            <category><![CDATA[trends]]></category>
            <category><![CDATA[aws]]></category>
            <category><![CDATA[technology]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Ritu Srivastava]]></dc:creator>
            <pubDate>Tue, 31 Dec 2024 03:57:48 GMT</pubDate>
            <atom:updated>2025-09-06T14:35:14.286Z</atom:updated>
            <content:encoded><![CDATA[<p>I&#39;m excited to share a step-by-step guide on building a <strong>fully automated ETL pipeline.</strong> This solution extracts raw API data, transforms it, and loads it into Snowflake using powerful AWS services. We’ll leverage Lambda for extraction, Step Functions for orchestration, S3 for storage, Glue with Apache Spark for transformation, and Snowpipe for seamless data ingestion. Stay tuned for a deep dive into this modern data workflow!</p><p>Building on my previous work, this project brings significant upgrades in both architecture and destination:</p><ul><li><strong>Enhanced Transformation</strong>: Leveraging AWS Glue with Apache Spark for scalable, distributed data processing (replacing AWS Lambda for transformations).</li><li><strong>Optimized Storage and Analytics</strong>: Transitioning to Snowflake as the centralized data warehouse (previously using Redshift).</li></ul><p>In this step-by-step guide, I’ll walk you through extracting job market data for Data Engineering roles in Canada from the Adzuna API, transforming it for analysis, and loading it into Snowflake.</p><p><em>I’m Ritu, and I&#39;m passionate about exploring and experimenting with new tools and technologies.</em></p><h3>Project Architecture and Execution Flow</h3><p>The following diagram represents the solution architecture implemented in this project.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*s-q4xKCuKoiKWmsA.png" /></figure><p>Project Architecture Diagram</p><p><strong>Project flow</strong>:</p><ol><li>EventBridge schedule triggers the ETL pipeline daily</li><li>StepFunction</li><li>Run data extraction code with AWS Lambda</li><li>Store raw data in S3</li><li>Transform raw data with AWS Glue and Apache Spark</li><li>Store transformed data in S3</li><li>Load transformed data into Snowflake using Snowpipe</li></ol><h3>Used Services</h3><p>In this project, we will be using the following services:</p><ul><li><strong>Adzuna API — </strong>provides access to job market data, allowing users to query job listings and other employment-related information in real time. In this project, it serves as the public data source for the ETL pipeline.</li><li><strong>AWS IAM (Identity and Access Management)</strong> allows you to manage access to AWS resources securely. It controls who has access to which services. In this project, it defines the roles and permissions for Lambda functions, S3, Redshift, and other services.</li><li><strong>AWS CloudWatch </strong>is a monitoring service for AWS cloud resources and applications. It helps track performance metrics and monitor logs. In this project, it’s used to monitor the Lambda function execution logs.</li><li><strong>EventBridge</strong> allows the scheduling and automation of AWS services. In this project, it’s used to trigger the Step Function that orchestrates and executes the ETL Lambda Functions on a daily schedule.</li><li><strong>AWS Step Function</strong> orchestrates complex workflows by coordinating multiple AWS services into a seamless flow. In this project, AWS Step Functions manages the execution of Lambda functions that extract, transform, and load (ETL) job data from Adzuna to Redshift.</li><li><strong>AWS Lambda</strong> is a serverless computing service that runs your code in response to events. This project, automates the data extraction, transformation, and loading (ETL) processes by running custom Python code to handle Adzuna API data and move it through the pipeline.</li><li><strong>Amazon S3 (Simple Storage Service)</strong> is a scalable object storage service. In this project, S3 stores the extracted and transformed files from the Adzuna API, acting as a staging area for the data before it is processed and moved to Redshift.</li><li><strong>AWS Glue</strong> is a serverless data integration service that simplifies the process of discovering, preparing, and transforming data. In this project, AWS Glue is used to process and transform raw job data from Adzuna API in json format into .parquet format.</li><li><strong>Apache Spark</strong> is an open-source distributed data processing engine that enables fast and scalable analytics on big data. In this project, Spark is utilized within AWS Glue to handle data transformations, including flattening and deduplicating job records.</li><li><strong>Snowflake</strong> is a cloud-based data warehousing platform that provides high-performance analytics and seamless scalability. In this project, Snowflake serves as the centralized data warehouse, enabling the storage, querying, and analysis of transformed Adzuna job data.</li><li><strong>Snowpipe</strong> is a continuous data ingestion service within Snowflake that automates the loading of data as it arrives in external storage like S3. In this project, Snowpipe enables near-real-time ingestion of transformed Parquet files from S3 into Snowflake tables for analysis.</li></ul><h3>Project Prerequisites:</h3><p>You will need the following stuff to be able to follow along with this guide and accomplish the project:</p><ul><li>Python</li><li><a href="https://developer.adzuna.com/">Adzuna API account</a> (with application ID and application key)</li><li>AWS account</li><li>Snowflake account</li></ul><h3>Data Source</h3><p>In this project, we query the <strong>Adzuna API</strong> to extract job listings specifically related to <em>Data Engineer</em> roles in Canada. The API is configured to get job posts in Canada that mention <em>data engineers</em> in the job title or description. Additionally, we limit the results to job listings posted within the last two days.</p><h3>Project Implementation Steps:</h3><p>The project implementation can be broken down into the following major steps:</p><ol><li>Creating Amazon S3 bucket and folders</li><li>Developing Lambda function to extract data</li><li>Implementing AWS Glue job with Apache Spark to transform data</li><li>Developing Lambda function to move processed raw data to another S3 folder</li><li>Creating and Configuring Step Function</li><li>Configuring Snowflake for data ingestion</li><li>Configuring Snowpipe to automate data ingestion to Snowflake</li><li>Creating EventBridge schedule to automate the ETL pipeline</li></ol><h3>Step 1. Creating Amazon S3 buckets and folders</h3><p>We will need the following structure in Amazon S3 for the project:</p><pre>adzuna-etl-project:<br>   - raw_data<br>      - to_process<br>      - processed<br>   - transformed_data</pre><p><em>adzuna-etl-project</em> is a bucket. All the rest is the folders inside it.</p><p>To create a bucket, open <a href="https://console.aws.amazon.com/s3/">https://console.aws.amazon.com/s3/</a> and click the <strong>Create bucket</strong> button. Use default settings.</p><p>Create the necessary folders inside the bucket using the <strong>Create folder</strong> button (you can use default settings).</p><h3>Step 2. Developing Lambda function to extract data</h3><p>AWS Lambda allows you to run your Python (and not only) scripts in AWS Cloud triggered by some event.</p><p>In this step, we will create a Lambda function that executes Python script to extract data from the Adzuna API and save it into S3 bucket in .json format.</p><p>The process of creating and configuring the lambda function includes the following activities:</p><ul><li>Creating IAM role for Lambda function</li><li>Creating a Lambda function</li><li>Configuring the Lambda function</li><li>Creating a layer to import the requests Python library into the Lambda function</li><li>Testing the Lambda function</li></ul><p><strong>Creating an IAM role for the Lambda function</strong></p><p>For our Lambda function to access the required AWS resources, such as S3, and write execution logs to CloudWatch service, we must create an IAM role with all the required policies and assign it to the function.</p><p>Follow these steps to do that:</p><ol><li>Go to <a href="https://console.aws.amazon.com/iam/">https://console.aws.amazon.com/iam/</a></li><li>Under <strong>Access Management</strong>, click <strong>Roles </strong>and then <strong>Create Role</strong></li><li>Select <strong>AWS Service</strong> as a <strong>Trusted entity type</strong></li><li>Under <strong>Use case</strong>, select <strong>Lambda</strong></li><li>Click <strong>Next</strong> to skip <strong>Step 2</strong> for now</li><li>At Step 3, fill in the <strong>Role name</strong>, for example, <em>adzuna_lambda_function_role</em></li><li>Provide some meaningful description</li><li>Click <strong>Create role</strong>.</li><li>In the list of roles, click the newly created role.</li><li>In the <strong>Permission policies</strong> block, click <strong>Add permission</strong>, then <strong>Create an inline policy</strong></li><li>In the <strong>Policy editor</strong>, select <strong>JSON</strong> and insert the following contents into the text area. It will allow the Lambda function to:</li></ol><ul><li>Access and manage objects in the s3 bucket</li><li>Write log files into CloudWatch Logs</li></ul><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;s3:PutObject&quot;,<br>                &quot;s3:ListBucket&quot;,<br>                &quot;s3:GetObject&quot;,<br>                &quot;s3:PutObjectAcl&quot;,<br>                &quot;s3:DeleteObject&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:s3:::adzuna-etl-project&quot;,<br>                &quot;arn:aws:s3:::adzuna-etl-project/*&quot;<br>            ]<br>        },<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;logs:CreateLogGroup&quot;,<br>                &quot;logs:CreateLogStream&quot;,<br>                &quot;logs:PutLogEvents&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;arn:aws:logs:*:*:*&quot;<br>        }<br>    ]<br>}</pre><p>12. Click <strong>Next</strong>.</p><p>13. Fill in the <strong>Policy name</strong>, for example <em>adzuna_lambda_role_policy</em></p><p><strong>Creating Lambda function to extract raw data from the Adzuna API</strong></p><ol><li>Go to <a href="https://console.aws.amazon.com/lambda/">https://console.aws.amazon.com/lambda/</a></li><li>Click <strong>Create function</strong></li><li>Select <strong>Author from scratch</strong></li><li>Give it a <strong>Function name</strong>, for example, <em>lambda_adzuna_extract_data</em></li><li>As a <strong>Runtime</strong>, select Python (I used Python 3.11 for the project)</li><li>Select <em>x86_64</em> as <strong>Architecture</strong></li><li>In the <strong>Execution role</strong>, select <strong>Use an existing role </strong>and select the role you created in the previous step, <em>adzuna_lambda_function_role</em></li><li>Click <strong>Create function</strong></li></ol><p><strong>Configuring the Lambda function</strong></p><ol><li>In the lambda_function code text area, insert the following code:</li></ol><pre>import json<br>import os<br>import requests<br>from datetime import datetime<br>import math<br>import boto3<br>import logging<br></pre><pre># Set up logging<br>logger = logging.getLogger()<br>logger.setLevel(logging.INFO)</pre><pre># Getting Adzuna API creds<br>ADZUNA_APP_ID = os.getenv(&#39;ADZUNA_APP_ID&#39;)<br>ADZUNA_APP_KEY = os.getenv(&#39;ADZUNA_APP_KEY&#39;)<br>BUCKET = &quot;adzuna-etl-project&quot;</pre><pre># Define the API endpoint and base parameters<br>url = &quot;https://api.adzuna.com/v1/api/jobs/ca/search/&quot;<br>base_params = {<br>    &#39;app_id&#39;: ADZUNA_APP_ID,<br>    &#39;app_key&#39;: ADZUNA_APP_KEY,<br>    &#39;results_per_page&#39;: 50,  # Maximum allowed results per page<br>    &#39;what_phrase&#39;: &quot;data engineer&quot;,<br>    &#39;max_days_old&#39;: 2,<br>    &#39;sort_by&#39;: &quot;date&quot;<br>}<br></pre><pre>def lambda_handler(event, context):</pre><pre>    <em># Initialize a list to store all job postings</em><br>    all_job_postings = []<br>    <br>    <em># Make the first request to determine the total number of pages</em><br>    logger.info(&quot;Making the first request to determine the total number of pages&quot;)<br>    response = requests.get(f&quot;{url}1&quot;, params=base_params)<br>    <br>    <em>#Check if the request was successful</em><br>    if response.status_code == 200:<br>        data = response.json()  # Parse the JSON response<br>        total_results = data[&#39;count&#39;]  # Get the total number of results<br>        results_per_page = base_params[&#39;results_per_page&#39;]<br>        <br>        <em># Calculate the total number of pages</em><br>        total_pages = math.ceil(total_results / results_per_page)<br>        logger.info(f&quot;Total number of page = {total_pages}&quot;)<br>        <br>        <em># Store the results from the first page</em><br>        all_job_postings.extend(data[&#39;results&#39;])<br>    <br>        <em># Loop through the remaining pages and request data from each</em><br>        logger.info(&quot;Looping through the remaining pages and request data from each&quot;)<br>        for page in range(2, total_pages + 1):  <em># Start from page 2 to total_pages</em><br>            response = requests.get(f&quot;{url}{page}&quot;, params=base_params)<br>            <br>            <em># Check if the request was successful</em><br>            if response.status_code == 200:<br>                page_data = response.json()<br>                # Append job postings from this page to the list<br>                all_job_postings.extend(page_data[&#39;results&#39;])<br>            else:<br>                logger.error(f&quot;Error fetching page {page}: {response.status_code}, {response.text}&quot;)<br>    else:<br>        logger.error(f&quot;Error: {response.status_code}, {response.text}&quot;)<br>    <br>    <em># Now all_job_postings contains data from all pages</em><br>    logger.info(f&quot;Total jobs retrieved: {len(all_job_postings)}&quot;)<br>    <br>    <em># Generate a filename with the current timestamp</em><br>    current_timestamp = datetime.now().strftime(&quot;%Y%m%d_%H%M%S&quot;)<br>    file_name = f&quot;adzuna_raw_data_{current_timestamp}.json&quot;<br>    logger.info(f&quot;File name to store raw data: {file_name}&quot;)<br>    <br>    <em># Storing Spotify json raw data to AWS S3</em><br>    logger.info(&quot;Storing Adzuna json raw data to AWS S3&quot;)<br>    client = boto3.client(&#39;s3&#39;)<br>    file_key = f&quot;raw_data/to_process/{file_name}&quot;<br>    # Wrap the all_job_postings list in a top-level object<br>    wrapped_data = {&quot;items&quot;: all_job_postings}<br>    try:<br>        client.put_object(<br>            Bucket=BUCKET,<br>            Key=file_key,<br>            Body=json.dumps(wrapped_data)<br>        )<br>        logger.info(f&quot;File {file_key} successfully created in bucket {BUCKET}.&quot;)<br>        return file_key<br>    <br>    except Exception as e:<br>        logger.error(f&quot;Error occurred while creating file: {str(e)}&quot;)<br>        return None</pre><p>2. Click <strong>Deploy</strong> to save changes.</p><p>3. Click the <strong>Configuration</strong> tab and in the <strong>General configuration</strong> menu, click <strong>Edit</strong></p><p>4. Change the <strong>Timeout</strong> to 30 seconds.</p><p>5. Click the <strong>Environment variables</strong> menu under the <strong>Configuration</strong> tab and add ADZUNA_APP_ID and ADZUNA_APP_KEY using your Adzuna API account information.</p><p><strong>2.4 Creating a layer to import the requests Python library into the Lambda function</strong></p><blockquote><em>A simple </em><em>import doesn’t work in Lambda for external libraries (like </em><em>pandas or </em><em>requests) as Lambda comes only with a minimal set of libraries. So, you need to package them through </em><strong><em>Lambda layers</em></strong><em> and attach them to a Lambda function to make them available during execution.</em></blockquote><ol><li>Open the command prompt and execute the following commands to create .zip archive with the requests python package</li></ol><pre>mkdir requests_layer<br>cd requests_layer<br>mkdir python<br>cd python<br>pip install requests -t .</pre><p>2. Create a .zip archive of the <em>requests_layer</em> folder.</p><p>3. Go to <a href="https://console.aws.amazon.com/lambda/">https://console.aws.amazon.com/lambda/</a> and click Layers.</p><p>4. Click <strong>Create layer</strong>.</p><p>5. Enter <strong>Name</strong>, for example, <em>lambda_requests_layer</em>.</p><p>6. Upload the previously prepared .zip archive with the requests package.</p><p>7. Choose <strong>x86_64</strong> as architecture</p><p>8. Choose <strong>Python</strong> as a <strong>runtime</strong> (it should be of <strong>the same version</strong> as your Lambda function runtime)</p><p>9. Click <strong>Create</strong></p><p>10. Go back to the Lambda function page</p><p>11. In the <strong>Function overview</strong> block, under the Lambda function name, click <strong>Layers</strong></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/383/0*9WRn7Guxsr2t-HDK.png" /></figure><p>Lambda function name</p><p>12. Click <strong>Add a layer</strong></p><p>13. In the <strong>Choose a layer</strong>, select <strong>Custom layers</strong>, and in the dropdown select the previously created lambda layer.</p><p>14. Select <strong>Version</strong> -&gt; <strong>1</strong></p><p>15. Click <strong>Add</strong></p><p><strong>Testing the Lambda function</strong></p><ol><li>In the Lambda function page, the <strong>Code source</strong> block, click the <strong>Test</strong> button</li><li>In the <strong>Configure test event</strong> popup, enter any <strong>Event name</strong>, for example Test, and click <strong>Save</strong></li><li>Click the <strong>Test</strong> button again</li></ol><p>If everything was done properly in the previous steps, you should see the following function logs (no errors)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ZbRACWnn-h9wX-w3.png" /></figure><p>Lambda execution logs</p><p>and the json file with the extracted raw data in the s3 folder</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*sVgW9sP5F1ZeO7t4.png" /></figure><p>Extracted raw data json file in s3</p><h3>Step 3. Implementing AWS Glue job with Apache Spark to transform data</h3><p>In this step, we will create AWS Glue job with Apache Spark to process and transform the raw json data and save it in <em>.parquet</em> files in the <em>adzuna-etl-project/transformed_data/ </em>s3 folder.</p><p>Within AWS Glue, Apache Spark serves as the underlying data processing engine. AWS Glue leverages a serverless, managed version of Apache Spark to perform scalable, distributed data processing. This allows you to efficiently transform, clean, and enrich large volumes of data across various data sources.</p><p>Firstly, you need to create an IAM role for AWS Glue job. Use the following policy json as a template to create the role for your project and adjust it as needed based on your s3 folder names:</p><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;s3:PutObject&quot;,<br>                &quot;s3:ListBucket&quot;,<br>                &quot;s3:GetObject&quot;,<br>                &quot;s3:PutObjectAcl&quot;,<br>                &quot;s3:DeleteObject&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:s3:::adzuna-etl-project&quot;,<br>                &quot;arn:aws:s3:::adzuna-etl-project/*&quot;,<br>                &quot;arn:aws:s3:::aws-glue-assets-123123123123-us-east-1&quot;,<br>                &quot;arn:aws:s3:::aws-glue-assets-123123123123-us-east-1/*&quot;<br>            ]<br>        }<br>    ]<br>}</pre><p>To create and configure an AWS Glue job, follow these steps:</p><ol><li>Go to <a href="https://console.aws.amazon.com/glue/">https://console.aws.amazon.com/glue/</a></li><li>In the left menu, under <em>AWS Glue</em>, click <em>ETL jobs</em></li><li>In the <em>Create job</em>, click <em>Script editor</em></li><li>In the <em>Engine</em> dropdown, select <em>Spark</em></li><li>In the <em>Options</em>, select <em>Start fresh </em>and click <em>Create script</em></li><li>Give it a name, for example, <em>adzuna_etl_transformation_job</em></li><li>Switch to the <em>Job details</em> tab</li><li>In the <em>IAM role</em>, select the role you created earlier</li><li>In the <em>Language</em>, select <em>Python 3</em></li><li>In the <em>Requested number of workers</em>, put 2 (minimum allowed number of workers)</li><li>Switch to the Script tab and put the following code into the Script text area:</li></ol><pre>import sys<br>from awsglue.transforms import *<br>from awsglue.utils import getResolvedOptions<br>from pyspark.context import SparkContext<br>from awsglue.context import GlueContext<br>from awsglue.dynamicframe import DynamicFrame<br>from awsglue.job import Job<br>from pyspark.sql.functions import explode, col<br>from datetime import datetime<br>  <br>sc = SparkContext.getOrCreate()<br>glueContext = GlueContext(sc)<br>spark = glueContext.spark_session<br>job = Job(glueContext)</pre><pre>s3_source_path = &quot;s3://adzuna-etl-project/raw_data/to_process/&quot;<br>s3_output_path = &quot;s3://adzuna-etl-project/transformed_data/&quot;</pre><pre>source_dyf = glueContext.create_dynamic_frame.from_options(<br>    connection_type=&quot;s3&quot;,<br>    format=&quot;json&quot;,<br>    connection_options={<br>        &quot;paths&quot;: [s3_source_path]<br>    }<br>)</pre><pre>jobs_df = source_dyf.toDF()<br>jobs_df = jobs_df.withColumn(&quot;items&quot;, explode(&quot;items&quot;))\<br>       .select(col(&quot;items.id&quot;).alias(&quot;job_id&quot;),<br>               col(&quot;items.title&quot;).alias(&quot;job_title&quot;),<br>               col(&quot;items.location.display_name&quot;).alias(&quot;job_location&quot;),<br>               col(&quot;items.company.display_name&quot;).alias(&quot;job_company&quot;),<br>               col(&quot;items.category.label&quot;).alias(&quot;job_category&quot;),<br>               col(&quot;items.description&quot;).alias(&quot;job_description&quot;),<br>               col(&quot;items.redirect_url&quot;).alias(&quot;job_url&quot;),<br>               col(&quot;items.created&quot;).cast(&quot;timestamp&quot;).alias(&quot;job_created&quot;))\<br>       .dropDuplicates([&quot;job_id&quot;])</pre><pre>jobs_df.write.mode(&quot;append&quot;).parquet(s3_output_path)<br>job.commit()</pre><h3>Step 4. Developing Lambda function to move processed raw data to another S3 folder</h3><p>In this step, we will create another Lambda function that moves all <em>.json</em> files from the S3 <em>raw_data/to_process/ </em>folder to <em>raw_data/processed/</em> folder.</p><p>The process of creating and configuring the new lambda function includes the following activities:</p><ul><li>Creating a Lambda function</li><li>Configuring the Lambda function</li></ul><p><strong>To create Lambda function for transforming raw data:</strong></p><ol><li>Go to <a href="https://console.aws.amazon.com/lambda/">https://console.aws.amazon.com/lambda/</a></li><li>Click <strong>Create function</strong></li><li>Select <strong>Author from scratch</strong></li><li>Give it a <strong>Function name</strong>, for example, <em>lambda_adzuna_move_processed_files</em></li><li>As a <strong>Runtime</strong>, select Python (I used Python 3.11 for the project)</li><li>Select <em>x86_64</em> as <strong>Architecture</strong></li><li>In the <strong>Execution role</strong>, select <strong>Use an existing role </strong>and select the role you created in the previous step, <em>adzuna_lambda_function_role</em></li><li>Click <strong>Create function</strong></li></ol><p><strong>To configure the Lambda function:</strong></p><ol><li>In the lambda_function code text area, insert the following code:</li></ol><pre>import boto3<br>import logging</pre><pre><em># Set up logging</em><br>logger = logging.getLogger()<br>logger.setLevel(logging.INFO)</pre><pre>s3 = boto3.client(&#39;s3&#39;)<br></pre><pre>def get_s3_object_keys(bucket_name, folder_prefix):<br>    &quot;&quot;&quot;<br>    List all object keys in the specified S3 folder.</pre><pre>    Args:<br>        bucket_name (str): Name of the S3 bucket.<br>        folder_prefix (str): Folder prefix in the S3 bucket (should end with a slash).</pre><pre>    Returns:<br>        list: A list of object keys in the specified folder.<br>    &quot;&quot;&quot;<br>    <br>    try:<br>        logger.info(f&quot;Listing objects in bucket: {bucket_name}, folder: {folder_prefix}&quot;)<br>        <br>        <em># List objects with the specified prefix</em><br>        response = s3.list_objects_v2(Bucket=bucket_name, Prefix=folder_prefix)<br>        <br>        if &#39;Contents&#39; in response:<br>            objects = response[&#39;Contents&#39;]<br>            logger.info(f&quot;Found {len(objects)} objects in the folder.&quot;)<br>            <br>            <em># Extract object keys</em><br>            object_keys = [obj[&#39;Key&#39;].split(&quot;/&quot;)[-1] for obj in objects if obj != folder_prefix]<br>            return object_keys<br>        else:<br>            logger.info(f&quot;No objects found in folder: {folder_prefix}&quot;)<br>            return []</pre><pre>    except Exception as e:<br>        logger.error(f&quot;Error occurred while listing objects: {str(e)}&quot;)<br>        return []<br></pre><pre>def delete_s3_object(bucket_name, object_key):<br>    try:<br>        # Delete the object<br>        s3.delete_object(Bucket=bucket_name, Key=object_key)<br>        logger.info(f&quot;File {object_key} deleted successfully from bucket {bucket_name}.&quot;)</pre><pre>    except Exception as e:<br>        logger.error(f&quot;Error occurred while deleting file: {str(e)}&quot;)<br>        raise<br></pre><pre>def move_s3_object(bucket, source_key, destination_key):<br>    logger.info(f&quot;Started moving {source_key} to &#39;processed&#39; folder in s3 ...&quot;)<br>    try:<br>        # Copy the object<br>        s3.copy_object(<br>            Bucket=bucket,<br>            CopySource={&#39;Bucket&#39;: bucket, &#39;Key&#39;: source_key},<br>            Key=destination_key<br>        )<br>        logger.info(f&quot;File copied from {source_key} to {destination_key} successfully.&quot;)<br>        delete_s3_object(bucket, source_key)</pre><pre>    except Exception as e:<br>        logger.error(f&quot;Error occurred while moving file: {str(e)}&quot;)<br>        raise<br></pre><pre>def lambda_handler(event, context):<br>    <em># Moving processed source data files to a different folder</em><br>    bucket = &quot;adzuna-etl-project-maksim&quot;<br>    to_process_folder = &quot;raw_data/to_process/&quot;<br>    processed_folder = &quot;raw_data/processed/&quot;</pre><pre>    object_keys = get_s3_object_keys(bucket, to_process_folder)<br>    for object_key in object_keys:<br>        source_key = to_process_folder + object_key<br>        destination_key = processed_folder + object_key<br>        move_s3_object(bucket, source_key, destination_key)</pre><p>2. Click <strong>Deploy</strong> to save changes.</p><p>3. Click the <strong>Configuration</strong> tab and in the <strong>General configuration</strong> menu, click <strong>Edit</strong></p><p>4. Change the <strong>Timeout</strong> to 30 seconds.</p><h3>Step 5. Creating and Configuring Step Function</h3><p>AWS Step Functions orchestrate complex workflows by coordinating multiple AWS services into a seamless flow. In this project, AWS Step Functions manage the execution of:</p><ul><li>Lambda function that extracts raw data</li><li>AWS Glue job that transforms the data</li><li>Lambda function that moves the processed raw data to another S3 folder</li></ul><p>Step Functions ensure reliable workflow execution by handling errors, retries, and task dependencies automatically. By visualizing the entire pipeline, it simplifies debugging and monitoring, improving overall process management and resilience.</p><p>The process of creating and configuring Step Function includes the following steps:</p><ul><li>Creating IAM role for Step Function</li><li>Creating and configuring Step Function</li><li>Testing Step Function</li></ul><p><strong>Creating IAM role for Step Function</strong></p><p>For our Step Function to execute the created ETL Lambda Functions, the AWS Glue job, and write execution logs to CloudWatch service, we must create an IAM role with all the required policies.</p><p>Follow these steps to do that:</p><ol><li>Go to <a href="https://console.aws.amazon.com/iam/">https://console.aws.amazon.com/iam/</a></li><li>Under <strong>Access Management</strong>, click <strong>Roles </strong>and then <strong>Create Role</strong></li><li>Select <strong>AWS Service</strong> as a <strong>Trusted entity type</strong></li><li>Under <strong>Use case</strong>, select <strong>Step Functions</strong></li><li>Click <strong>Next</strong> to skip <strong>Step 2</strong> for now</li><li>In Step 3, fill in the <strong>Role name</strong>, for example, <em>adzuna_step_function_role</em></li><li>Provide some meaningful description</li><li>Click <strong>Create role</strong>.</li><li>In the list of roles, click the newly created role.</li><li>In the <strong>Permission policies</strong> block, click <strong>Add permission</strong>, then <strong>Create inline policy</strong></li><li>In the <strong>Policy editor</strong>, select <strong>JSON</strong> and insert the following contents into the text area</li></ol><pre>{<br>    &quot;Version&quot;: &quot;2012-10-17&quot;,<br>    &quot;Statement&quot;: [<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;lambda:InvokeFunction&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:lambda:us-east-1:123123123123:function:lambda_adzuna_extract_data:*&quot;,<br>                &quot;arn:aws:lambda:us-east-1:123123123123:function:lambda_adzuna_move_processed_files:*&quot;<br>            ]<br>        },<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;lambda:InvokeFunction&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:lambda:us-east-1:123123123123:function:lambda_adzuna_extract_data&quot;,<br>                &quot;arn:aws:lambda:us-east-1:123123123123:function:lambda_adzuna_move_processed_files&quot;<br>            ]<br>        },<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;logs:CreateLogDelivery&quot;,<br>                &quot;logs:CreateLogStream&quot;,<br>                &quot;logs:GetLogDelivery&quot;,<br>                &quot;logs:UpdateLogDelivery&quot;,<br>                &quot;logs:DeleteLogDelivery&quot;,<br>                &quot;logs:ListLogDeliveries&quot;,<br>                &quot;logs:PutLogEvents&quot;,<br>                &quot;logs:PutResourcePolicy&quot;,<br>                &quot;logs:DescribeResourcePolicies&quot;,<br>                &quot;logs:DescribeLogGroups&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;*&quot;<br>        },<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;logs:PutRetentionPolicy&quot;,<br>                &quot;logs:DescribeLogGroups&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;*&quot;<br>        },<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;glue:StartJobRun&quot;,<br>                &quot;glue:GetJob&quot;,<br>                &quot;glue:GetJobRun&quot;,<br>                &quot;glue:GetJobRuns&quot;<br>            ],<br>            &quot;Resource&quot;: &quot;arn:aws:glue:us-east-1:123123123123:job/adzuna_etl_transformation_job&quot;<br>        },<br>        {<br>            &quot;Effect&quot;: &quot;Allow&quot;,<br>            &quot;Action&quot;: [<br>                &quot;logs:CreateLogStream&quot;,<br>                &quot;logs:PutLogEvents&quot;,<br>                &quot;logs:CreateLogGroup&quot;<br>            ],<br>            &quot;Resource&quot;: [<br>                &quot;arn:aws:logs:us-east-1:123123123123:log-group:/aws-glue/jobs/*&quot;,<br>                &quot;arn:aws:logs:us-east-1:123123123123:log-group:/aws-glue/jobs/*:*&quot;<br>            ]<br>        }<br>    ]<br>}</pre><p>12. Click <strong>Next</strong></p><p>13. Fill in the <strong>Policy name</strong>, for example <em>adzuna_step_function_policy </em>and save changes</p><p><strong>Creating and configuring Step Function</strong></p><p>In this step, we will create the workflow that orchestrates an end-to-end ETL (Extract, Transform, Load) process using the three Lambda functions. Here’s a breakdown of what happens:</p><ol><li><strong>ExtractDataFromAPI</strong>: The workflow starts by executing a Lambda function that extracts data from the Adzuna API and stores the raw json data in S3.</li><li><strong>RunTransformationJob</strong>: The workflow moves to the next step, where the AWS Glue job is invoked to transform the raw data. The transformed data is saved as .parquet files to s3</li><li><strong>MoveProcessedFiles</strong>: In the final step, another Lambda function is triggered to move the processed raw json data files from the /to_process to /processed s3 folder</li><li><strong>Error Handling</strong>: Each step includes error handling, so if any function fails, the workflow moves to a <strong>FailureState</strong>, indicating that an error occurred in the ETL process.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*FQvKESlyuASFBP4E.png" /></figure><p>Adzuna AWS Step Function</p><p>Follow these steps:</p><ol><li>Open this page <a href="https://console.aws.amazon.com/states/">https://console.aws.amazon.com/states/</a></li><li>Click <strong>Create state machine</strong></li><li>In the <strong>Choose a template</strong> window, select <strong>Blank</strong></li><li>Click the <strong>{} Code</strong> button, and insert the following json code (adjust resource ARNs with your values):</li></ol><pre>{<br>  &quot;StartAt&quot;: &quot;ExtractDataFromAPI&quot;,<br>  &quot;States&quot;: {<br>    &quot;ExtractDataFromAPI&quot;: {<br>      &quot;Type&quot;: &quot;Task&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:lambda:us-east-1:123123123123:function:lambda_adzuna_extract_data&quot;,<br>      &quot;Catch&quot;: [<br>        {<br>          &quot;ErrorEquals&quot;: [<br>            &quot;States.ALL&quot;<br>          ],<br>          &quot;Next&quot;: &quot;FailureState&quot;<br>        }<br>      ],<br>      &quot;Next&quot;: &quot;RunTransformationJob&quot;<br>    },<br>    &quot;RunTransformationJob&quot;: {<br>      &quot;Type&quot;: &quot;Task&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:states:::glue:startJobRun.sync&quot;,<br>      &quot;Parameters&quot;: {<br>        &quot;JobName&quot;: &quot;adzuna_etl_transformation_job&quot;<br>      },<br>      &quot;Catch&quot;: [<br>        {<br>          &quot;ErrorEquals&quot;: [<br>            &quot;States.ALL&quot;<br>          ],<br>          &quot;Next&quot;: &quot;FailureState&quot;<br>        }<br>      ],<br>      &quot;Next&quot;: &quot;MoveProcessedFiles&quot;<br>    },<br>    &quot;MoveProcessedFiles&quot;: {<br>      &quot;Type&quot;: &quot;Task&quot;,<br>      &quot;Resource&quot;: &quot;arn:aws:lambda:us-east-1:123123123123:function:lambda_adzuna_move_processed_files&quot;,<br>      &quot;Catch&quot;: [<br>        {<br>          &quot;ErrorEquals&quot;: [<br>            &quot;States.ALL&quot;<br>          ],<br>          &quot;Next&quot;: &quot;FailureState&quot;<br>        }<br>      ],<br>      &quot;Next&quot;: &quot;SuccessState&quot;<br>    },<br>    &quot;SuccessState&quot;: {<br>      &quot;Type&quot;: &quot;Succeed&quot;,<br>      &quot;Comment&quot;: &quot;ETL process completed successfully&quot;<br>    },<br>    &quot;FailureState&quot;: {<br>      &quot;Type&quot;: &quot;Fail&quot;,<br>      &quot;Cause&quot;: &quot;An error occurred in the ETL process&quot;,<br>      &quot;Error&quot;: &quot;ETLFailed&quot;<br>    }<br>  }<br>}</pre><p>5. Click the <strong>Config</strong> button</p><p>6. Update the <strong>State machine name</strong> to <em>AdzunaStateMachine</em></p><p>7. In the <strong>Execution role</strong>, select the recently created <em>adzuna_step_function_role</em></p><p>8. In the <strong>Logging</strong>, set <strong>Log level</strong> to <strong>All</strong> and select the <strong>Include execution data</strong> checkbox to enable logging your state machine’s execution history to CloudWatch Logs</p><p>9. Click <strong>Create</strong></p><p><strong>Testing Step Function</strong></p><p>To test the created Step Function, click <strong>Start Execution</strong> on the page with the newly created State machine</p><p>In case of successful execution, you should see the following graph with all green (Succeeded) steps:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/709/0*GgfGk_28VT0kAgi7.png" /></figure><p>Successful Step Function Execution</p><p>Apart from that, your s3 folder should look like as follows:</p><ul><li><strong>raw_data/processed/</strong> should contain a new <em>.json</em> file</li><li><strong>raw_data/to_process/</strong> should be empty</li><li><strong>transformed_data/</strong> should contain .parquet file(s)</li></ul><h3>Step 7. Configuring Snowflake for data ingestion</h3><p>At this step, we will:</p><ul><li>create an IAM role in AWS for integration with Snowflake</li><li>create a database for Adzuna jobs data in Snowflake</li><li>create an integration with AWS in Snowflake</li><li>create a file format in Snowflake for transformed and ready to ingest data</li><li>create a stage in Snowflake to ingest the transformed data</li><li>create a table in Snowflake to store Adzuna jobs data</li><li>manually populate the table with the data from the stage</li></ul><p>In your AWS account, use the following policy to create and configure your AWS IAM role for Snowflake (<em>adzuna_snowflake_role</em>):</p><pre>{<br> &quot;Version&quot;: &quot;2012-10-17&quot;,<br> &quot;Statement&quot;: [<br>  {<br>   &quot;Effect&quot;: &quot;Allow&quot;,<br>   &quot;Action&quot;: [<br>    &quot;s3:GetObject&quot;,<br>    &quot;s3:ListBucket&quot;<br>   ],<br>   &quot;Resource&quot;: [<br>    &quot;arn:aws:s3:::adzuna-etl-project&quot;,<br>    &quot;arn:aws:s3:::adzuna-etl-project/transformed_data/*&quot;<br>   ]<br>  },<br>  {<br>   &quot;Effect&quot;: &quot;Allow&quot;,<br>   &quot;Action&quot;: [<br>    &quot;s3:GetBucketLocation&quot;<br>   ],<br>   &quot;Resource&quot;: &quot;arn:aws:s3:::adzuna-etl-project&quot;<br>  }<br> ]<br>}</pre><p>In your Snowflake account, create an SQL worksheet and execute the following queries:</p><ul><li>create a database for Adzuna jobs data in Snowflake</li></ul><pre>create database adzuna_db;</pre><ul><li>create an integration with AWS in Snowflake (in the <em>storage_aws_role_arn</em>, provide the ARN of your AWS IAM role you previously created for integration with Snowflake)</li></ul><pre>create or replace storage integration adzuna_s3_integration<br>    type = external_stage<br>    storage_provider = s3<br>    enabled = true<br>    storage_aws_role_arn = &quot;arn:aws:iam::123123123123:role/adzuna_snowflake_role&quot;<br>    storage_allowed_locations = (&#39;s3://adzuna-etl-project/&#39;)<br>    comment = &#39;Creating connection to S3&#39;</pre><ul><li>Run the following command in Snowflake and copy the values of the STORAGE_AWS_IAM_USER_ARN and<br>STORAGE_AWS_EXTERNAL_ID properties</li></ul><pre>desc integration adzuna_s3_integration</pre><ul><li>In AWS Account, open the IAM role for Snowflake, switch to the <em>Trust relationships</em> tab, click<em> Edit trust policy</em>, and for the ”AWS” key enter the <em>STORAGE_AWS_IAM_USER_ARN</em> value copied from Snowflake, for the “sts:ExternalId” — enter the <em>STORAGE_AWS_EXTERNAL_ID</em> property value.</li><li>create a file format in Snowflake for transformed and ready to ingest data</li></ul><pre>CREATE OR REPLACE FILE FORMAT my_parquet_format<br>TYPE = &#39;PARQUET&#39;</pre><ul><li>create a stage in Snowflake to ingest the transformed data</li></ul><pre>create or replace stage adzuna_stage<br>    url = &#39;s3://adzuna-etl-project/transformed_data/&#39;<br>    storage_integration = adzuna_s3_integration<br>    file_format = my_parquet_format</pre><ul><li>create a table in Snowflake to store Adzuna jobs data</li></ul><pre>create or replace table adzuna_db.public.adzuna_jobs_staging(<br>    job_id string,<br>    job_title string,<br>    job_location string,<br>    job_company string,<br>    job_category string,<br>    job_description string,<br>    job_url string,<br>    job_created timestamp,<br>    etl_at timestamp<br>);</pre><ul><li>manually populate the table with the data from the stage</li></ul><pre>COPY INTO adzuna_db.public.adzuna_jobs_staging<br>FROM (<br>    SELECT<br>        $1:job_id::STRING AS job_id,<br>        $1:job_title::STRING AS job_title,<br>        $1:job_location::STRING AS job_location,<br>        $1:job_company::STRING AS job_company,<br>        $1:job_category::STRING AS job_category,<br>        $1:job_description::STRING AS job_description,<br>        $1:job_url::STRING AS job_url,<br>        $1:job_created::TIMESTAMP AS job_created,<br>        CURRENT_TIMESTAMP() AS etl_at<br>    FROM @adzuna_stage<br>)<br>FILE_FORMAT = (FORMAT_NAME = &#39;my_parquet_format&#39;);</pre><h3>Step 8. Configuring Snowpipe to automate data ingestion to Snowflake</h3><p>Using Snowpipe, we can automate data ingestion to Snowflake.</p><p>Follow these steps:</p><ul><li>create a new schema for the snowpipe</li></ul><pre>create or replace schema pipe;</pre><ul><li>create a snowpipe:</li></ul><pre>create or replace pipe adzuna_db.pipe.adzuna_jobs_pipe<br>auto_ingest = true <br>as <br>COPY INTO adzuna_db.public.adzuna_jobs_staging<br>FROM (<br>    SELECT<br>        $1:job_id::STRING AS job_id,<br>        $1:job_title::STRING AS job_title,<br>        $1:job_location::STRING AS job_location,<br>        $1:job_company::STRING AS job_company,<br>        $1:job_category::STRING AS job_category,<br>        $1:job_description::STRING AS job_description,<br>        $1:job_url::STRING AS job_url,<br>        $1:job_created::TIMESTAMP AS job_created,<br>        CURRENT_TIMESTAMP() AS etl_at<br>    FROM @adzuna_stage<br>)<br>FILE_FORMAT = (FORMAT_NAME = &#39;my_parquet_format&#39;);</pre><ul><li>Run the following command and copy the <em>notification_channel</em> property value from the output table:</li></ul><pre>desc pipe adzuna_db.pipe.adzuna_jobs_pipe</pre><ul><li>In your AWS Account, go to S3 buckets page, and open the <em>adzuna-etl-project</em> bucket.</li><li>Switch to the <em>Properties</em> tab and scroll down to the <em>Event notifications</em></li><li>In the <em>Event notifications</em>, click <em>Create event notification</em></li><li>In the <em>Event name</em>, enter <em>adzuna_job_added_event</em></li><li>In the <em>Prefix</em>, enter <em>transformed_data/</em></li><li>Under <em>Event types</em>, select the checkbox <em>All object create events</em></li><li>In the <em>Destination</em>, select <em>SQS queue</em></li><li>In the Specify SQS queue, select <em>Enter SQS queue ARN</em> and enter the <em>notification_channel</em> property value you copied in Snowflake for your snowpipe</li><li>Click <em>Save changes</em></li></ul><p>To test the snowpipe, try to manually load .parquet file with the transformed data into the <em>transformed_data/ </em>S3 folder and check if the number of records in the <em>adzuna_jobs_staging</em> table increased (it should do so).</p><p>It’s important to note here that the <em>adzuna_jobs_staging </em>table is not ready to be used by business users as it may contain duplicated records. For that, you need to create another table <em>adzuna_jobs </em>and set up deduplication and merge from <em>adzuna_jobs_staging </em>into <em>adzuna_jobs.</em></p><h3>Step 8. Creating an EventBridge schedule for automating the ETL pipeline</h3><p>At this point, when the ETL pipeline is implemented, tested and works as expected, it’s time to schedule it for automatic execution.</p><p>For this purpose, we will create an EventBridge schedule.</p><p>Follow these steps:</p><ol><li>Open <em>AdzunaStateMachine </em>page</li><li>Click <strong>Actions</strong>, then <strong>Create EventBridge</strong> rule</li><li>Fill in the rule <strong>Name</strong>, for example, <em>adzuna_etl_run_daily</em></li><li>Fill in the <strong>Rule description</strong>, for example, <em>Schedule to run Adzuna ETL daily</em></li><li>In the <strong>Rule type</strong>, select <strong>Schedule </strong>and then click <strong>Continue in EventBridge Scheduler</strong></li><li>Under <strong>Schedule pattern</strong>, select <strong>Recurring schedule</strong></li><li>Select the right <strong>Time zone</strong> for you</li><li>Under <strong>Schedule type</strong>, select <strong>Cron-based schedule </strong>and type in the following cron expression: <strong><em>cron(0 10 * * ? 2024)</em></strong></li><li>In the <strong>Flexible time window</strong>, select <strong>Off</strong></li><li>Click <strong>Next</strong></li><li>Under <strong>Target detail</strong>, select <strong>Templated targets</strong>, and then select <strong>AWS Step Functions </strong>(StartExecution)</li><li>Under <strong>StartExecution</strong>, in the <strong>State machine</strong> dropdown, select <em>AdzunaStateMachine</em> and click <strong>Next</strong></li><li>In the <strong>Action after schedule completion</strong>, select <strong>NONE</strong></li><li>Optionally, in the <strong>Retry policy</strong>, set the <strong>Maximum age of event</strong> to 5 minutes and <strong>Retry attempts</strong> to 3 times</li><li>Click <strong>Next</strong></li><li>Click <strong>Create schedule</strong></li></ol><p>Now, the ETL pipeline will be triggered every day at 10am UTC during 2024 year</p><h3>Conclusion</h3><p>In this project, we built an end-to-end ETL pipeline that’s scalable, automated, and reliable. We started by pulling job listings for Data Engineering roles in Canada from the Adzuna API, stored the raw data in Amazon S3, cleaned it up and transformed it using AWS Glue and Apache Spark, and then loaded it into Snowflake with Snowpipe.</p><p>The pipeline connects everything seamlessly:</p><ul><li>AWS Step Functions and EventBridge keep everything running on schedule and in the right order.</li><li>AWS Glue with Apache Spark handles the heavy lifting for data transformation.</li><li>Snowflake, with Snowpipe, takes care of continuous data loading, making sure everything is ready for analysis.</li></ul><p>If you’ve followed along, you now have a roadmap for setting up a similar pipeline for your projects. Whether it’s about processing job data, financial records, or any other dataset, this setup can be adapted to fit your needs.</p><p>Feel free to reach out with any questions or feedback! You can also check out the full code and setup details in my GitHub repo. I hope it helps you kickstart your own ETL workflows!</p><p><em>Follow me on LinkedIn — </em><a href="https://www.linkedin.com/in/ritu-srivastava-148574158/"><em>Here</em></a></p><p>If you’d like to support my work, you can <a href="https://buymeacoffee.com/srivastava7p">buy me a coffee</a> — it’s a small gesture that helps keep the ideas brewing. ❤</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54a12a5de007" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>