惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

F
Fortinet All Blogs
S
Secure Thoughts
月光博客
月光博客
美团技术团队
雷峰网
雷峰网
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
N
News and Events Feed by Topic
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
Forbes - Security
Forbes - Security
W
WeLiveSecurity
P
Proofpoint News Feed
阮一峰的网络日志
阮一峰的网络日志
爱范儿
爱范儿
G
GRAHAM CLULEY
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
AI
AI
Last Week in AI
Last Week in AI
Google Online Security Blog
Google Online Security Blog
Schneier on Security
Schneier on Security
云风的 BLOG
云风的 BLOG
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
Recent Announcements
Recent Announcements
Webroot Blog
Webroot Blog
T
Tor Project blog
Cisco Talos Blog
Cisco Talos Blog
N
News and Events Feed by Topic
罗磊的独立博客
The Register - Security
The Register - Security
Blog — PlanetScale
Blog — PlanetScale
T
Threat Research - Cisco Blogs
博客园 - 【当耐特】
Apple Machine Learning Research
Apple Machine Learning Research
人人都是产品经理
人人都是产品经理
T
The Exploit Database - CXSecurity.com
www.infosecurity-magazine.com
www.infosecurity-magazine.com
B
Blog
腾讯CDC
Microsoft Azure Blog
Microsoft Azure Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
H
Hacker News: Front Page
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Engineering at Meta
Engineering at Meta
Latest news
Latest news
IT之家
IT之家
D
DataBreaches.Net
博客园 - 司徒正美
N
Netflix TechBlog - Medium
V
V2EX
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知

Towards AI

