Courses / System Design Interview / Chapter 45
Module 10 · Design Problems V: AI and Data Systems · Chapter 45 of 49
Design a Data Infrastructure Platform
Builds on Core Concepts: RPCs, Consistency, Failures and Time, Back-of-the-Envelope Estimates, Distributed Message Queues, Publish-Subscribe Systems, Blob Stores and Distributed Task Schedulers. Next up: Design an LLM Customer Support Bot.
Part 1 · Requirements: who uses the data and how fresh it must be
What the platform is for
Every app produces a steady stream of facts, such as lessons finished and payments made, and teams turn them into reports, dashboards and product features. A data infrastructure platform is the set of systems that collects those facts, keeps them cheaply for years, transforms them and serves the results.
The application's own database is built for the next tap. It holds current state, answers small reads and writes in milliseconds, and is tuned for those. A question such as how many learners finished a course last week, by state, reads millions of rows and needs history that the app database does not keep. Running that scan there slows the app for every user. This is the difference between transactional work (many tiny reads and writes of current state) and analytical work (few large queries that scan history). The two get separate systems, and the platform is the bridge between them.
The running example is a learning app with 50 lakh learners active on a busy day. It has courses, lessons, quizzes and paid enrolments. The platform must take what this app produces and make it useful to the people and programs that ask questions about it.