109 lines
3.5 KiB
JSON
109 lines
3.5 KiB
JSON
[
|
|
{
|
|
"task_id": "Decomp/001",
|
|
"title": "URL Shortener Service (bit.ly clone)",
|
|
"description": "Design and implement a production-grade URL shortener service like bit.ly",
|
|
"requirements": [
|
|
"Generate short codes (6-8 characters) from long URLs",
|
|
"Handle redirects with HTTP 301/302",
|
|
"Track click statistics (count, timestamp, user-agent, IP)",
|
|
"Rate limiting per user (100 req/min)",
|
|
"Expiration dates for URLs",
|
|
"Custom aliases for premium users",
|
|
"RESTful API interface"
|
|
],
|
|
"non_functional": [
|
|
"10M URLs in database",
|
|
"100K requests/second throughput",
|
|
"<100ms p95 latency for redirects",
|
|
"99.9% SLA"
|
|
]
|
|
},
|
|
{
|
|
"task_id": "Decomp/002",
|
|
"title": "Real-time Chat System (Discord/Slack clone)",
|
|
"description": "Design and implement a real-time messaging system",
|
|
"requirements": [
|
|
"User authentication (JWT-based)",
|
|
"Public channels and private direct messages",
|
|
"Real-time message delivery (WebSocket)",
|
|
"Message persistence and history",
|
|
"Online/offline user status",
|
|
"Typing indicators",
|
|
"File/image uploads",
|
|
"Message reactions/emoji"
|
|
],
|
|
"non_functional": [
|
|
"100K concurrent connections",
|
|
"<50ms message delivery latency",
|
|
"1M messages/day storage",
|
|
"Horizontal scaling",
|
|
"Message ordering guarantees"
|
|
]
|
|
},
|
|
{
|
|
"task_id": "Decomp/003",
|
|
"title": "Distributed Task Queue (Celery clone)",
|
|
"description": "Design and implement a distributed task execution system",
|
|
"requirements": [
|
|
"Submit tasks (functions) for async execution",
|
|
"Task routing to specific worker queues",
|
|
"Retry on failure with exponential backoff",
|
|
"Task chaining and workflows",
|
|
"Scheduled/cron tasks",
|
|
"Task result storage",
|
|
"Worker health monitoring",
|
|
"Priority queues"
|
|
],
|
|
"non_functional": [
|
|
"10K tasks/second throughput",
|
|
"Worker auto-scaling",
|
|
"Fault tolerance (broker/worker failure)",
|
|
"At-least-once delivery semantics"
|
|
]
|
|
},
|
|
{
|
|
"task_id": "Decomp/004",
|
|
"title": "E-commerce Order Processing System",
|
|
"description": "Design and implement an order processing pipeline for e-commerce",
|
|
"requirements": [
|
|
"Product catalog with inventory management",
|
|
"Shopping cart with session persistence",
|
|
"Order placement with payment integration",
|
|
"Order status workflow (pending\u2192paid\u2192shipped\u2192delivered)",
|
|
"Inventory reservation on order",
|
|
"Payment webhook handling",
|
|
"Order cancellation/refund",
|
|
"Notification system (email/SMS)"
|
|
],
|
|
"non_functional": [
|
|
"Handle flash sales (1000 orders/second)",
|
|
"ACID transactions for inventory",
|
|
"Payment fraud detection",
|
|
"Eventual consistency for order status",
|
|
"Audit trail for all changes"
|
|
]
|
|
},
|
|
{
|
|
"task_id": "Decomp/005",
|
|
"title": "File Storage Service with CDN (S3+CloudFront clone)",
|
|
"description": "Design and implement a distributed file storage service",
|
|
"requirements": [
|
|
"Upload files (multipart for large files)",
|
|
"Generate unique identifiers",
|
|
"Download files with CDN caching",
|
|
"File metadata (name, size, type, checksum)",
|
|
"Access control (public/private)",
|
|
"Temporary signed URLs",
|
|
"File versioning",
|
|
"Delete with cleanup"
|
|
],
|
|
"non_functional": [
|
|
"Store 1PB of data",
|
|
"Handle 100GB files",
|
|
"10K uploads/second",
|
|
"Global CDN distribution",
|
|
"99.99% durability"
|
|
]
|
|
}
|
|
] |