Building AI Agents in Rust — part 4 | Towards AI Building AI Agents in Rust — part 5 | Towards AI The Verified Identity Agent Bridge | Towards AI You Can’t Prompt Your Away Your LLM Problems | Towards AI The Free Agent Trap | Towards AI Your Agentic Loop Will Drift. Here Is the KL Divergence Equation That Measures How Far It Has Wandered From Its Original Instruction. | Towards AI Beyond Chat: Processing Images, PDFs, and Documents with the OpenAI Adapter in Oracle Integration Cloud | Towards AI Building AI Agents in Rust — part 3 | Towards AI Self-Hosting Airflow at Home: Automating Stock Price Data Collection | Towards AI The 76-Hour Frontier: How the Takedown of Claude Fable 5 Birthed the Military-Industrial-AI Complex | Towards AI I Trained a Markdown File to Boost GPT-5.5 by 23 Points — It Shouldn't Work | Towards AI We Replaced ChatGPT With a Local AI Server. Six Months of Honest Data. | Towards AI What Really Makes Cars Pollute? A Data Science Deep Dive into CO₂ Emissions | Towards AI Training GPT-2 From Scratch on a GTX1050 | Towards AI Principal Component Analysis (PCA): Theory, Mathematics, and Applications Build a Zero-Cost Web Automation Pipeline With OpenRouter, OpenClaw, and MediaUse I Gave Qwen3.7-Plus a Screenshot and It Found the Exact Pixel to Click for $0.40 Beyond the Prompt: Why Autonomous AI Agents Are Replacing the Chatbot Moonshot Cracked Claude Code’s Playbook with an MIT Terminal Agent and a $0.60 Model Connections, Roles, and Warehouses: Getting CoCo Desktop Production-Ready from Day One My First $5,000 Month Writing About AI Engineering on Medium Google Shrank Gemma 4 by 72% and Unsloth Fixed the 4-Bit Bug Nobody Else Caught on One 4090, and 4-Bit Shouldn’t Be This Good LangChain Explained: Understanding Models, Prompts, Chains, Memory, Indexes, and Agents TOON: Beyond JSON for LLMs Claude Code Casual, Pro, Elite: The Three Working Personas of Claude Code Mastery MiniMax M3 Decodes 1M Tokens 15x Faster — and It Shouldn’t Be This Cheap Using Amazon SQS for AI Agent Orchestration I Ran a 1.5B-Active Model on My Laptop That Embarrassed a 26B by 46 Points How to Build a Self-Improving Company with AI Part 3 — Implementation/Engine-Level: Choosing the Runtime That Gives You These for Free Part 2 — Serve-Level Speed: System Design That Stabilizes P95/P99 3-Part Series: LLM Latency in Production (Part 1) Claude Code: The AI Coding Partner Changing How Developers Build Software Claude Code Pitfalls: Claude Code Won’t Do What You Told It: A Troubleshooting Catalog Full-Stack Data Scientists for the Agentic Coding World Building Production-Grade AI Skills with Snowflake Cortex AI Function Studio I Tried 10 AI Agent Frameworks in 2026 — Here’s the Honest Guide I Wish I Had Earlier How One Spring Boot Optimization Saved Our Startup $30,000 a Year Inside Palantir AIP: How the World’s Most Controversial AI Platform Actually Works What Is a Reverse Proxy? (And Why Every Backend Developer Should Care) What Claude Opus 4.8 Actually Changes If You’re Building Agents QWEN 3.7 Max Worked For 35 Hrs Straight And The Results Were Mind-blowing When LLMs Meet Knowledge Graphs on the Battlefield Fine-Tuning is Dead: Why Context Orchestration Won in 2026 5 Things Broke When I Shipped a RAG + MCP Agent to Production. Google Co-Scientist: Hyper Scaling Research and Discovery Microsoft Just Embarrassed Browser Web Agents — 1,000 Lines Made GPT-5.4 Beat Opus 4.6 on 200 Web Tasks Building Production MCP Servers: What the Spec Won’t Tell You When Should an Agent Stop? The Anatomy of Termination Harness Engineering: The Layer That Matters More Than the Model AI Engineers Who Can’t Debug Are Getting Fired (Here’s How I Debug with Claude Code) Claude Code Memory: Why You Keep Explaining the Same Thing to Claude (and the Five Layers That Fix It) Claude Code Subagents: The Claude Code Feature You Skip Every Day (And Why It Quietly Wrecks Your Sessions) Agentic AI and the SMB Banking Advantage Claude Code: Spec-Driven Development — Why Your AI Coding Sessions Fall Apart at Hour Three The Real Cost of Agentic AI Nobody Budgets For SVM : 40 must visit Interview Questions (Part 2) Your AI Agent Works Perfectly in the Demo. Here Are the 6 Ways It Dies in Production. Unleashing the Power of ONNX for Speedier SBERT Inference Terraform vs CI/CD for Serverless Deployments Merve Noyan Stopped Writing Training Scripts — Her Agent Just Fine-Tuned 18 Models Solo for $11.40 Why Your Sales Forecast Is Always 20% Wrong (And How To Make It 12% Wrong) Genetic Cubic n{C/A} Ratios For Elementary Robotics Design Top 20 AdaBoost Interview Questions & Answers (Part 2 of 2) Agentic AI Vs AI Agents — What Are the Key Differences? LAI #127: The Infrastructure Layer of AI Is Becoming the Product Anthropic Caught Its Own AI Planning to Blackmail Engineers RNNs Cannot Think What Transformers Think Cheaply. ICLR 2026 Proved the Gap Is Exponential. Time Series Made So Easy My Aunt Got It on the Second Read Claude Cowork 101 | Towards AI Is 3-Bit KV Cache the Holy Grail? A Reality Check on Google’s TurboQuant LangGraph Multi-Agent Architecture: Building a Self-Critiquing AI Debate System AutoML on Autopilot | Towards AI I Ran This Open-Source AI Tool on a Messy Codebase and Got 71x Fewer Tokens — Here Is Exactly What Happened Month in 4 Papers (April 2026) AI Kept Forgetting My Notes. Fixing That Taught Me How It Actually Works. How ChatGPT Makes You Addicted Crack ML Interviews with Confidence: K-Nearest Neighbors (KNN 20 Q&A) The Event-Driven Blueprint: How I Scaled a Spring Boot System to 10 Million Kafka Messages/Day Building Vector Search? Why FAISS Alone Isn’t Enough TAI #202: GPT-5.5 Moves Codex Into Real Work Machine Learning System Design -The Model Serving Triangle, With One Forward Pass Flowing Through Every Trade-off (Part3) AI Orchestration in Action: How MuleSoft and LLMs Fuel the Future of Enterprise AI GPT-4 Has 1.8 Trillion Parameters. It Uses 2% of Them Per Token. Part 20: Data Manipulation in Multi-Dimensional Aggregation A Fundamental Introduction to Genetic Algorithm -Part Two TAI #200: Anthropic’s Mythos Capability Step Change and Gated Release From Notebook to Production: Running ML in the Real World (Part 4) Sqribble’s Template‑Driven Document Automation Anthropic Just Shipped the Layer That’s Already Going to Zero Long-Term vs Short-Term Memory for AI Agents: A Practical Guide Without the Hype The L1 Loss Gradient, Explained From Scratch Your Postcode Is Deciding Your Care. I Built a Pipeline to Prove It. I Directed AI Agents to Build a Tool That Stress-Tests Incentive Designs. Here’s What It Found. Your System Prompt Is the Product — Not the Feature The LLM Wiki Trend Has a Retention Problem Nobody Mentions Top 20 Data Preparation Interview Questions and Answers (Part 2 of 2) LAI #122: Word Embeddings Started in 1948, Not With Word2Vec Top 15 Computer Vision Datasets [2026] 40 Generative AI Interview Questions That Actually Get Asked in 2026 (With Answers)
The Modern Data Stack Is Broken — Here’s How to Fix It With AI, Governance, and Real Architecture
Editorial Team · 2026-05-26 · via Towards AI

