Databases & Storage in Production
43 short lessons with interactive exercises. You start from zero and move from beginner to advanced.
- 43 lessons
- 3 levels
- Arabic & English
- Start free
What you will learn
- Run PostgreSQL, its connections, transactions and indexes safely in production
- Diagnose slow queries, locks and connection limits, and use pooling
- Design a suitable cache, file storage, backups and restores
- Scale the data layer with replication, partitioning and sharding while understanding consistency trade-offs
About this course
A complete, concept-focused course on running databases, caching and storage with good performance and reliability in production. It starts with the database's role in the architecture, the database server, PostgreSQL in production, connections and connection pooling, transactions, indexes, query performance, locks, and the types of storage (local, block and object), plus Redis and caching. Then it moves on to slow queries, the idea behind EXPLAIN, index selection, connection limits, pooling in practice, cache patterns (cache-aside), cache invalidation and TTL, sessions and queues in Redis, backup and restore, managed versus self-hosted, and storing files outside the database. It ends with database bottlenecks, replication, primary/replica setups, read replicas, failover, high availability, point-in-time recovery, backup retention, partitioning and sharding, consistency trade-offs, Redis high availability, cache stampedes, database scaling strategy, and designing a large data layer. A theory course with no runnable code, full of comparisons, varied analogies and production examples.
Skills
- Databases
- PostgreSQL
- Storage
- Performance
Lessons
Every lesson is short, and the exercises after it lock in what you learned.
Beginner level
14 lessons
- The Database's Role in Architecture
- Database Server
- PostgreSQL in Production
- Database Connections
- Connection Pooling
- Transactions
- Indexes
- Query Performance
- Locks
- Local Storage
- Block Storage
- Object Storage
- Redis
- Caching
Intermediate level
14 lessons
- Slow Queries
- The Query Execution Plan (EXPLAIN)
- Index Selection
- Connection Limits
- Connection Pooling in Practice
- The Cache-Aside Pattern
- Cache Invalidation
- Redis TTL
- Sessions in Redis
- Queues with Redis
- Database Backups
- Restore
- Managed vs. Self-Hosted Database
- File Storage Outside the Database
Advanced level
15 lessons
- Database Bottlenecks
- Replication
- Primary and Replica
- Read Replicas
- Failover
- High Availability
- Point-in-Time Recovery
- Backup Retention
- Partitioning
- Sharding
- Consistency Trade-offs
- Redis High Availability
- Cache Stampede
- Database Scaling Strategy
- Designing a Large Data Layer
Start your first lesson today
Get the Lammah app and pick “Databases & Storage in Production” from the courses. Each lesson takes a few minutes, and you can start free.






