<?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 Rafael F. Lima on Medium]]></title>
        <description><![CDATA[Stories by Rafael F. Lima on Medium]]></description>
        <link>https://medium.com/@rflima.ti?source=rss-b852a12264e9------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*rhZoTzXqk4JScJw2e374ZQ.jpeg</url>
            <title>Stories by Rafael F. Lima on Medium</title>
            <link>https://medium.com/@rflima.ti?source=rss-b852a12264e9------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 21:16:57 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rflima.ti/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[What Should Data Engineers Stop Thinking About?]]></title>
            <link>https://medium.com/@rflima.ti/what-should-data-engineers-stop-thinking-about-1e14fed72084?source=rss-b852a12264e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/1e14fed72084</guid>
            <category><![CDATA[engineering-leadership]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[platform-engineering]]></category>
            <dc:creator><![CDATA[Rafael F. Lima]]></dc:creator>
            <pubDate>Fri, 27 Nov 2026 18:39:41 GMT</pubDate>
            <atom:updated>2026-11-27T19:04:16.927Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Lessons from scaling a declarative data ingestion platform</em></p><p>Between 2023 and 2026, merged pull requests from data engineers building business pipelines on our data platform grew <strong>5.7x</strong>. My core platform team stayed under ten people. Annual production job runs across those business workloads went from 1.24 million to more than 3 million, while our underlying infrastructure cost stayed effectively flat.</p><p>None of that came from asking people to work harder. It came from a question we kept returning to, which I now think is the most useful one in platform engineering: <strong><em>what should engineers no longer need to think about, and what should they absolutely continue to own?</em></strong></p><p>This is what I learned leading that platform and trying to answer that question, including a few things I would do differently.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*z-tqIENL4Stfp8GC" /><figcaption>Photo by <a href="https://unsplash.com/@purzlbaum?utm_source=medium&amp;utm_medium=referral">Claudio Schwarz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>The problem was fragmentation, not Spark</h3><p>When I took on leading our data platform, I expected our hardest problems to be technical: Spark, orchestration, deployments, scale. They were real. But the more expensive problem was how much of that machinery every data engineer had to understand before solving a business problem.</p><p>Our environment had grown through different platforms and operating models. Validation had one experience, dimensional processing another, and ingestion and orchestration had their own tools and conventions. Each made sense on its own. Together, building a single end-to-end business flow meant learning several engineering systems before delivering anything useful.</p><p>We decided to treat that fragmentation as a platform problem instead of something every data engineer should learn to navigate.</p><h3>Removing steps instead of speeding them up</h3><p>We introduced a common declarative model. Engineers describe a data flow in <strong>YAML</strong>, and the framework handles Spark configuration, infrastructure setup, credentials, validation, and deployment.</p><p>In practice, a typical pipeline definition looks like this:</p><pre>apiVersion: crd.ibm.k8s.io/v1<br>kind: Pipeline<br>metadata:<br>  name: fact-sample-orders<br>spec:<br>  owner:<br>    name: &lt;TEAM_NAME&gt;<br>  jobs:<br>    - jobType: daily-load<br>      extract:<br>        - extractType: default<br>          alias: ORDERS<br>          main_df: true<br>          connections:<br>            - connector: jdbc<br>              credentials: &lt;DB_CREDENTIAL_NAME&gt;<br>              query: ( SELECT ORDER_ID, REGION_CD, STATUS, AMOUNT FROM &lt;SCHEMA&gt;.&lt;ORDERS_TABLE&gt; ) as tableClient<br>      transform:<br>        - transformType: SparkSql<br>          objectNames:<br>            - ORDERS<br>          query: |<br>            SELECT<br>                TRIM(REGION_CD) AS REGION,<br>                COUNT(*)        AS ORDER_COUNT,<br>                SUM(AMOUNT)     AS TOTAL_AMOUNT<br>            FROM ORDERS<br>            WHERE STATUS = &#39;COMPLETED&#39;<br>            GROUP BY TRIM(REGION_CD)<br>          aliasResult: ORDERS_BY_REGION<br>      load:<br>        connections:<br>          - connector: cos<br>            credentials: &lt;COS_CREDENTIAL_NAME&gt;<br>            alias: &lt;TARGET_BUCKET_ALIAS&gt;<br>            query: sample/orders_by_region<br>            loadObject: ORDERS_BY_REGION<br>            fileFormat: parquet<br>            mode: overwrite<br>      setups:<br>        size: S</pre><p>Notice what is intentionally absent: no manual Spark tuning, cluster provisioning, or secret-mounting boilerplate. A size: S declaration delegates resource sizing to the platform, while connectors and credential references abstract storage and security plumbing.</p><p>YAML alone isn’t enough if engineers are left staring at a blank file or digging through wikis. Treating <em>Developer Experience (DevX)</em> as a first-class platform priority is what unlocked adoption. We built a dedicated <strong>VS Code extension </strong>offering inline schema validation, autocomplete, and scaffolding, paired with AI agents for developer support and code assistance so engineers could troubleshoot and build without waiting on a support queue.</p><p>That combination cut onboarding from weeks to hours, fueling organic adoption without turning my core team into a helpdesk. As the model expanded beyond ETL to include validations, event listeners, and Airflow DAGs, engineers could validate and ship an entire end-to-end flow in a single pull request through GitOps.</p><p>The goal wasn’t just writing less code; it was giving data engineers time back to understand the data, partner with the business, and improve quality. Removing that friction reshaped how fast teams delivered between 2023 and 2026 year to date:</p><ul><li><strong>Merged PRs</strong>: 1,264 → 7,143 (5.7x)</li><li><strong>Cycle time P50 <em>(PR open to merge)</em></strong>: 1.2 days → 0.2 days (-83%), about five hours</li><li><strong>Cycle time P90:</strong> 30.8 days → 9.9 days (-68%)</li></ul><p>I don’t read PR volume as individual productivity, or cycle time as business value. Declarative changes also tend to be small, which is partly the point, so I wouldn’t compare a 2026 PR to a 2023 one effort for effort. What matters to me is the combination: the model absorbed more than five times the annual change volume, and changes moved through review considerably faster, including the slow tail.</p><p>The data also showed us what to fix next. For changes we can trace all the way to production, deployment now accounts for most of the remaining lead time. That sample skews toward slower PRs, so I won’t quote absolute numbers. The signal is still clear: once one bottleneck moves, the next one becomes easy to see.</p><blockquote>Platform engineering gave us leverage not by making every step faster, but by removing steps engineers no longer needed to repeat.</blockquote><h3>Keeping a ten-person platform team from becoming a feature bottleneck</h3><p>As adoption grew to roughly 5,000 business pipelines and 3,000 Airflow DAGs across about 50 domains, the pressure shifted to the platform’s own feature backlog. Business teams constantly needed new source connectors, custom transformations, and specialized integrations. With a core platform team of fewer than ten engineers, trying to build every new capability ourselves would have slowed down the entire organization.</p><p><a href="https://en.wikipedia.org/wiki/Inner_source">Inner Source</a> became how we scaled the platform’s evolution. Rather than queuing every request in our backlog, we enabled engineers in the business units who already had deep expertise in those specific systems and transformations to contribute directly to the platform. Over time, more than 100 engineers across business units and countries have contributed connectors, transformers, and features, some once to unblock an immediate need and others repeatedly.</p><p>What made accepting external contributions into the core platform safe was not goodwill. It was contracts: a strict declarative schema, automated conformance checks in CI, and clear extension patterns. A feature contribution that meets the contract can be reviewed quickly; one that doesn’t fails before a human has to read it. That is how a core team of fewer than ten people can sustain a platform spanning 50 business domains and co-developed by over a hundred engineers.</p><p>Domain engineers brought deep knowledge of their data sources and business transformations, while my core team owned the platform architecture, the developer contract, and the quality bar. Centralize the guardrails, and distribute the innovation.</p><h3>Efficiency had to become a product feature</h3><p>More adoption meant more runtime demand:</p><ul><li><strong>2024</strong>: 1.24M job runs</li><li><strong>2025</strong>: 2.45M job runs</li><li><strong>2026</strong> (year to date): 3.04M job runs</li></ul><p>Runs grew about <strong>2.45x</strong> between 2024 and 2026, while maintaining an average success rate of around <strong>98%</strong> even as workload diversity increased. We absorbed that growth without expanding the underlying infrastructure and with cost effectively flat. That means the cost of a single run fell by more than half. It came from tighter Kubernetes utilization, automated right-sizing, and catching runaway workloads before they burned cluster hours.</p><p>At this scale, efficiency can’t be only a FinOps concern. One Spark application that stops making progress while holding executors is an incident. The same pattern repeating across thousands of daily runs is a structural drain.</p><p>That is why we built the <em>Spark Stuck Pod Agent</em>, which detects known runtime anomalies and remediates them within defined guardrails. The <em>Spark Resource Webhook</em> and <em>Runtime Service</em> apply the same idea to allocation, using historical workload behavior to make better resource decisions.</p><p>The sequence matters: reliable signals, deterministic decisions, clear boundaries, safe remediation. That is how we approached self-healing operations, and it started long before AI entered the picture.</p><p>At scale, efficiency stopped being an infrastructure concern. It became a platform capability.</p><h3>What I would enforce earlier</h3><p>Not every lesson came from something we got right.</p><p>Moving complexity into the platform improves developer experience, but not every responsibility should disappear behind an abstraction. We invested heavily in simplifying how people build data flows. We invested too little, too late, in who owns the result.</p><p>If I were starting again, I would enforce data ownership, data contracts, schemas, metadata, and lineage from day one. Adding a connector is a technical change. Adding ownership across an established ecosystem means making explicit what stayed implicit for years. Retroactive schema enforcement brings compatibility fights. Lineage is far easier to capture when a flow is defined than to reconstruct afterward.</p><p>Producers still own the meaning and quality of their data. Consumers still need explicit expectations they can rely on. The declarative definition is the natural place to capture all of that at the moment a flow is created, and I would now treat it as a non-negotiable part of the developer contract.</p><h3>The contract turned out to be the real asset</h3><p>Over time, thousands of pipelines, validations, DAGs, connectors, and event-driven flows accumulated in our repositories. They did more than run workloads. Together they documented how problems had been solved across dozens of business units and geographies, from both the core team and Inner Source contributors.</p><p>We didn’t standardize them for AI. But standardization created many of the conditions that make engineering agents useful. In our experiments with <a href="https://bob.ibm.com/">IBM Bob</a><em> (an AI-assisted coding and engineering agent ), </em>the interesting use case isn’t generating YAML. It is starting from a business requirement, finding how similar problems were already solved, identifying the right connectors and patterns, and assembling a solution in the platform’s established conventions.</p><p>The controls don’t change. Schemas, deterministic validation, tests, human review, and GitOps still govern what reaches production. The agent is another interface into the engineering system, behind the same gate. It is also another reason I wish we had enforced metadata and ownership earlier, because an agent can only reuse context it can find.</p><p>The same contract matters for where the platform is heading. We are moving toward lakehouse patterns, transactional table formats, catalogs, and stronger governance. Because developers describe intent rather than engine details, the engine can change underneath them. Infrastructure evolution should not mean developer disruption.</p><h3>Where I’d draw the line</h3><p>What began as a set of data engineering problems became questions about developer experience, operating models, efficiency, ownership, and how accumulated knowledge gets reused.</p><p>My current answer to the opening question is this. Engineers shouldn’t have to think about Spark configuration, credentials, deployment plumbing, or whether someone solved a similar problem last year. They should absolutely continue to own the meaning of their data, its quality, and their contract with the people who depend on it.</p><p>Where would you draw that line on your platform?</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1e14fed72084" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[What We Learned After Writing 