Author(s): Sunil kumar Reddy

Originally published on Towards AI.

The Modern Data Stack Is Broken — Here’s How to Fix It With AI, Governance, and Real Architecture

There’s a painful gap between how most data talks are given and how data actually flows inside real companies. Conference slides show clean, linear pipelines. Production reality is messier: three different teams calling the same Kafka topic with different schemas, a dbt model nobody owns that silently joined the wrong dimension table for six months, and an “AI-powered” feature that turns out to be a single GPT-4 API call with no retry logic, no monitoring, and no idea what happens when the context window fills up.

So let me try to sketch out what a genuinely modern data platform looks like, one that handles AI workloads, enforces governance without requiring a full-time compliance team, and can actually be deployed by a team of four rather than forty.

Why the Old Stack Breaks Under AI Workloads

The traditional warehouse-centric stack, think Redshift or BigQuery at the centre with some Airflow DAGs feeding it, was designed around a pretty simple contract. Structured data comes in, SQL queries go out, BI dashboards update overnight. That was fine.

AI changes the contract pretty fundamentally. Your LLM pipeline might need:

  • Raw, unstructured text sitting in S3 alongside clean relational data
  • Embeddings computed from 50-million-row tables in real time
  • Feature vectors generated in milliseconds for a model serving endpoint
  • Full data lineage tracked so a regulatory audit can trace exactly which training rows produced a specific prediction

None of these fit cleanly into the old paradigm. The warehouse assumes structure. The data lake has structure but no transactions. Neither was built to serve a vector database at 10ms latency.

The Lakehouse architecture, Delta Lake, Apache Iceberg, or Apache Hudi sitting on object storage, is the honest answer to this. It gives you the flexibility of a lake with enough transactional integrity to trust your data. But it’s only part of the answer.

The Medallion Architecture: Not Just Bronze and Gold

You’ve probably seen the medallion diagram before. Bronze is raw, Silver is cleaned, Gold is business-ready. Simple enough. But there are a few things people tend to gloss over.

The fourth tier, what I call the Platinum or AI-native layer, is the piece most teams miss. Once your data is clean and business-ready in Gold, there’s still work left to make it AI-ready. Embeddings need to be computed and stored somewhere fast. Fine-tuning datasets need to be curated, versioned, and tracked. Feature vectors for real-time ML models need to be pre-materialised so your serving endpoint doesn’t have to compute them at query time.

One thing I’d push back on here: a lot of teams treat this fourth tier as optional, something to add later. In practice, if you don’t design for it from the start, retrofitting it into an existing Iceberg table structure is genuinely painful. You’ll end up with embedding tables that aren’t linked to their source rows in the lineage graph, which makes auditing almost impossible.

