how to design X/Y/Z
Problem Statement
Design a [system / module / class / service] called [X / Y / Z] that solves [describe the real-world or business problem], ensuring scalability, reliability, and maintainability.
📋 Problem Description
You are required to design [X], which will [main purpose — e.g., store, process, or serve data, or handle user actions].
The system should support [key features / functional requirements], and adhere to good design principles such as modularity, abstraction, and separation of concerns.
🧱 Core Requirements
Functional Requirements
Non-Functional Requirements
⚙️ Design Expectations
🧠 Discussion Points
✅ Deliverables
🧩 Example Variants
1️⃣ How to Design a URL Shortener (HLD)
Problem Statement:
Design a system like Bitly that converts long URLs into short, unique links and redirects users when the short link is visited.
Key Features:
2️⃣ How to Design a Parking Lot (LLD)
Problem Statement:
Design the class structure for a Parking Lot system that supports multiple vehicle types, ticket generation, and payment handling.
Key Features:
3️⃣ How to Design a Notification Service (HLD + LLD Hybrid)
Problem Statement:
Design a Notification Service that can send alerts via email, SMS, and push notifications. The system should support scheduling, retry logic, and tracking delivery status.
Key Features:
4️⃣ How to Design a Cache System (LLD)
Problem Statement:
Design a class-based Cache System that supports storing key-value pairs, TTL expiration, and LRU eviction.
Key Features:
5️⃣ How to Design a Payment Gateway (HLD)
Problem Statement:
Design a scalable Payment Gateway system that can process transactions across different banks, handle retries, ensure idempotency, and provide transaction tracking.
Key Features:
✨ Quick Formula to Create Your Own “Design X/Y/Z” Problem Statement
Design a [system/module/app] that [main goal]. The system should support [key functionalities] and ensure [non-functional goals like scalability, reliability, fault tolerance].
✅ Example:
Design a Real-Time Chat Application that supports one-to-one and group messaging, message persistence, and user presence tracking, while ensuring low latency and high availability.