<?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 Amrelboridy on Medium]]></title>
        <description><![CDATA[Stories by Amrelboridy on Medium]]></description>
        <link>https://medium.com/@amrelboridy7?source=rss-28d1a65bf140------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*3BFkBfxAAzBXxO7o</url>
            <title>Stories by Amrelboridy on Medium</title>
            <link>https://medium.com/@amrelboridy7?source=rss-28d1a65bf140------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 00:46:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amrelboridy7/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[Building Your Own Warehouse and Lakehouse: A Sovereign, Open-Source Blueprint]]></title>
            <link>https://medium.com/@amrelboridy7/building-your-own-warehouse-and-lakehouse-a-sovereign-open-source-blueprint-902de4135735?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/902de4135735</guid>
            <category><![CDATA[data-lakehouse]]></category>
            <category><![CDATA[databricks]]></category>
            <category><![CDATA[data-sovereignty]]></category>
            <category><![CDATA[data-warehouse]]></category>
            <category><![CDATA[snowflake]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Mon, 23 Nov 2026 16:12:23 GMT</pubDate>
            <atom:updated>2026-11-23T16:12:23.895Z</atom:updated>
            <content:encoded><![CDATA[<h3>Why build it yourself</h3><p>The two dominant managed data platforms on the market are not magic. Each is a well-integrated set of patterns: separated storage and compute, an open or proprietary table format, a central catalog, a governance layer, and an engine on top. Every one of those patterns has a mature open-source equivalent you can run on your own hardware.</p><p>There are good reasons to do so. Some organizations cannot send data to a public cloud at all, because of data-residency law, sector regulation, or an air-gapped network. Others want predictable cost instead of consumption billing, or want to avoid lock-in to one vendor’s runtime.</p><p>This article is a blueprint, not a product pitch. It shows how to rebuild both experiences; the managed SQL warehouse and the managed lakehouse, from open-source components on a sovereign, on-premises platform, and it is honest about what you take on when you do.</p><h3>Two patterns, one foundation</h3><p>Strip away the branding and the two platforms answer two different questions.</p><p><strong>The managed SQL warehouse</strong> answers: “How do I let many teams run SQL on the same data without fighting over resources?” Its core idea is a three-layer split; shared storage, many independent compute clusters, and a service layer for metadata, security and query planning. Analysts see a database; they never see a cluster.</p><p><strong>The managed lakehouse</strong> answers: “How do I do engineering, streaming, analytics and machine learning on one copy of the data?” Its core idea is a distributed processing engine over open files in object storage, wrapped with a transactional table format, a unified catalog, and tooling for the full ML lifecycle.</p><p>Both sit on the same foundation: cheap, scalable storage decoupled from compute, an open table format that gives files database semantics, and one catalog that every engine trusts. Build that foundation once, and both experiences become engines and tooling on top of it.</p><h3>The shared foundation</h3><p>Build four layers once; every engine in both patterns reads and writes through them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/975/1*4cYLaHGJS6IHYmWVlbGczw.png" /><figcaption>Reference Architecture · Two experiences over one foundation</figcaption></figure><p><strong>Object storage.</strong> Apache Ozone gives you scalable, S3-compatible object storage on your own servers, with erasure coding to cut the raw-capacity overhead of plain replication. Because it speaks the S3 API, every modern engine can use it unchanged.</p><p><strong>Open table format.</strong> Apache Iceberg turns files into tables with ACID commits, schema evolution, hidden partitioning and time travel. It is what lets Spark write a table that Trino, Flink, and more can all read consistently.</p><p><strong>One catalog.</strong> A REST catalog is the single source of truth for which tables exist and where their current metadata lives. Point every engine at the same catalog, never at private copies.</p><p><strong>One policy layer.</strong> Apache Ranger holds access policies centrally, with identities from Kerberos and LDAP. Engines enforce the same rules, so a masked column stays masked whichever tool a user picks.</p><h3>Pattern 1: the warehouse experience</h3><p>The warehouse experience is a federated SQL engine with isolated compute, over the shared foundation.</p><p><strong>The engine.</strong> Trino/Presto is a distributed MPP SQL engine that queries Iceberg tables directly, and can also federate across relational databases, Kafka topics and other sources through connectors. To users it looks like one database with many catalogs.</p><p><strong>Isolated compute pools.</strong> The managed warehouse’s signature feature is that each team gets its own compute on the same data. You get the same effect by running several Trino clusters against the same catalog; one for interactive BI, one for heavy ETL-style SQL, one for ad-hoc data science. instead of one giant shared cluster. Inside each cluster, resource groups cap concurrency and memory per user group. Running the clusters on Kubernetes lets you scale workers per pool independently.</p><p><strong>Governance at the engine.</strong> Trino’s Apache Ranger plugin authorizes access to catalogs, schemas, tables and columns, and supports column masking, row filtering and audit logging (<a href="https://trino.io/docs/current/security/ranger-access-control.html">Trino docs</a>). One policy set now protects every query, whatever the source.</p><p><strong>Sub-second dashboards.</strong> A federated engine is not the right tool for high-concurrency, sub-second dashboards. Add a real-time columnar OLAP store such as ClickHouse as a serving layer for curated, aggregated tables, and keep Trino for exploration and joins across domains.</p><p><strong>The natural-language layer (Semantic Layer).</strong> Managed warehouses now ship “ask your data” features. The sovereign version is a self-hosted LLM that turns questions into SQL, sent through the same Trino endpoint so Ranger policies still apply to every generated query. Never let the model bypass the governed engine.</p><h3>Pattern 2: the lakehouse experience</h3><p>The Lakehouse experience is a processing engine plus an ML lifecycle, writing to the same tables the warehouse reads.</p><p><strong>Batch processing.</strong> Apache Spark is the workhorse for large transformations, writing Iceberg tables through the shared catalog. Run it on Kubernetes or YARN; either way, jobs are just another compute pool on the same storage.</p><p><strong>Streaming.</strong> Kafka carries events in; Apache Flink processes them with exactly-once guarantees and commits to Iceberg tables continuously. The result is one table that serves both fresh and historical queries, without a separate streaming copy.</p><p><strong>Medallion layers.</strong> Organize tables as bronze (raw, as landed), silver (cleaned and conformed) and gold (business-ready aggregates). The layers are a naming and ownership convention in the catalog, not separate systems.</p><p><strong>The ML lifecycle.</strong> The managed Lakehouse’s ML features map to open tools on a Kubernetes cluster with GPUs:</p><p>• MLflow for experiment tracking and the model registry</p><p>• A pipeline orchestrator such as Kubeflow Pipelines for repeatable training</p><p>• KServe for model serving, with vLLM as the runtime for large language models</p><p>• A vector database such as Qdrant for retrieval-augmented generation</p><p>• A private container registry such as Harbor, so nothing is pulled from the internet at runtime</p><p>Training reads features from the same silver and gold tables the analysts query, so models and dashboards agree on one version of the truth.</p><h3>The invisible part: what managed platforms do for you</h3><p>The biggest gap between a managed platform and a self-built one is not the engine. It is the housekeeping that runs silently in the background.</p><p>Managed platforms schedule these for you. On your own platform, you must own them.</p><p>The same applies elsewhere: certificate rotation, Kerberos keytabs, catalog backups, engine upgrades and capacity planning are all now yours. Budget engineering time for them from day one.</p><p><strong>What you gain:</strong></p><p>Data never leaves your network, cost is fixed hardware rather than per-query billing, no single vendor can change your pricing or roadmap, and you can tune every layer.</p><p><strong>What you own:</strong></p><p>Upgrades, security patching, capacity planning, on-call, and the integration between components. A managed platform sells you the absence of that work. If your team is small and data residency is not a constraint, buying may well be the right answer.</p><h3>Conclusion</h3><p>The managed warehouse and the managed Lakehouse are two front doors to the same house: open storage, an open table format, one catalog and one policy layer. Build that foundation first, and the warehouse becomes a set of isolated SQL compute pools while the lakehouse becomes processing engines and an ML stack writing to the same tables.</p><p>The components are mature and free. The real cost is operational: the maintenance, upgrades and integration that managed platforms hide. Plan for that work explicitly, automate it early, and a sovereign platform can offer both experiences without your data ever leaving the building.</p><h3>Sources</h3><p>• <a href="https://iceberg.apache.org/docs/latest/maintenance/">Apache Iceberg — Maintenance</a></p><p>• <a href="https://trino.io/docs/current/security/ranger-access-control.html">Trino — Apache Ranger access control</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=902de4135735" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[A2A Gateways Between AI Factories: Interoperability or Organized Silos?]]></title>
            <link>https://medium.com/@amrelboridy7/a2a-gateways-between-ai-factories-interoperability-or-organized-silos-bf501becb139?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/bf501becb139</guid>
            <category><![CDATA[agentic-ai]]></category>
            <category><![CDATA[a2a-protocol]]></category>
            <category><![CDATA[federation]]></category>
            <category><![CDATA[data-silos-ai]]></category>
            <category><![CDATA[ai]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Mon, 02 Nov 2026 07:02:21 GMT</pubDate>
            <atom:updated>2026-11-02T07:02:21.989Z</atom:updated>
            <content:encoded><![CDATA[<h3>The question behind the gateway</h3><p>AI factories are starting to ship A2A gateways so their agents can call agents running in other factories. It looks like interoperability. It can also be the cheapest way to make AI silos permanent.</p><p>The trade-off is easy to state. Federate many factories through A2A and you gain speed and vendor choice, but governance splits into as many copies as you have factories. Consolidate agents into one factory, whoever built them, and you keep one control plane, but you carry the cost of running it.</p><p>This article argues for a middle reading: one governed control plane inside, and A2A only at the edge.</p><h3>What an A2A gateway actually buys you</h3><p>A2A standardizes the conversation between agents. It does not standardize the governance around that conversation.</p><p>The protocol lets agents from different vendors and frameworks discover each other and delegate tasks. Google contributed it, and it is developed in the open under the Linux Foundation (<a href="https://github.com/a2aproject/A2A/blob/main/README.md">A2A README</a>). Each agent publishes an Agent Card: a JSON manifest of its skills, endpoint and accepted authentication schemes (<a href="https://a2a-protocol.org/latest/specification/">A2A spec</a>).</p><p>The design choice that matters here is opacity. Remote agents do not share internal memory, tools or direct resource access with the caller (<a href="https://a2a-protocol.org/latest/topics/enterprise-ready/">A2A Enterprise Features</a>). That is good security hygiene. It also means the calling factory cannot see how the remote agent reached its answer, or what it touched on the way.</p><p>The same page is explicit about what the protocol leaves to each implementer:</p><p>• <strong>Identity:</strong> payloads carry no user or client identity; credentials are obtained out of band.</p><p>• <strong>Authorization:</strong> the remote server decides, and the logic is specific to that implementation.</p><p>• <strong>Tracing and audit:</strong> written as recommendations (“should”), which you cannot enforce on someone else’s factory.</p><p>None of this is a flaw in A2A. It is the correct scope for a wire protocol. The problem starts when a wire protocol is mistaken for a governance model.</p><h3>Where the silo comes from</h3><p>Every factory behind an A2A gateway keeps its own policy engine, identity store, guardrails, audit log and cost meter. Connecting factories shares tasks, not control.</p><p>Trace one cross-factory request:</p><p>1. Agent A in Factory 1 delegates a task to Agent B in Factory 2 through the gateway.</p><p>2. Factory 2 authorizes the call against its own policies, which Factory 1 cannot inspect.</p><p>3. Agent B reads data and calls tools under Factory 2’s masking and retention rules.</p><p>4. The result returns as an artifact. Factory 1 sees the output, not the path.</p><p>Each step is secure on its own. Nobody owns the end-to-end answer: which data did this decision touch, under which policy, and at what cost?</p><p>What fragments, concretely:</p><p>• <strong>Policy:</strong> N policy engines, N definitions of personal data, N masking rules.</p><p>• <strong>Identity:</strong> the end user is re-translated at every hop, so delegation chains become hard to prove.</p><p>• <strong>Audit and lineage:</strong> traces stop at the gateway unless every factory propagates the same context.</p><p>• <strong>Guardrails:</strong> a prompt blocked in one factory can pass in another with weaker filters.</p><p>• <strong>Cost:</strong> token and GPU spend splits across bills with no shared quota.</p><p>The <a href="https://genai.owasp.org/resource/owasp-top-10-for-agentic-applications-for-2026/">OWASP Top 10 for Agentic Applications 2026</a> names two of these failure modes directly: insecure inter-agent communication (ASI07) and cascading failures (ASI08). A gateway concentrates both at the boundary you control least.</p><p>Governance becomes a negotiation between gateways. That is still a silo, only with a better API.</p><h3>The alternative: one factory, any vendor</h3><p>The opposite design runs every agent inside one sovereign AI factory, whichever vendor or framework built it. Governance is then defined once and inherited by every agent.</p><p>NVIDIA describes an AI factory as infrastructure that manages the full AI lifecycle, from data ingestion to high-volume inference (<a href="https://www.nvidia.com/en-au/glossary/ai-factory/">NVIDIA glossary</a>). Extend that to agents and the factory becomes where agents run, not only where models serve.</p><p>What consolidation gives you:</p><p>• <strong>One identity plane:</strong> every agent call carries the same end-user identity, end to end.</p><p>• <strong>One policy engine:</strong> masking, row filters and tool permissions defined once.</p><p>• <strong>One trace:</strong> prompt to data to tool call, kept inside your residency boundary.</p><p>• <strong>One guardrail and model gateway:</strong> a new vendor agent inherits the controls on day one.</p><p>• <strong>One cost ledger:</strong> quotas per team and per agent, on one bill.</p><p>Vendor neutrality comes from packaging, not location. Agents ship as containers, reach tools through MCP, and talk to each other through A2A (<a href="https://tyk.io/blog/a2a-protocol/">Tyk on A2A vs MCP</a>). A2A still runs inside the factory. It is simply governed by one control plane instead of many.</p><p>What consolidation costs:</p><p>• <strong>Platform effort:</strong> someone must build and run the control plane, and it becomes critical infrastructure.</p><p>• <strong>Vendor friction:</strong> some SaaS agents only run in their vendor’s cloud and cannot be brought inside.</p><p>• <strong>Concentration risk:</strong> one misconfiguration or outage reaches every agent unless isolation is designed in.</p><p>• <strong>Onboarding speed:</strong> central review of each vendor agent is slower than pointing at a gateway.</p><h3>The trade-off, side by side</h3><p>Federation wins on speed and reach; consolidation wins on everything a regulator or auditor will ask about.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/945/1*4yl_opg9WXmbVnZnTWhXAw.png" /><figcaption>Federation vs Consolidation</figcaption></figure><h3>The position: consolidate control, federate only at the edge</h3><p>The answer is not “never use A2A”. Govern every agent through one control plane, and treat A2A gateways as a border crossing, not as the internal integration pattern.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/900/1*r8DMMJiemSwL9n0lR4qfsQ.png" /><figcaption>target pattern · one control plane, one border gateway</figcaption></figure><p>Every agent, whoever built it, sits under the same control plane; only the border gateway talks to the outside.</p><p>• <strong>Inside the sovereign boundary:</strong> agents from any vendor run on one factory, under one identity, policy, guardrail and audit plane. A2A still connects them, as an internal bus.</p><p>• <strong>At the border:</strong> one A2A gateway, owned by that control plane, handles partners, suppliers and group entities. It verifies signed Agent Cards, maps identity, filters data and logs every exchange. The A2A docs recommend API management for exactly this case: centralized policy, quotas and analytics for agents exposed across organizational boundaries (<a href="https://a2a-protocol.org/latest/topics/enterprise-ready/">A2A Enterprise Features</a>).</p><p>• <strong>Exceptions:</strong> a vendor agent that cannot run inside is treated as an external party through the same border gateway. It never becomes a peer factory with its own internal reach.</p><p>Signed cards are not hypothetical: the specification defines an Agent Card signature based on JSON Web Signature (<a href="https://tyk.io/learning-center/a2a-protocol-architecture-and-technical-specification/">Tyk spec walkthrough</a>).</p><p>One test settles most proposals. After an agent call crosses a gateway, can one team still answer who asked, what data was touched, under which policy, and at what cost? If not, the gateway is building a silo.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GtcKVpr-iRThbHF7OLtm7A.jpeg" /><figcaption>Consolidate control, Federate only at the edge</figcaption></figure><h3>The bottom line</h3><p>A2A is a good protocol. Used between separately governed factories, it federates conversations while fragmenting control. For a sovereign AI strategy, aggregate governance first, and let agents cross gateways only where the organization ends.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bf501becb139" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The AI Tax Nobody Put on the Invoice]]></title>
            <link>https://medium.com/@amrelboridy7/the-ai-tax-nobody-put-on-the-invoice-372f62657e93?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/372f62657e93</guid>
            <category><![CDATA[data-sovereignty]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[ai-tax]]></category>
            <category><![CDATA[on-premise]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Tue, 06 Oct 2026 14:07:05 GMT</pubDate>
            <atom:updated>2026-10-06T14:07:05.694Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Notes from the McKinsey AI event</em></p><p>One slide from the McKinsey event stayed with me: the <strong>cognitive tax</strong>.</p><p>When your value creation depends on a handful of AI infrastructure providers, the API bill is the smallest part of the cost. The bigger part is pricing power you don’t control, lock-in, operational vulnerability, and shrinking strategic autonomy. You pay it silently, and it grows as your dependency grows.</p><ol><li><strong>Sovereign cloud is not sovereign AI.</strong><br> Sovereign cloud is mostly about where data is stored, while sovereign AI is about control, governance, and dependence. You can keep your data in-country and still rent your intelligence from someone else.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*JLx54u4oQSNrqwODFjxt9Q.png" /><figcaption>AI Tax: Cloud vs On-Prem</figcaption></figure><p><strong>2. Sovereignty is not “build everything yourself”.</strong><br> McKinsey is clear that sovereign AI is not about full-stack independence. The practical advice is to segment use public models for generic tasks and reserve sovereign infrastructure for high-value IP and sensitive data.</p><p><strong>3. It is a multiyear journey.</strong><br> Nearly three-quarters of enterprises include sovereign AI in their 2026 road map, yet few have concrete plans, and infrastructure migrations are expected to take three or more years. The gap between intent and execution is where engineers matter.</p><p><strong>What I took away as a platform Expert</strong></p><ul><li>Decide which workloads carry the tax risk. Not all of them do.</li><li>Own the layers that matter: the data platform, the serving layer, and self-hosted open-weight models.</li><li>Keep the architecture decoupled so components can be swapped. McKinsey’s agentic infrastructure guidance lists vendor flexibility, reducing lock-in and preserving optionality as a design principle.</li></ul><p>You will pay the tax either way. The only question is whether you pay it to a hyperscaler or to yourself, in the form of investment in your own platform and people.</p><p>#ElboridyOnPlatform #SovereignAI #DataPlatform #AIInfrastructure #McKinsey</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=372f62657e93" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Who Cleans the Tables in the Data Stack?]]></title>
            <link>https://medium.com/@amrelboridy7/who-cleans-the-tables-in-the-data-stack-218608364f52?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/218608364f52</guid>
            <category><![CDATA[java]]></category>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[cpp]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[rust]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Sun, 13 Sep 2026 06:18:24 GMT</pubDate>
            <atom:updated>2026-09-13T06:18:24.370Z</atom:updated>
            <content:encoded><![CDATA[<p>Open any data platform and you’ll find three families of tools living side by side. Apache family (Kafka, Trino, Hive and Flink ) run on the JVM. ClickHouse and DuckDB are C++. Polars, Qdrant and DataFusion are Rust.</p><p>People usually explain the difference with benchmarks. I think there’s a simpler question underneath all of them:</p><p><strong>Who frees memory, and when does your code become machine code?</strong></p><p>Answer that, and the rest (speed, RAM, crashes, startup time, GC tuning tickets) falls out on its own.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*xeTle1Q_uXzDJ-4rSfjeqg.png" /><figcaption>Java vs C++ vs Rust: Who Manages Memory?</figcaption></figure><p>A restaurant with limited tables</p><p>Memory is a room full of tables. Your program keeps seating guests (creating objects). Someone has to clear the tables when guests leave.</p><p>✅ Java: a cleaning crew (the garbage collector) walks around and clears empty tables for you. You never think about it. But now and then the crew asks everyone to freeze while they clean. That’s a GC pause. And because clearing is delayed, you need more tables than you actually use. That’s your -Xmx64G.</p><p>✅ C++: you clear every table yourself. Nobody is faster. But forget one and it stays occupied forever (a leak). Clear one while a guest is still eating and things go very wrong (use after free).</p><p>✅ Rust: a strict manager (the compiler) checks the seating plan before the doors open. If any table could be cleared too early or never, the restaurant doesn’t open. You get C++ speed with no cleaning crew. The price is arguing with the manager during development.</p><p><strong>Same bug, three outcomes</strong></p><p>Create a list, free it, use it again.</p><pre>// C++: compiles. Behavior at runtime is undefined.<br>std::vector&lt;int&gt;* data = new std::vector&lt;int&gt;{1, 2, 3};<br>delete data;<br>data-&gt;push_back(4);   // crash, silent corruption, or &quot;works&quot; until it doesn&#39;t</pre><pre>// Java: you can&#39;t free it yourself. You get a clean, catchable error.<br>List&lt;Integer&gt; data = new ArrayList&lt;&gt;(List.of(1, 2, 3));<br>data = null;<br>data.add(4);          // NullPointerException</pre><pre>// Rust: this never ships.<br>let data = vec![1, 2, 3];<br>drop(data);<br>data.push(4);         // compile error: borrow of moved value: `data`rrr</pre><p>This isn’t an academic difference. Microsoft’s security team reported that around 70% of the vulnerabilities it fixes each year are memory safety issues. That’s exactly the class of bug the C++ example shows.</p><p><strong>The second half: when it becomes machine code</strong></p><pre>Java:        source → bytecode → JVM on the server → JIT → machine code<br>C++ / Rust:  source → compiler → native binary → CPU</pre><p>The JVM compiles at runtime and gets faster as it warms up. That’s fine for a Trino coordinator that runs for months, and annoying for a CLI that runs for 200 milliseconds. Native binaries are fast from the first instruction, which is why tools like uv and ripgrep feel instant.</p><h3>So why is Apache mostly Java?</h3><p>Timing. for example, Apache Hadoop showed up around 2006, when Java was the enterprise default. Portable JARs, a garbage collector that kept 1,000 node clusters from segfaulting, and a huge hiring pool. Everything built on Hadoop inherited that choice, and ecosystems don’t get rewritten for fun.</p><h3>And why is new stuff native?</h3><p>Hardware moved. NVMe and fast networks made the storage and the wire quicker, so GC pauses and object overhead became the bottleneck. The pattern since then is clear: keep the interface people know, replace the engine underneath.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/814/1*ofHsxjyV7UM2cr9ghZ2fWQ.png" /></figure><h3>What this means when you’re on call</h3><p>Heap flags, GC logs, a worker marked unresponsive during a full GC? That’s the JVM tax. A rare core dump in an edge case nobody tested? That’s manual memory. A tool that’s rock solid but painful to build from source or contribute to? That’s the borrow checker doing its job.</p><p>None of these is “the best language.” Java bought the big data world a productive ecosystem. C++ buys raw speed and demands discipline. Rust tries to give you the speed without the discipline tax at runtime, and moves that tax to compile time.</p><p>My honest read: the JVM backbone isn’t going anywhere, but the hot paths are quietly going native, one engine at a time.</p><h3>References</h3><ol><li>The Rust Programming Language, Chapter 4: Understanding Ownership. <a href="https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html">https://doc.rust-lang.org/book/ch04-01-what-is-ownership.html</a></li><li>Oracle, HotSpot Virtual Machine Garbage Collection Tuning Guide (Java SE 21). <a href="https://docs.oracle.com/en/java/javase/21/gctuning/">https://docs.oracle.com/en/java/javase/21/gctuning/</a></li><li>Microsoft Security Response Center, “A proactive approach to more secure code” (2019). <a href="https://msrc.microsoft.com/blog/2019/07/a-proactive-approach-to-more-secure-code/">https://msrc.microsoft.com/blog/2019/07/a-proactive-approach-to-more-secure-code/</a></li><li>ClickHouse source repository. <a href="https://github.com/ClickHouse/ClickHouse">https://github.com/ClickHouse/ClickHouse</a></li><li>Redpanda source repository. <a href="https://github.com/redpanda-data/redpanda">https://github.com/redpanda-data/redpanda</a></li><li>ScyllaDB source repository. <a href="https://github.com/scylladb/scylladb">https://github.com/scylladb/scylladb</a></li><li>Apache DataFusion Comet. <a href="https://github.com/apache/datafusion-comet">https://github.com/apache/datafusion-comet</a></li><li>Polars. <a href="https://github.com/pola-rs/polars">https://github.com/pola-rs/polars</a></li></ol><p>#ElboridyOnPlatform #DataEngineering #Rust #Java #CPlusPlus #JVM #BigData #ApacheKafka #Trino #ClickHouse</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=218608364f52" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When to Build, When to Partner, and When to Just Use the Cloud]]></title>
            <link>https://medium.com/@amrelboridy7/when-to-build-when-to-partner-and-when-to-just-use-the-cloud-d4bc60cf5053?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/d4bc60cf5053</guid>
            <category><![CDATA[data-center]]></category>
            <category><![CDATA[ai]]></category>
            <category><![CDATA[mtn-nigeria]]></category>
            <category><![CDATA[operations]]></category>
            <category><![CDATA[cloud-computing]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Wed, 02 Sep 2026 16:46:09 GMT</pubDate>
            <atom:updated>2026-09-02T16:46:09.714Z</atom:updated>
            <content:encoded><![CDATA[<p>MTN Group announced last week that it is building 150MW of AI data centre capacity in South Africa and Nigeria. What caught my attention was not the megawatts. It was the ownership structure. MTN took a minority stake. A UAE-backed partner brings most of the capital and the build expertise.</p><p>An operator that already runs more than a dozen data centres across Africa decided not to build this one itself. That is a strategy decision worth unpacking, because most of operatoer who are running platforms in this region are facing a smaller version of the same question.</p><h3>The question is not “cloud or on-prem”</h3><p>That framing has been dead for a while. The real question is narrower: for a given workload, who should own the capital, who should own the operations, and where does the data legally have to sit.</p><p>Three answers exist. You build it. You partner for it. You rent it. Most organisations need all three at once, for different workloads.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d1uB-Q3L1Eb30rxZsdtB1w.png" /><figcaption>Choosing a Compute Model for AI Workloads</figcaption></figure><h3>When on-prem is the right call</h3><p>Data sovereignty is the clearest trigger. If a regulator, a licence condition, or a customer contract says the data does not leave the country, the decision is made for you. No amount of cloud economics changes it. Telecom subscriber data, network telemetry, anything touching CDRs, most financial records in this region. These do not have a cloud option in practice.</p><p>Second trigger is workload shape. If your compute is steady rather than bursty, on-prem wins on cost after roughly the second year. Cloud pricing is built for elasticity. If you never flex, you are paying for an option you do not use. A batch pipeline that runs the same volume every night is the wrong thing to rent by the hour.</p><p>Third trigger is one people undersell: capability. When you run the platform yourself, your team learns the stack. Not the console, the stack. There is a difference between an engineer who can configure a managed service and one who has debugged a failing storage layer at three in the morning. The second engineer is worth much more, and you cannot buy that knowledge, you can only accumulate it.</p><h3>When you should rent instead</h3><p>Bursty and unpredictable workloads. Model training runs that happen twice a year. Anything experimental where you do not yet know if the workload survives to production. Buying GPUs to find out whether an idea works is an expensive way to learn that it does not.</p><h3>When partnership is the right shape</h3><p>This is the MTN answer, and it deserves more attention than it gets.</p><p>Partnership fits when three things are true at once. The physical asset has to be local, for sovereignty or latency. The capital requirement is large enough that owning it distorts your balance sheet. And the operating discipline is genuinely different from your core business.</p><p>Running a mobile network and running an AI data centre share almost nothing operationally. Different failure modes, different capex cycles, different skills. MTN choosing a minority stake says the leadership looked at that gap and decided buying access was smarter than building competence they would never fully develop.</p><p>Building a 150MW facility costs somewhere between three and six billion dollars. That number alone explains a lot of the structure.</p><h3>How to actually decide</h3><p>I would run any workload through four questions, in order.</p><p><strong>Does the data have to stay here?</strong> If yes, cloud is out. You are choosing between build and partner. If no, all three stay open.</p><p><strong>Is the load steady or spiky?</strong> Steady favours owning. Spiky favours renting.</p><p><strong>Is this capability strategic in three years?</strong> If the answer is yes, build it even when renting is cheaper now, because the learning compounds. If no, do not accumulate operational debt for something you will not care about.</p><p><strong>Can we carry the capital and the operations?</strong> Be honest here. If the capital is fine but the operations are outside your competence, that is exactly the partnership case.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0JVd4Iv4OlfDWiORdYkQhA.png" /><figcaption>Three Ways to Get Compute</figcaption></figure><p>The order matters. Sovereignty is a constraint, not a preference, so it goes first. Capability comes before cost, because cost is a one-year view and capability is a five-year one.</p><h3>The part most plans miss</h3><p>Whatever path you pick, you also have to plan the exit. Cloud commitments end. Partnership agreements have terms. On-prem hardware refreshes on a cycle you do not fully control.</p><p>I would rather have a slightly more expensive setup that I can move than a cheap one I am locked into. That preference has cost me money in the short run and saved me from worse in the long run.</p><h3>What this means for platform teams</h3><p>Sovereign compute demand is the reason on-prem platform engineering stopped being a cost line. When governments and enterprises start insisting their workloads run locally, the team that knows how to build and operate a local platform becomes something the business needs rather than something it tolerates.</p><p>MTN is building this capacity partly to serve exactly that demand: their own workloads, plus hyperscalers, enterprises, and governments who want control over where their data is processed.</p><p>If you are running an on-prem data or AI platform in this region, that is the market signal to point at when someone asks why the platform team exists.</p><h3>References</h3><ul><li>MTN targets 150MW in first phase of AI data centre push, TechCentral: <a href="https://techcentral.co.za/mtn-targets-150mw-in-first-phase-of-ai-data-centre-push/285310/">https://techcentral.co.za/mtn-targets-150mw-in-first-phase-of-ai-data-centre-push/285310/</a></li><li>MTN forms data center partnership with unnamed investor, Data Center Dynamics: <a href="https://www.datacenterdynamics.com/en/news/mtn-forms-data-center-partnership-with-unnamed-investor/">https://www.datacenterdynamics.com/en/news/mtn-forms-data-center-partnership-with-unnamed-investor/</a></li><li>MTN Group H1 2026 results, MTN Group: <a href="https://www.mtn.com/mtn-group-delivers-record-margin-in-h1-2026-with-strong-earnings-cashflow-and-returns-initiates-share-buyback-programme/">https://www.mtn.com/mtn-group-delivers-record-margin-in-h1-2026-with-strong-earnings-cashflow-and-returns-initiates-share-buyback-programme/</a></li><li>MTN and Dubai-based Al Ashram to build 150MW AI data centres, Technext: <a href="https://technext24.com/news/mtn-al-ashram-to-build-150mw-ai-data-centres/">https://technext24.com/news/mtn-al-ashram-to-build-150mw-ai-data-centres/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d4bc60cf5053" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[LTAP is a storage decision before it is a product]]></title>
            <link>https://medium.com/@amrelboridy7/ltap-is-a-storage-decision-before-it-is-a-product-379c5795a35c?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/379c5795a35c</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[ltap]]></category>
            <category><![CDATA[postgresql]]></category>
            <category><![CDATA[oltp-vs-olap]]></category>
            <category><![CDATA[apache-iceberg]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Tue, 25 Aug 2026 15:44:47 GMT</pubDate>
            <atom:updated>2026-08-25T15:44:47.882Z</atom:updated>
            <content:encoded><![CDATA[<p>Databricks announced LTAP at Data + AI Summit on 16 June 2026, and the story is clean enough to be suspicious: transactional and analytical workloads reading and writing one copy of data, in open formats, with no CDC pipeline between them. Lake Transactional/Analytical Processing. One data, zero copies.</p><p>Most of the commentary I read afterwards was about whether Databricks pulled it off. That is the wrong question for anyone running a platform they do not buy from Databricks. The interesting part is not the solution. It is the sequence of decisions that make the product possible, because those decisions are available to everyone, and most teams have already made half of them without noticing.</p><p>So here is the sequence, as I think about it for an on-prem estate.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/768/1*ElLtpUqVjLr8bp9TSCG5qA@2x.jpeg" /><figcaption><em>Three phases. Only the first one is mandatory, and it is the one nobody puts on a roadmap.</em></figcaption></figure><h3>The assumption nobody re-examined</h3><p>For four decades the split was justified. OLTP databases take thousands of small writes per second and must confirm every one of them. Analytical systems scan billions of rows and do not care about latency per row. Different access patterns, different storage layouts, different hardware assumptions. You built two systems and ran a pipeline between them.</p><p>Everyone knew the pipeline was the weak link. Everyone kept building it anyway, because the alternative was worse.</p><p>HTAP was the first attempt at removing it. SAP HANA, Oracle, several others tried to force both workloads into a single engine. It mostly did not work, because tuning one engine for two opposite access patterns means both sides get a compromise, and because the storage underneath was proprietary.</p><p>What changed is not the workloads. It is that storage stopped being part of the engine.</p><h3>Phase one: decouple storage from compute</h3><p>This is the boring phase and it is the only one that matters. If your data still lives inside the engine that wrote it, nothing downstream is possible.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4xP7MlefQf0rbj8kLWoTgQ.png" /><figcaption><em>On the left the engine owns the data. On the right the storage owns it and the engine is just a process that happens to be reading right now. Everything else follows from which side you are on.</em></figcaption></figure><p>A classic warehouse owns its files. Data goes in, and the only way out is through that engine’s API. Move the data to object storage in an open table format and the relationship inverts: the storage is the system of record, and the engine becomes a process that happens to be reading it right now. Kill the engine, start a different one, the data does not care.</p><p>Two things have to be true, and teams routinely get only the first:</p><p>The data has to be on shared storage. S3, MinIO, Ozone, whatever you run. Not a local disk owned by one node.</p><p>The data has to be in a format other engines understand. This is where it usually breaks. Writing Parquet files to S3 from three different tools gives you three directories of files that only their author can interpret correctly, because Parquet is a file format, not a table format. It has no notion of a snapshot, a schema history, or an atomic commit. Iceberg and Delta add exactly that layer, and without it “shared storage” is just a shared folder.</p><p>I have seen platforms claim decoupling because everything writes to the object store. Then you look closer and each team has its own directory, its own partitioning convention, and its own idea of what a valid file is. That is not one copy of data. That is the same mess with a different mount point.</p><p>Get this phase right and you have not built anything visible. No dashboard got faster. No pipeline disappeared. What you bought is optionality, and it pays out in phase two.</p><h3>Phase two: LTAP-lite for the analytical half</h3><p>Here is the part you can actually build today with open source, and it is worth more than the marketing suggests.</p><p>Take three engines with genuinely different strengths. Trino for federated interactive SQL. Spark for heavy batch and ML feature work. ClickHouse for low-latency aggregations behind a dashboard. Traditionally each one owns a copy of the data and you write jobs to keep them agreeing with each other.</p><p>Point all three at the same Iceberg tables instead.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*AbY52UdzXxB5mbCBI3dFgg.png" /><figcaption><em>Solid arrows write, the dashed one only reads. ClickHouse Iceberg writes are still experimental as of 25.7, so the working pattern is asymmetric on purpose.</em></figcaption></figure><p>Trino has a mature Iceberg connector, reads and writes, with hidden partitioning and time travel. Spark treats Iceberg as native and is usually where the table gets written in the first place. ClickHouse reads Iceberg through its Iceberg table engine and DataLake Catalog integration, with predicate pushdown and time travel on the read path.</p><p>That is three engines, one table, no synchronization job. It is not full LTAP. It is the analytical half of it, and it removes a category of work that most platform teams treat as permanent.</p><h3>What phase two actually costs you</h3><p>Nobody puts this on the architecture diagram.</p><p>Small files become everyone’s problem. Three engines committing to the same table at different cadences produces a lot of tiny files and a lot of snapshots. Compaction and snapshot expiry stop being optional hygiene and become a scheduled operational concern with real consequences when it lapses.</p><p>The catalog becomes a single point of coordination. Hive Metastore, REST catalog, whatever you pick, every engine now depends on it agreeing about table state. Its availability profile is suddenly your platform’s availability profile.</p><p>Concurrent writes need a policy. Iceberg gives you optimistic concurrency and atomic commits, which means two engines writing the same partition will not corrupt anything. One of them will just lose and have to retry. That is correct behavior and it is also a source of confusing job failures if nobody decided in advance who writes what.</p><p>Governance has to move down a layer. If your access control lives inside one engine, it is now trivially bypassed by pointing a different engine at the same files. Column masking enforced in Trino means nothing if Spark can read the raw Parquet. Authorization belongs at the catalog and storage boundary, not in the query engine.</p><p>And resource contention gets worse, not better. Shared storage means every engine’s read amplification lands on the same object store, and if those engines share physical nodes, they will fight each other for CPU and memory. Kubernetes with real resource limits, or Cgroups if you are still on bare metal, stops being a nice-to-have. The engines will not negotiate with each other. They do not know each other exists.</p><p>None of this is a reason to skip phase two. It is a reason to staff it.</p><h3>Phase three: the transactional wall</h3><p>This is where the open-source path used to stop.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nj1MZKzntiWZ0_CTgc-8hQ.png" /><figcaption><em>The barrier is not a tuning problem. InnoDB assumes storage sitting next to it at microsecond latency, and no configuration changes that. The faded path around it is the CDC pipeline LTAP claims to have deleted.</em></figcaption></figure><p>You cannot take MySQL or Postgres, point it at object storage, and call it done. The InnoDB or heap storage engine assumes storage sitting next to it with microsecond latency. Object storage answers in milliseconds and prefers large sequential writes. Small transactional commits against S3 do not degrade gracefully, they stop being a database. That is not a tuning problem, it is a design assumption baked in below the configuration layer.</p><p>Which leaves CDC. Read the binlog or the WAL, transform, land in Iceberg. It works, it is well understood, and it is precisely the pipeline LTAP claims to have deleted. Two copies, measurable lag, and something to page you at 2am.</p><p>What Databricks actually built is a Postgres-compatible engine where storage was externalized from the start, with caching aggressive enough to keep transactional latency acceptable. Not Postgres relocated onto S3. A different engine that speaks the Postgres wire protocol.</p><p>It is worth noting that not everyone accepts the framing. Pixeltable’s engineering write-up argues that what is happening architecturally is a transactional layer mirroring writes into a columnar format, with measurable lag, which is managed CDC with better packaging rather than the disappearance of CDC. Their throughput figure of roughly 25,000 transactions per second on an open table format is genuinely impressive either way, since open formats have historically been bad at small frequent writes. Read both the press release and the sceptical take before you repeat the claim in a design review.</p><p>The part that surprised me is that the open-source ecosystem is not as far behind as I assumed.</p><p>pg_lake, open-sourced by Snowflake under Apache 2.0 after the Crunchy Data acquisition, lets Postgres create and modify Iceberg tables directly with full Postgres transaction semantics, using Postgres itself as the catalog, with DuckDB executing underneath. pg_mooncake, from Mooncake Labs under MIT, takes the mirror approach: a columnstore table in Iceberg or Delta that stays in sync with a regular Postgres heap table, with sub-second freshness.</p><p>Neither is a drop-in replacement for a high-throughput OLTP tier, and both are young. But the direction is unambiguous, and it means the transactional half of this is no longer a vendor-only story.</p><h3>Where this leaves a platform team</h3><p>Phase one is not optional and most of you are further along than you think. Audit it honestly: are you on shared storage in an open table format with a real catalog, or do you have a shared folder with good intentions.</p><p>Phase two is buildable now and is where the operational payoff is. One Iceberg copy, engines chosen per workload, writes concentrated in the engines that are good at writing.</p><p>Phase three is a watching brief. Run pg_lake or pg_mooncake against a non-critical workload and learn where they break, because in eighteen months this is going to be a real evaluation and you want the scar tissue before then.</p><p>The thing I keep coming back to is that Databricks did not invent the idea. They productised a consequence of decoupling that was sitting there the whole time. If your storage layer is genuinely open and genuinely shared, most of this follows. If it is not, no amount of engine selection will save you.</p><p>#ElboridyOnPlatform #DataEngineering #ApacheIceberg #Lakehouse #Trino #ClickHouse #PostgreSQL #DataArchitecture #LTAP #OpenSource</p><h3>References</h3><ul><li>Databricks press release, LTAP launch, 16 June 2026: <a href="https://www.databricks.com/company/newsroom/press-releases/databricks-launches-ltap-first-lake-transactionalanalytical">https://www.databricks.com/company/newsroom/press-releases/databricks-launches-ltap-first-lake-transactionalanalytical</a></li><li>Pixeltable, sceptical engineering analysis of LTAP versus HTAP: <a href="https://www.pixeltable.com/blog/databricks-ltap-htap-multimodal-data-plane-pixeltable">https://www.pixeltable.com/blog/databricks-ltap-htap-multimodal-data-plane-pixeltable</a></li><li>pg_lake (Snowflake Labs, Apache 2.0): <a href="https://github.com/Snowflake-Labs/pg_lake">https://github.com/Snowflake-Labs/pg_lake</a></li><li>Snowflake engineering blog on pg_lake: <a href="https://www.snowflake.com/en/blog/engineering/pg-lake-postgres-lakehouse-integration/">https://www.snowflake.com/en/blog/engineering/pg-lake-postgres-lakehouse-integration/</a></li><li>pg_mooncake (Mooncake Labs, MIT): <a href="https://github.com/Mooncake-Labs/pg_mooncake">https://github.com/Mooncake-Labs/pg_mooncake</a></li><li>Trino documentation: <a href="https://trino.io/docs/current/">https://trino.io/docs/current/</a></li><li>Apache Iceberg: <a href="https://iceberg.apache.org/">https://iceberg.apache.org/</a></li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=379c5795a35c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Digital Transformation Is a Change of Mindset, not a Change of Tools]]></title>
            <link>https://medium.com/@amrelboridy7/digital-transformation-is-a-change-of-mindset-not-a-change-of-tools-3c4bb22fa818?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/3c4bb22fa818</guid>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Wed, 19 Aug 2026 18:33:33 GMT</pubDate>
            <atom:updated>2026-08-19T18:33:33.700Z</atom:updated>
            <content:encoded><![CDATA[<p>Everyone in tech has heard the phrase “digital transformation” enough times that it has almost stopped meaning anything. It gets stamped on slide decks, budget requests, and vendor pitches until it sounds like a synonym for “we bought new software.” That is exactly the problem. Buying new software is not transformation. Sometimes it is just the same old process wearing a nicer jacket.</p><p>So let me try to pin the idea down using an example from my own world: data engineering.</p><h3>The old way of moving data</h3><p>For years, the standard way to move data between systems was simple and slow. A system would produce a file, drop it on an SFTP server overnight, and another system would pick it up the next morning and load it. Batch in, batch out. If you needed yesterday’s numbers, you waited until today. If something broke at 2 AM, you found out at 9.</p><p>This worked. It still works in plenty of places. But notice the assumption baked into it: data is something that arrives in chunks, on a schedule, after the fact. The whole business learns to think in “yesterday.” Reports are for yesterday. Decisions are about yesterday. The organization’s sense of time is shaped by how its data moves.</p><h3>The new way</h3><p>Now picture the same data flowing through a streaming platform instead. Events are published to a message broker the moment they happen. A stream processor reads them continuously, cleans and enriches them on the fly, and writes them into a data lake, table or a Lakehouse table format like Apache Iceberg or Apache Paimon that can handle constant small updates. Downstream, people query fresh data instead of yesterday’s snapshot.</p><p>On paper this looks like a tooling swap. SFTP out, message broker in. But that framing misses the point completely.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eOpdF_AveqxNyiA056vsUw.png" /><figcaption>Digital Transformation</figcaption></figure><h3>Where the transformation actually happens</h3><p>The real change is not the broker or the processor. It is that the organization stops thinking in “yesterday” and starts thinking in “now.”</p><p>Once data arrives continuously, a lot of downstream assumptions quietly fall apart, in a good way. Alerts can fire when something is happening, not the morning after. Teams stop asking “what was the total yesterday” and start asking “what is happening right now.” Fraud checks, capacity decisions, customer-facing dashboards, all of them shift from reactive to live. The batch mindset assumed you always look backward. The streaming mindset assumes you can act in the moment.</p><p>That shift in how people think and decide is the transformation. The tools are just how it shows up on the architecture diagram.</p><h3>The trap</h3><p>This is where a lot of “transformation” efforts go wrong. A team stands up broker, keeps the exact same nightly logic, and schedules a job to drain the topic once every 24 hours. Congratulations, you now have SFTP with extra steps and a bigger cloud bill. The technology is new. Nothing about how the business operates has changed. Nobody makes a decision any faster than before.</p><p>Real transformation is uncomfortable precisely because it forces new questions. If data is live, who is allowed to act on it, and how fast? What does “correct” mean when numbers update every second? Who owns a pipeline that never stops running? These are process and culture questions, not tooling questions, and they are the hard part.</p><h3>How to tell the difference</h3><p>Here is the simple test I keep coming back to. After the project ships, ask one question: has anyone changed a decision they make, or how fast they make it?</p><p>If the answer is no, you modernized your plumbing. That is fine, plumbing matters, but call it what it is.</p><p>If the answer is yes, if people are now acting on things they used to only find out about later, then something actually transformed. The tools were never the point. They were the enabler. The change was in the thinking.</p><p>That is the whole idea, whether you are moving from batch files to streaming, from spreadsheets to a shared platform, or from paper forms to an app. New technology creates the option to work differently. Transformation is when you actually take it.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3c4bb22fa818" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Your TTL Is Working. That Might Be the Problem.]]></title>
            <link>https://medium.com/@amrelboridy7/your-ttl-is-working-that-might-be-the-problem-3ed30cdb1492?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/3ed30cdb1492</guid>
            <category><![CDATA[database]]></category>
            <category><![CDATA[data-infrastructure]]></category>
            <category><![CDATA[clickhouse]]></category>
            <category><![CDATA[olap]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Tue, 04 Aug 2026 18:49:20 GMT</pubDate>
            <atom:updated>2026-08-04T18:49:20.175Z</atom:updated>
            <content:encoded><![CDATA[<h4><strong>A ClickHouse setting most people never touch, and how it can quietly rewrite terabytes a day.</strong></h4><p>I went looking for a disk space leak and found the opposite. Nothing was leaking. The retention policy was doing exactly what it was told. That was the whole issue.</p><p>Here is the setup, stripped of anything specific. A large MergeTree table. Monthly partitions. A one month TTL. Roughly 14 billion rows in the current partition. Normal stuff for time series telemetry.</p><p>The disk kept filling and I could not find the culprit. Old partitions were being dropped on schedule. No orphaned parts. No detached parts. The retention was healthy by every check I ran.</p><p>Then I looked at the merge log.</p><h3>Three point two terabytes to delete one percent</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0LDwEqDPPKHrNSsvYWtlhQ.png" /><figcaption>Daily write volume jumped 11x the moment the partition crossed its retention threshold</figcaption></figure><p>The number that stopped me was in system.part_log:</p><pre>merge_reason: TTLDeleteMerge<br>rows_read:    27,075,845,698<br>rows_kept:    26,806,241,104<br>bytes:        3.17 TiB written<br>duration:     293 minutes</pre><p>Read 27 billion rows. Kept 26.8 billion. Deleted about 269 million, which is one percent. To do that it wrote 3.17 terabytes.</p><p>The next day it did it again. Three point one three terabytes, 0.94 percent deleted.</p><h3>Why</h3><p>ClickHouse stores data in immutable parts. Immutable is the key word. When a TTL expires some rows inside a part, there is no way to surgically remove them. The engine has to read the part, write a new one without the dead rows, then delete the original.</p><p>If every row in the part has expired, this is cheap. ClickHouse recognizes the case and just drops the file. That shows up as TTLDropMerge and finishes in milliseconds.</p><p>If only some rows have expired, you get TTLDeleteMerge and a full rewrite.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*bmFkS1ATPRB9mF4hqSgyeQ.png" /><figcaption>Same TTL, data, two completely different costs. Only variable is whether the part is fully or partially expired.</figcaption></figure><p>Now think about what a monthly partition does to that. On day one of expiry, a sliver of your rows is dead and the rest are fine. So, the engine rewrites the entire partition to remove a few hours&#39; worth of data. Then merge_with_ttl_timeout comes around four hours later, and it does the whole thing again, for another sliver. And again. Every four hours, for the entire month, until the last row finally ages out.</p><p>The wider your partition, the longer it stays in that half dead state, and the more times you pay full price.</p><h3>The multiplier nobody mentions</h3><p>There is a second cost that I did not expect. The TTL rewrite fragments the partition into new parts. That triggers the regular background merge to consolidate them. So one TTL operation causes a second, unrelated wave of I/O.</p><p>In my case regular merges were running around 40,000 times a day. Some of that was ordinary insert consolidation. A meaningful slice was cleaning up after the TTL.</p><h3>To validate I built a copy</h3><p>I was not going to change a setting on a loaded production box based on a theory. So, I built a miniature version. Same schema, same sort order, same partition scheme, same TTL expression, a few million random rows instead of billions.</p><p>Three partitions on purpose:</p><ul><li>one fully expired</li><li>one partially expired</li><li>one not expired at all</li></ul><p>The fully expired one vanished instantly. TTLDropMerge, 8 milliseconds, zero bytes written.</p><p>The partially expired one did the rewrite. Read 143 MiB, wrote back 124 MiB, to remove about 143,000 rows. Then a regular merge fired right behind it and moved another 857 MiB.</p><p>Same behavior as production, at a scale I could break safely. That is the entire value of the exercise. You get to be wrong cheaply.</p><h3>The fix</h3><pre>ALTER TABLE my_table MODIFY SETTING ttl_only_drop_parts = 1;</pre><p>This tells ClickHouse to stop rewriting partially expired parts. Wait until every row in the part is dead, then drop the whole thing.</p><p>Metadata only. No downtime. Takes a second.</p><p>What surprised me in testing: expired rows still got removed after the change. Not by a TTL merge, but by the ordinary background merge that was already going to run. It filtered them out while it happened to be reading the data anyway. You get the cleanup for free, riding on work that was already scheduled.</p><p>The trade you are making is real though. The partition sticks around until its very last row expires. You hold the storage a bit longer and stop paying the write amplification. Given that the rewrites were costing terabytes a day to reclaim almost nothing, that trade was not close.</p><h3>The actual root cause</h3><p>ttl_only_drop_parts is a good fix. It is not the right fix.</p><p>The real problem is partition granularity. With monthly partitions, a partition sits in the partially expired state for thirty days. With daily partitions, each one expires all at once and gets the cheap drop path. The rewrite scenario never arises.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*M4LIhnCbVMH2GgwxiiBpjA.png" /><figcaption><em>Monthly partitions spend thirty days half dead. Daily partitions never enter that state.</em></figcaption></figure><pre>PARTITION BY toYYYYMMDD(event_time)</pre><p>That is the standard pattern for high volume time series with short retention, and it makes the setting nearly irrelevant. It also needs a table rebuild, so it is a planned change, not a Tuesday night one.</p><h3>Worth checking on your own systems</h3><p>The default for ttl_only_drop_parts is 0. On the box I was working on, system.merge_tree_settings showed changed = 0, meaning nobody had ever set it. Every MergeTree table on that host inherited the same behavior.</p><p>Two queries worth running:</p><pre>SELECT name, value, changed<br>FROM system.merge_tree_settings<br>WHERE name = &#39;ttl_only_drop_parts&#39;;</pre><pre>SELECT event_date, merge_reason, count() AS merges,<br>       formatReadableSize(sum(bytes_uncompressed)) AS written,<br>       sum(read_rows) AS read, sum(rows) AS kept<br>FROM system.part_log<br>WHERE event_type = &#39;MergeParts&#39;<br>  AND event_date &gt; now() - INTERVAL 7 DAY<br>GROUP BY event_date, merge_reason<br>ORDER BY event_date;</pre><p>If read and kept are close together on your TTLDeleteMerge rows, you are burning I/O to delete almost nothing.</p><h3>What I took from it</h3><p>Monitoring told me the retention was healthy. It was. Every metric I had was green and every one of them was measuring the wrong thing. Nobody had a dashboard for “bytes written to delete a byte,” and that ratio was the only number that mattered.</p><p>The other thing: TTL feels like a set and forget feature. You write one line in the DDL and move on. But that line interacts with your partition key, and the interaction is where the cost lives. Retention policy and partition strategy are the same decision. You should not treat them as two.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3ed30cdb1492" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[When a Full Disk Took Down a Cluster: An XFS Corruption Story and Why Batch Landing Zones Are a…]]></title>
            <link>https://medium.com/@amrelboridy7/when-a-full-disk-took-down-a-cluster-an-xfs-corruption-story-and-why-batch-landing-zones-are-a-9a314b36204f?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/9a314b36204f</guid>
            <category><![CDATA[kafka]]></category>
            <category><![CDATA[devops]]></category>
            <category><![CDATA[linux]]></category>
            <category><![CDATA[xfs-filesystem]]></category>
            <category><![CDATA[data-engineering]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Sun, 02 Aug 2026 10:31:31 GMT</pubDate>
            <atom:updated>2026-08-02T10:31:31.090Z</atom:updated>
            <content:encoded><![CDATA[<h3>When a Full Disk Took Down a Cluster: An XFS Corruption Story and Why Batch Landing Zones Are a Single Point of Failure</h3><p>A production node filled some TBs volume to 100 percent. A few seconds later the filesystem shut itself down and took a good part of the stack with it. This is what happened, how the recovery went, and the design lesson I keep coming back to: a shared batch landing zone is a single point of failure, and a streaming platform is how you stop repeating this.</p><h3>What broke</h3><p>The volume was a shared area. Application data lived on it, and so did Spark’s temporary scratch. It reached 100 percent full during a heavy write period.</p><p>While the disk was full, a job tried to rename a file. XFS caught metadata corruption in memory and did the safe thing: it shut the filesystem down rather than write bad structure to disk. From that moment every read and write on the volume returned an I/O error. Anything that logged to that path, and a lot of things did, started to wedge. One full disk had turned into a stack-wide outage.</p><p>That last point is worth sitting with. The corruption was contained to one volume, but the blast radius was much larger because too many things depended on it.</p><h3>The recovery</h3><p>The plan was easy to describe and tense to carry out:</p><p>First, unmount the broken filesystem without rebooting the whole machine. A lazy unmount detached it cleanly while other services kept running.</p><p>Second, take a metadata image before touching anything. This captures the filesystem structure, not the file contents, so it stays small and gives you a way back if the repair makes things worse. On a volume with no backup, this step is not optional.</p><p>Third, run the repair. The filesystem log was corrupted badly enough that the repair had to zero it and rebuild the allocation trees from scratch. On a multi-terabyte volume with millions of small files, this takes a while and you do not interrupt it.</p><p>Then came the part I did not expect.</p><h3>The invisible device lock</h3><p>After the lazy unmount, the repair refused to open the device. It kept reporting the device as busy. Every tool I trust said the opposite. lsof showed nothing. fuser showed nothing. findmnt and mount both agreed the device was free. The kernel was holding a reference that none of the usual tools could surface, a leftover from the lazy unmount.</p><p>There is no clean userspace command that clears this. I tried the obvious ones. The honest fix was a <strong>reboot</strong>.</p><p>So, I did not do it alone at four in the morning. I set the volume to not auto-mount at boot first, so the corrupt filesystem could not hang the machine on the way up, and I waited for console support before the reboot. After a fresh boot the device had no lingering reference, the repair ran cleanly through every phase, and the filesystem mounted healthy.</p><h3>The root cause was more interesting than the corruption</h3><p>XFS did not fail. It protected itself from a disk that should never have been allowed to fill. The real question was why the disk filled.</p><p>The volume was full of Spark shuffle scratch: the temporary files a job writes during shuffles and spills. These are supposed to be deleted when the job finishes. They were not being deleted, and the reason is the interesting bit.</p><p>Spark cleans up scratch through a shutdown hook when an executor exits normally. That hook only runs on a <strong>graceful exit</strong>. When executors are killed hard, by an out-of-memory event, a container kill, or a write failure on a filling disk, the hook never runs and the scratch is orphaned. So the failures orphaned scratch, the orphaned scratch filled the disk, and the full disk caused more failures. A feedback loop that ends exactly where this story started.</p><h3>Why this is a classic failure, and why streaming fixes the shape of it</h3><p>Step back from the filesystem for a second, because the deeper problem is architectural.</p><p>This node was part of a <strong>batch-style ingestion pattern</strong>: data lands as files in a directory on one machine, and jobs pick it up from there. That pattern is everywhere, and it has a built-in weakness. The landing zone is a single point of failure. One disk, one filesystem, one host. When that volume fills or corrupts, ingestion stops and there is no second path for the data to take. Everything that depends on that directory is now waiting on one piece of storage.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*SEmAGA81BTmmezlz3rtNPg.png" /><figcaption>Two-Panel Failure Cascade and Resilient Streaming Architecture</figcaption></figure><p>You can patch around it. Add alerts at 80 percent. Move logs off the volume. Keep scratch on its own disk. A streaming platform changes the shape of the problem rather than patching it. When ingestion moves onto a distributed log, the data lands in a partitioned, replicated commit log instead of a single directory on a single disk. Replication means no single node holds the only copy. Partitioning means load spreads instead of piling onto one volume. Consumers read at their own pace and track their own position, so a slow or failed consumer does not back up onto one filesystem until it bursts. The single point of failure that caused this incident simply is not there in the same way.</p><p>That is the direction the pipeline behind this incident has since taken. The ingestion path that filled the disk now runs on a streaming architecture and no longer writes to that volume at all. The old failure cannot recur because the structure that made it possible is gone.</p><p>For anything with real volume and a real availability requirement, a single landing directory on a single disk is a liability you will eventually pay for. I just paid for it.</p><h3>What I took away</h3><p>Do not trust cleanup that only runs on graceful shutdown. Assume processes die badly, because they do, and put a liveness-aware sweeper in place that does not depend on any job exiting cleanly.</p><p>When there is no backup and it is the middle of the night, get a second person and console access before the step you cannot take back. The technical decision was fine either way. Doing it alone was the risk I did not need to take.</p><p>And the big one: if your ingestion depends on a single landing zone on a single disk, you have a single point of failure whether or not it has bitten you yet. Streaming is how you design that weakness out instead of patching around it.</p><p>The filesystem is <strong>healthy</strong>, the disk sits at 19 percent, and the pipeline that caused all of this has moved somewhere it cannot happen again. Good ending. Better lessons.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9a314b36204f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Securing Jenkins 2.414.1 with SSL Certificate using Reverse Proxy in an Isolated LAN]]></title>
            <link>https://medium.com/@amrelboridy7/securing-jenkins-2-414-1-with-ssl-certificate-using-reverse-proxy-in-an-isolated-lan-22d2f7a4e421?source=rss-28d1a65bf140------2</link>
            <guid isPermaLink="false">https://medium.com/p/22d2f7a4e421</guid>
            <category><![CDATA[redhat-linux]]></category>
            <category><![CDATA[isolated]]></category>
            <category><![CDATA[jenkins]]></category>
            <category><![CDATA[pipeline]]></category>
            <category><![CDATA[ssl]]></category>
            <dc:creator><![CDATA[Amrelboridy]]></dc:creator>
            <pubDate>Tue, 03 Oct 2023 18:31:46 GMT</pubDate>
            <atom:updated>2023-10-03T18:44:20.318Z</atom:updated>
            <content:encoded><![CDATA[<p>In this guide, we’ll walk through securing the version of Jenkins (2.414.1) using SSL and a reverse proxy in an isolated LAN without any internet connection. Let’s get started:</p><p>1️⃣ First, install Jenkins using the version (2.414.1) by following the Red Hat installation guide <a href="https://get.jenkins.io/redhat/">here</a> and <a href="https://stackoverflow.com/questions/72664310/install-jenkins-plugins-offline">Install Jenkins plugins Offline</a>.</p><p>2️⃣ Note: Starting from Jenkins 2.332.1, the /etc/default/jenkins file is no longer used to configure Jenkins options like httpPort and httpsPort. Jenkins is now configured with systemd. Refer to <a href="https://www.jenkins.io/doc/book/system-administration/systemd-services/">this link</a> for more details.</p><p>3️⃣ To configure Jenkins with systemd, use the following command:</p><p>sudo systemctl edit jenkins <br>and add the necessary environment variables:e</p><pre>[Service]<br>Environment=&quot;JENKINS_PORT=&lt;port number&gt;&quot;<br>Environment=&quot;JENKINS_PREFIX=/jenkins&quot; # Access Jenkins via https://my-host/jenkins</pre><p>4️⃣ Make sure to add the chosen port to your firewall or iptables and reload to ensure the changes take effect.</p><p>5️⃣ Don’t forget to set the Jenkins URL. Navigate http://jenkins_ip:&lt;port&gt; to Jenkins &gt; Manage &gt; Configure and update the Jenkins URL to <a href="https://dns-name/jenkins.">https://dns-name/jenkins.</a></p><p>6️⃣ Next, let’s move on to configuring HTTPS through a reverse proxy.</p><p>7️⃣ Assuming you have a running reverse proxy on another Linux system, configure the reverse proxy server block as shown below:</p><pre>  server {<br>  listen 443 ssl;<br>  ssl_certificate /path/to/.crt;<br>  ssl_certificate_key /path/to/.key;<br>  ssl_protocols TLSv1.2;<br>  proxy_read_timeout 600s;<br>  server_name dns-name;<br>  client_max_body_size 50M;<br>  location / {<br>    proxy_pass https://localhost;<br>    proxy_http_version 1.1;<br>    proxy_set_header Upgrade $http_upgrade;<br>    proxy_set_header Connection keep-alive;<br>    proxy_set_header Host $host;<br>    proxy_cache_bypass $http_upgrade;<br>    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    proxy_set_header X-Forwarded-Proto $scheme;<br>  }<br>  location /jenkins/ {<br>    proxy_pass http://&lt;jenkins_IP&gt;:&lt;port number&gt;/jenkins/;<br>    proxy_http_version 1.1;<br>    proxy_set_header Upgrade $http_upgrade;<br>    proxy_set_header Connection keep-alive;<br>    proxy_set_header Host $host;<br>    proxy_cache_bypass $http_upgrade;<br>    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;<br>    proxy_set_header X-Forwarded-Proto $scheme;<br>  }<br>}</pre><p>Replace dns-name with the domain name or IP address of your reverse proxy server. Replace &lt;jenkins_IP&gt; with the IP address of the system where Jenkins is installed. Replace &lt;port number&gt; with the port number that you configured for Jenkins in step 2.</p><ul><li>Save the file and restart the reverse proxy server.</li></ul><h3><strong>Testing</strong></h3><p>To test that Jenkins is secure, you can try to access it using the following curl command:</p><pre>curl https://dns-name/jenkins</pre><p>If you are using a valid SSL certificate, you should see a secure connection warning.</p><h3>Conclusion</h3><p>By following the steps in this article, you can secure Jenkins 2.414.1 with SSL certificate using reverse proxy in an isolated LAN without internet connection. This will help to protect your software development environment from unauthorized access and malicious activity.</p><p>#Jenkins #SystemAdmin #SSL #Proxy #RedHat #cicd</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22d2f7a4e421" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>