Real-Time vs. Batch: The Lambda Debate Is (Mostly) Over

For years, data engineers debated Lambda architecture vs. Kappa architecture. Lambda said: run two pipelines, one for real-time and one for batch, then merge the outputs. Kappa said: just use streaming for everything.

Both camps were partly right. Kappa’s “streaming for everything” ideal runs into the reality that batch processing is still cheaper and more reliable for large historical datasets. But Lambda’s “dual pipeline” approach creates synchronisation nightmares. The honest answer in 2026 is something like this:

The key insight in this architecture is that Iceberg acts as the unification point. Flink can write micro-batches to an Iceberg table every 30 seconds. Spark can overwrite entire partitions of that same table in a nightly batch run. Both writes are ACID-safe. Downstream consumers, whether a BI tool or an LLM-powered agent, always see a consistent snapshot.

The latency SLOs are also worth calling out explicitly. Your real-time path has to meet latency requirements measured in seconds. Your batch path is measured in hours. Those two pipelines need different monitoring, different alerting, and often different teams owning them. I’ve seen organisations collapse those two SLOs into one on-call rotation and it ends badly.

Governance Isn’t a Feature, It’s a Foundation

Here’s where I want to spend some real time, because governance is the thing that usually gets designed last and regretted first.

Most teams treat data governance like a regulatory tax. You do the minimum required to pass the audit, you slap a data catalogue on top of whatever already exists, and you call it done. That works fine until your LLM training pipeline accidentally ingests PII that was supposed to be masked in Silver. Or until a churn model’s predictions are challenged in a lawsuit and you can’t reconstruct which version of which feature was used at inference time.

A few things here worth calling out explicitly.

Column-level lineage is not optional when you’re doing AI. Table-level lineage, “this table was derived from those three tables,” is useful. But it doesn’t tell you which specific columns fed a model. If a regulator asks why your credit-scoring model produced a particular output, you need to trace back from the model’s input features to their source columns in the raw data, including any transformations that happened along the way. OpenLineage is the open standard here, and both Airflow and dbt can emit lineage events that populate tools like Marquez or DataHub.

Data contracts are the real unlock. The idea is simple enough: before a producer team changes a table’s schema or SLA, they have to negotiate that change with all downstream consumers. In practice this means defining a YAML contract (Avro schemas work well here) that specifies the column names, types, nullability guarantees, and expected freshness SLA. Break the contract, break the build. Tools like Soda Core or custom Great Expectations suites can enforce this at ingestion time.

PII classification used to be manual. Now it doesn’t have to be. An LLM tagging pipeline, yes, using an LLM to govern data that might be fed into an LLM, can scan new tables, identify columns that look like names, emails, phone numbers, or health identifiers, and automatically apply the relevant governance tags. These tags then propagate downstream to trigger column-level masking policies in Unity Catalog or whatever metastore you’re using.

The AI Layer: RAG, Agents, and the Feature Store Problem

Now we get to the part people find exciting, but often underestimate. Putting an LLM on top of your data platform is straightforward. Putting one there that’s reliable, governed, and cost-efficient is considerably harder.

Three specific patterns here are worth unpacking.

Text-to-SQL is deceptively tricky. The demos are always impressive, you type “what was our revenue by country last quarter” and out comes beautiful SQL. But in production, SQL generation quality degrades sharply when your schema is large, when column names are ambiguous (is status the order status or the payment status?), or when the query requires joining more than three or four tables. Tools like Vanna.AI address this with a feedback loop, storing validated query-SQL pairs as few-shot examples. DSPY from Stanford takes a more systematic approach of optimising the prompting chain using a small labelled dataset. Neither is perfect, but both are considerably more reliable than a raw "here is my schema, generate SQL" prompt.

RAG pipelines need governance too. When your RAG system retrieves chunks from an internal knowledge base, it’s effectively bypassing all the row-level security you’ve built into your lakehouse. A user who shouldn’t be able to see customer PII can, in theory, ask a question that causes the RAG system to retrieve and surface that information. Solving this properly requires filtering your vector search results by the same access policies you apply to your structured data, which means your embedding pipeline needs to store metadata alongside each vector indicating which roles are permitted to see it.

