Non-FictionInformativeEducational
Data Lakes and Data Warehouse Engineering eBook
A Coursebook on Data Lakes and Data Warehouse Engi
A Coursebook on Data Lakes and Data Warehouse Engineering
Formats
Free sample
Chapter 1: The 2 AM Page...--It’s 2:13 on a Tuesday morning. Your phone buzzes against the nightstand—not the gentle hum of a low-priority alert, but the shrill, insistent scream of a P0 incident. Your CEO’s dashboard is showing $0 in revenue for the last six hours. Your head of sales is already on Slack demanding answers. The data warehouse, which you were promised was “enterprise-grade” and “fault-tolerant,” has been silently corrupting fact tables since yesterday’s deployment. And somewhere in the vast, unmapped expanse of your data lake, five thousand malformed JSON files are happily multiplying like rabbits, each one making the problem worse.You stumble to your laptop, open the monitoring system, and see it: a cascade of red. The nightly ETL job failed three hours ago, but the alert went to a distribution list that hasn’t existed since the re-org. The backup job ran, but it ran against a stale partition. And the “real-time” streaming pipeline? It’s been emitting the same 47 errors every second for eleven days, and nobody noticed because someone muted that channel in Slack.You fix one thing. Then another breaks. You patch the second; a third fails silently. By 4:47 AM, you’ve got the CEO’s dashboard showing numbers that are at least plausible, even if you’re not entirely sure they’re correct. You crawl back to bed, but sleep doesn’t come. In the darkness, you ask yourself the question that every data engineer eventually asks:Why is this so hard? Why does every “solution” create two new problems? And why does everyone keep talking about “data lakes” and “data warehouses” like they’re the answer, when all you’ve ever seen them do is generate more 2 AM pages?This book is the answer to that question. But before we can fix the modern mess, we have to understand how we got here.The Fall of the One True Database Once upon a time, in the before-times of the early 2000s, the world was simpler. A company had a database. Usually, it was Oracle, or maybe IBM DB2, or if you were feeling adventurous, Postgre SQL. This one database did everything. It ran your website. It stored your customer records. It generated your reports. It was the single source of truth, the one ring to rule them all.And for a while, this worked. Your company had a hundred customers, a thousand transactions a day, and a few dozen reports that ran overnight. But then something happened. The internet grew up. Your company grew with it. A hundred customers became a million. A thousand transactions became a billion. And that beautiful, simple, all-powerful database started to crack.The problem wasn’t malice. It wasn’t even bad engineering. It was physics and mathematics colliding with business requirements. Your database had two fundamentally different jobs, and it was failing at both.The Two Faces of Data: Transactions vs. Analysis Every database ever built is trying to solve one of two problems, and no single database can solve both well.OLTP – Online Transaction Processing – is the workhorse of the operational world. When you buy a coffee, when you send a message, when you update your address on a website – that’s OLTP. These systems are designed for speed, for consistency, for the certainty that when you say “deduct 5frommyaccount,”that5 from my account,” that 5frommyaccount,”that5 is gone and never coming back unless you explicitly put it there. OLTP databases are row-based, meaning they store each complete record (row) together on disk. This makes writes fast and point queries (like “find customer #5291”) lightning-quick. They enforce strict ACID compliance: Atomicity (all or nothing), Consistency (rules are rules), Isolation (transactions don’t trample each other), and Durability (once it’s written, it’s written).OLAP – Online Analytical Processing – is the explorer. When you ask “show me sales trends by region for the last five years,” or “what’s our customer churn rate by cohort?” – that’s OLAP. These systems are designed for scanning massive volumes of data, for aggregations, for questions you don’t know you’re going to ask until you ask them. OLAP databases are columnar, meaning they store each column of data together on disk. This makes aggregations fast (because you only read the columns you need) but writes slower and more complex.The one-database-to-rule-them-all approach tried to make a single system do both. It failed. The operational team needed sub-second response times for customer logins. The analytics team needed multi-hour queries that scanned entire tables. When the analytics query ran, it locked tables that the operational queries needed. When the operational writes flooded in, they fragmented the storage that the analytics queries relied on. Everybody lost.So the industry did what the industry always does when a single tool fails: it split apart. The data warehouse was born.The Data Warehouse: Order from Chaos The data warehouse was a beautiful idea. You take all that messy, chaotic, operational data – from your transaction database, your CRM, your ERP, your spreadsheets – and you clean it. You transform it. You model it into something that a business analyst can actually understand. And then you put it in a special database designed exclusively for querying, for reporting, for the kinds of questions that start with “show me” and end with “by region, by product, by month.”The Two Religions: Kimball vs. Inmon As data warehousing matured, two competing philosophies emerged, each with passionate adherents and holy wars that would make theologians blush.Ralph Kimball argued for the bottom-up approach. Build small, focused data marts first – one for sales, one for inventory, one for customer support. Each mart is built around a star schema: a central fact table (measurable events like sales transactions) surrounded by dimension tables (who, what, where, when – customers, products, stores, dates). These stars are intuitive, fast, and beloved by business users. The downside? Data redundancy. The same customer name might appear in the sales mart, the support mart, and the marketing mart, potentially with different spellings or update histories.Bill Inmon argued for the top-down approach. First, build a normalized, enterprise-wide data warehouse – a single source of truth with no redundancy, where every fact is stored once and only once. This normalized model (third normal form, for the SQL purists) is clean, consistent, and theoretically perfect. Then, from this pristine foundation, create data marts as needed. The downside? Building the enterprise model first is slow, expensive, and requires a level of cross-departmental cooperation that most companies can only dream about.In practice, most organizations ended up somewhere in the middle – a bit of Kimball, a bit of Inmon, and a lot of compromise. But regardless of the methodology, the data warehouse solved a real problem. For the first time, business analysts could ask complex questions without crashing the operational database. Reports ran in minutes instead of hours. The CEO’s dashboard actually worked.But the warehouse had its own problems. It was expensive – not just in software licenses, but in engineering time. Every new data source required weeks of modeling, transformation, and testing. Schema-on-write meant you had to know exactly what your data looked like before you could store a single row. And if your business changed – if you acquired a new company, launched a new product, or simply realized that your original model…
This is the end of the free sample. Get the eBook to keep going. Buy now
About this book
Details
- Author
- Washburn Stephaine
- Publisher
- SamEnrico
- Language
- English
- Genre
- Non-Fiction, Informative, Educational
- Released
- 2026-05-11
- Pages (approx.)
- 145
- Available as
- eBook, Audiobook
Read better in the ZLOADR app
Your eBooks on your phone or tablet. Sign in with your SamEnrico account and start reading.
More by Washburn Stephaine
Law Enforcement NaloxoneWashburn Stephaine$11.99
Shopping Urge Surfing TechniqueWashburn Stephaine$11.99
Basmo Statistics TrapWashburn Stephaine$11.99
Meth Dopamine RestorationWashburn Stephaine$11.99
The Bullfighter’s Vision: How a Colonial Manager Built Latin America’s First Sports DynastyWashburn Stephaine$11.99
How to Start a Net Curtaining Knitted or Crocheted Fabric Business (Beginners Guide)Washburn Stephaine$11.99
AI for Customer Sentiment AnalysisWashburn Stephaine$12.99
Learn to Play the Treble Or AltoWashburn Stephaine$11.99You may also like
Hong Kong Handover 1997Dunn Johnnie$11.99
Zumba For Postnatal Recovery CourseNeal Christian$11.99
Zumba for BeginnersLadner Nikia$11.99
YouTube Comment Mining GuideHumes Pandora$12.99
Worry Box MeditationCarlin Rudy$11.99
Workplace Stress MeditationNguyen Lynn$11.99
Workplace Stress and Sleep RepairHawley Ivory$11.99
Workplace Perfectionism CureDelaney Jeffry$11.99
Workplace Injustice Anger GuideWallen Isabelle$11.99
Work Addiction and Burnout LinkGreenwood Ester$11.99
Women in Yoga and WellnessBeattie Galina$11.99
Women in Stand Up ComedyChun Evangeline$11.99