Search
Lessons (40)
- 10,000 Users Do Not Need 10,000 Database Connections
Why a few busy database connections can serve thousands of users, how to size a connection pool, and …
- Storage Engines & Database Operations
Understand B-trees, LSM trees, write-ahead logs, connection pools, backups and the signals behind database reliability. What …
- AWS Databases: Choose the Right One
… managed SQL database RDS runs engines such as PostgreSQL and MySQL while AWS handles hardware, backups, and many …
- Database Internals, Replication and Scaling
Understand what's happening inside your database (how it stores data, copies it, and hands out connections) so …
- VPC Networking Without the Confusion
… A PostgreSQL authentication error shows that the client reached a database process; investigate credentials and database privileges next …
- Storage, Search and Location Queries
… the search index or the metadata database? <details <summary Show answer</summary The metadata database . It's the …
- Database Relations & Foreign Keys
… It is a database promise: an order belongs to one customer; an order contains many items; a student …
- Caching, Consistent Hashing and Sharding
… All 50,000 reads per second rush to the database at once. The database falls over. 4. Meanwhile …
- Cross-Service Data: How to Join Without a Database JOIN
When Order Service and User Service own separate databases, learn how to compose APIs, replicate data and build …
- Debug Latency Like an Investigator
… Each new app server opens its own set of database connections. 3. The database now has more people …
- SQL vs NoSQL Databases
… scale OUT"] H1[Node 1] H2[Node 2] H3[Node 3] H4["+ Node 4"] end NoSQL databases like …
- Design a URL Shortener
… Every click waits while the server writes a click record to the analytics database before redirecting. Redirects get …
- Database Indexing & Transactions
… A database index works the same way.  How it happens: two transfers …
- Data in Microservices: Sagas & the Outbox Pattern
Each service owns its database, so how do you keep data consistent across services without a shared transaction …
- AWS: Start Here
… you can rent a server, database, file storage, network, or message queue in minutes. Where AWS runs your …
- Concurrency, Resilience & Distributed Workflows
… Prefer an atomic database statement or a transaction that owns the invariant: sql UPDATE inventory SET available = available …
- Layered (N-Tier) Architecture
… The database sits at the bottom In a classic layered design, the business layer depends on the persistence …
- L6 Production Debugging Casebook
… See [database scaling](./database-internals-and-scaling). --- Reusable incident worksheet For any production problem, write down: 1. Impact …
- How a Web Request Works
… Someone at the destination reads it and replies → your server code (often asking a database ). , [Microservices](/learn/microservices) and [Database Design](/learn/databases). Take …
- The L6 System-Design Thinking Loop
… The seat page and the "buy" button share the same busy database, so browsing slows down buying. 3 …
- Indexes, EXPLAIN & Query Plans
… The cost is extra disk, memory, write work and maintenance. ![An index lets the database seek to matching …
- A WhatsApp OTP Is Only Single Use If You Make It So
… Anyone who sees the database can use it. ✅ Right: save a keyed hash of it. A database leak …
- AWS Interview Questions: Clear Answers
… Add user authentication, an authorized API, and a database suited to its queries. Keep the database private, scope …
- Releases, Observability and Production Safety
… The release starts with a database change that renames the column amount to total cents . 2. The 15 …
- Monolith vs Microservices
… each module has its own folder, public interface and (ideally) its own database schema. Modules talk only through …
- DynamoDB Modeling, RDS Scaling and Data Resilience
Design DynamoDB tables around access patterns, then scale and protect relational databases with replicas, proxies and Multi-AZ …
- Delivery Guarantees: At-Most, At-Least & Exactly Once
… The moment you write to an external system (a database, an email API, a payment provider), Kafka can …
- 500 Users Upload Documents at Once: Design the Background Job Pipeline
… The file lives in storage, and the status lives in the database. The message is just a pointer …
- Design a File Storage Service
… The upload finishes, but your database update crashes. The file is stored, yet nobody can see it , and …
- Time, Consistency and Distributed Transactions
… All or nothing, across databases. The catch: if the coordinator dies between the phases, the databases sit stuck …
- Flash Sale: 10 Million Buyers, No Oversell
… Only the real inventory database decides, in one all-or-nothing step, who gets each item. The story …