The feature store is still underutilised. Most teams I talk to have at least heard of feature stores but haven’t built one properly. The value proposition is this: you compute a feature, say, a user’s 30-day purchase frequency, once, store it, and serve it to both online model endpoints (at millisecond latency via Redis) and offline training pipelines (from the lakehouse). Without a feature store, that calculation gets duplicated, often subtly differently, between your training pipeline and your serving pipeline. That inconsistency is one of the most common sources of model performance degradation in production.

Observability: The Part That Decides Whether Your Platform Survives

Data observability has become its own category. Tools like Monte Carlo, Acceldata, and Metaplane essentially run health checks on your pipelines and alert you when something breaks silently. And “breaking silently” is the killer. A pipeline that errors out is annoying. A pipeline that runs successfully but produces subtly wrong numbers for three weeks is catastrophic.

The minimum viable observability setup for a production platform:

  • Volume checks: if a table receives 10% of the normal daily row count, fire an alert
  • Freshness checks: if a Gold table hasn’t been updated in 6 hours past its SLA, fire an alert
  • Distribution checks: if a numeric column’s mean shifts by more than two standard deviations from its 30-day rolling average, flag it
  • Schema drift detection: if a source adds or removes columns without a corresponding contract update, block the pipeline
  • Cross-table consistency: if the order count in your orders table doesn’t match the sum of line items in your order_items table, that’s a problem

The AI-specific layer adds model monitoring. Prediction distributions should look roughly similar over time. Feature distributions fed to the model should match what the model saw during training. Embedding similarity in a RAG system should stay within an expected range. When these drift, your model’s accuracy is likely degrading even if your business metrics haven’t caught up yet.

What Production Actually Looks Like: A Realistic Architecture

Let me close with something concrete. Suppose you’re building this for a mid-size e-commerce company, around two million orders per year, a team of eight data engineers and three ML engineers.

Your Kafka cluster handles clickstream and CDC from Postgres. Flink jobs enrich and normalise events in real time, writing to Iceberg tables on S3 every 90 seconds. A nightly Airflow DAG triggers dbt runs that build the Silver and Gold layers. A Feature Store job runs every hour, recomputing the top 200 features for your recommendation model and writing them to Redis for sub-10ms serving.

Your LLM setup is a LangChain agent with three tools: a Text-to-SQL tool over the Gold layer (restricted to read-only, with row-level security enforced by Databricks Unity Catalog), a RAG tool over your product documentation (with metadata-filtered vector search), and a custom tool that hits your feature store API.

Governance is Unity Catalog for access control and column-level masking. DataHub for the catalogue and lineage. OpenLineage emitted by both Airflow and dbt. Data contracts enforced by Soda Cloud on every Silver table.

Observability is Monte Carlo for data quality alerting and Grafana with custom dashboards over your pipeline execution metadata.

Is it perfect? No. You’ll hit schema drift you didn’t anticipate. You’ll have a Flink job that starts lagging when Kafka partition counts grow unevenly. Your Text-to-SQL tool will occasionally generate a query that joins the wrong dimension and nobody will notice for a week.

But it’s recoverable. Because you have lineage to trace the problem back to its source, contracts to catch schema changes, observability to alert you when distributions shift, and a governance layer that means the LLM can’t leak data it shouldn’t see.

That’s the real goal: not a perfect platform, but one that fails detectably and fixes cheaply.

Final Thought

The teams that build great data platforms aren’t the ones with the fanciest tooling. They’re the ones that were disciplined about governance from day one, who treated observability as a first-class concern rather than a retrospective, and who resisted the temptation to reach for an LLM before the underlying data quality problems were solved.

The LLM is only as good as the data it sees. The pipeline is only as trustworthy as the contracts that define it. And the whole thing is only as useful as the trust that business stakeholders have in it.

Build that trust deliberately, layer by layer, Bronze to Platinum.

Published via Towards AI