80 Architecture Decision Records]]></title>
            <link>https://medium.com/@rflima.ti/what-we-learned-after-writing-80-architecture-decision-records-11ef8ec221d8?source=rss-b852a12264e9------2</link>
            <guid isPermaLink="false">https://medium.com/p/11ef8ec221d8</guid>
            <category><![CDATA[architecture]]></category>
            <category><![CDATA[decision-making]]></category>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[software-architecture]]></category>
            <category><![CDATA[software-development]]></category>
            <dc:creator><![CDATA[Rafael F. Lima]]></dc:creator>
            <pubDate>Fri, 11 Sep 2026 00:33:35 GMT</pubDate>
            <atom:updated>2026-09-11T00:33:35.653Z</atom:updated>
            <content:encoded><![CDATA[<p><em>The most valuable outcome was not the documentation. It was the way the team learned to reason, review, and preserve context.</em></p><p>Recently, our team reached a milestone: 80 Architecture Decision Records, built over a journey that began five years ago.</p><p>The number itself is not the point. We did not set out to produce a quota of documents, and more ADRs do not automatically mean better architecture. What matters is how the practice changed the team.</p><p>The biggest change was in how we reason about technical decisions, discuss alternatives, and preserve useful context for the people who may work with the system later.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*cgkeSWgtsCZddymH" /><figcaption>Photo by <a href="https://unsplash.com/@guerrillabuzz?utm_source=medium&amp;utm_medium=referral">GuerrillaBuzz</a> on <a href="https://unsplash.com/?utm_source=medium&amp;utm_medium=referral">Unsplash</a></figcaption></figure><h3>Adoption took time</h3><p>There was some resistance in the beginning.</p><p>At first, some people saw ADRs as extra documentation work. That reaction was understandable. Many teams have watched useful documentation become outdated or turn into bureaucracy.</p><p>The shift came when developers used earlier ADRs to answer real questions instead of repeating discussions or reconstructing why something had been built a certain way. Some initial skeptics became the strongest advocates, a clear sign that the practice had moved from imposed process to a tool the team owned.</p><h3>Writing makes the reasoning visible</h3><p>Once the team began to see ADRs as useful, the next benefit became clear: writing made the reasoning visible. An idea can sound clear while it remains in someone’s head. Once it is on the page, assumptions, missing evidence, and overlooked tradeoffs become easier to see.</p><p>This visibility strengthens an important engineering skill: supporting a position with evidence instead of relying only on experience or intuition. Writing also gives us a moment to pause before implementation. Authors must compare options and explain why one direction makes more sense, which makes the ADR part of planning rather than a record created after the work is done.</p><p>Making the reasoning visible also changed how we reviewed decisions. The document gave everyone the same argument to examine, question, and improve.</p><h3><strong>The review matters as much as the record</strong></h3><p>An ADR should not be written by one person and silently stored. Its value grows when it starts a focused review where the team challenges assumptions, identifies constraints, compares alternatives, and makes consequences explicit.</p><p>Written feedback makes disagreements more precise because everyone can respond to the same reasoning. We do not need everyone to agree. We need confidence that the relevant perspectives were considered and that the team understands the tradeoffs it accepted.</p><p>Review also became a form of risk mitigation. Colleagues with different operational or technical perspectives often exposed issues early, when changing direction was cheaper than discovering them during implementation or after release.</p><p>In practice, ADRs encouraged exploration, improved reviews, reduced avoidable rework, and gave future discussions a reliable starting point.</p><h3><strong>Eighty ADRs become a history of the system</strong></h3><p>An individual ADR is useful. A collection becomes a history of how the system evolved: the constraints that existed, the alternatives considered, and the reasons one direction won.</p><p>Rejected and superseded proposals belong in that history too. Recording why the team avoided a path can prevent the same idea from returning later without its original context.</p><p>That history is especially valuable when people join, ownership changes, or an old decision is revisited. The question becomes not only “What did we decide?” but “Under which conditions did we decide it, and are those conditions still true?”</p><p>Keeping ADRs close to the code made them easier to discover, version, and review through the same workflow used for technical changes. This was also useful for internal contributors outside the core team, who could research previous decisions before proposing changes.</p><h3>Architecture decisions in an AI development workflow</h3><p>That history was already valuable for onboarding, ownership changes, and revisiting old choices. Five years into the journey, AI-assisted development gave it an additional role: the ADR collection became reusable context for exploring and preparing future changes.</p><p>Because our ADRs captured intent, constraints, tradeoffs, and boundaries, AI tools had better context for helping us explore changes and prepare drafts without losing the reasoning behind the system.</p><p>We used generative AI to organize rough notes, improve wording, identify unanswered questions, and summarize alternatives, making it easier to prepare a first draft for review.</p><p>AI made the writing and exploration faster, not the decisions automatic. The team still had to verify facts, challenge assumptions, assess consequences, and stand behind the final choice. Responsibility remained with us.</p><h3><strong>We still struggle with when to write one</strong></h3><p>After 80 ADRs, one question remains: when does a decision deserve one? Document every implementation choice and the process creates noise; set the threshold too high and important reasoning disappears.</p><p>The most useful questions for us are:</p><blockquote>1. Will this decision be difficult or expensive to reverse?</blockquote><blockquote>2. Does it affect multiple components or teams?</blockquote><blockquote>3. Does it require the team to accept a meaningful compromise?</blockquote><blockquote>4. Does it constrain future decisions?</blockquote><blockquote>5. Would someone reasonably ask, months from now, why we chose this direction?</blockquote><p>If one or more answers are yes, an ADR is usually worth considering.</p><p>Deciding whether a choice deserves an ADR also requires clarity about what an ADR is not. Requirements define the problem or expected behavior; an ADR records a significant decision made in response. Combining them can produce long documents that obscure the actual decision.</p><h3><strong>The real milestone</strong></h3><p>Reaching 80 ADRs gave us a reason to reflect. The real milestone was seeing the team use writing to test its reasoning, invite review, revisit decisions, and help others understand the system without depending on verbal history.</p><p>AI made it easier to start a draft and reuse architectural context. The lasting value still came from human judgment and team review.</p><blockquote>An ADR is a small document. The habit behind it is much more significant.</blockquote><p>It turns architecture from something remembered by a few people into something the whole team can examine, question, and improve over time.</p><p><strong>Further Reading &amp; References</strong></p><ol><li><strong>Nygard, M.</strong> (2011). <em>Documenting Architecture Decisions</em>. Cognitect Blog.</li><li><strong>Thoughtworks Technology Radar.</strong> <em>Lightweight Architecture Decision Records</em>.</li><li><strong>Zimmermann, O.</strong> (2020). <em>Architectural Decision Log (ADL) &amp; Decision Knowledge Management</em>. <em>(IEEE Software / Martin Fowler’s Blog)</em></li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=11ef8ec221d8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>