ShelfSoftware Engineer (Backend)DevOps / Platform EngineerBlockchain Developer
NoSQL databases · Intermediate · 8 h
Documents, keys and caches
Modelling documents for your access patterns, compound indexes and query plans, aggregation, and Redis for caching, rate limiting and leaderboards.
Why employers care: Backend engineers are expected to choose the right store for a workload and to use it well. Missing indexes and stale caches are two of the most common production problems.
In the roadmaps for: Software Engineer (Backend), DevOps / Platform Engineer, Blockchain Developer
Lessons, in order
- Document modelling, indexes and aggregation in MongoDBModel orders as documents, watch a query go from scanning 50,000 documents to reading 5, and summarise revenue with an aggregation pipeline.4 min
- Redis for caching, rate limits and leaderboardsUse Redis as a cache with expiry, a fixed-window rate limiter and a sorted-set leaderboard, and know what can go wrong with each.3 min