Secret Manager System Low-Level Design
What is a Secret Manager? A secret manager stores and distributes sensitive credentials (API keys, database passwords, TLS certificates, OAuth […]
What is a Secret Manager? A secret manager stores and distributes sensitive credentials (API keys, database passwords, TLS certificates, OAuth […]
The Two Heaps Pattern Two heaps maintain the lower and upper halves of a data stream, allowing O(1) access to
What is a Webhook? A webhook is a user-defined HTTP callback. When an event occurs in a platform (payment succeeded,
Grid Traversal Fundamentals Most matrix problems involve: (1) BFS from one or multiple source cells, (2) DFS to explore connected
Why Rate Limiting? Rate limiting protects services from abuse, ensures fair usage, and prevents cascading failures from traffic spikes. Applied
Requirements Generate invoices for subscriptions and one-time purchases Support multiple billing cycles: monthly, annual, usage-based Apply discounts, taxes, and proration
Why Multi-Region? Single-region deployments fail entirely during a cloud provider AZ or region outage. Multi-region provides: (1) High availability —
Requirements Users can create auction listings with a start price, reserve price, and end time Users place bids; highest bid
Requirements Generate a personalized feed of posts ranked by relevance/recency for each user Supports follow relationships: see posts from users
Requirements Return top-k (k=10) query suggestions as a user types, within 100ms Suggestions ranked by search frequency or relevance score
Requirements Track real-time location of mobile assets (drivers, delivery couriers, field workers) 1M active devices sending location updates every 4
What is a Data Pipeline? A data pipeline is a sequence of data processing steps: collect → transform → store
When to Use an Ordered Map (Sorted Dict / TreeMap) An ordered map maintains keys in sorted order with O(log
Permission Models Overview Three main models: ACL (Access Control List): per-resource list of who can do what. Simple, fine-grained, but
Requirements Create and manage discount coupons (percentage, fixed amount, free shipping) Apply coupon to a cart: validate, compute discount, prevent