Architecture Patterns/

When To Use What

Lesson overview

When To Use What

Decision framework for choosing the right architecture pattern.

When to use what

| # | System | Suggested Architecture | Why | | -- | ------------------------------- | ---------------------- | ------------------------------------------------------------- | | 1 | Small Blog | Monolithic | Simple CRUD, low traffic | | 2 | Portfolio Website | Serverless | Minimal backend, cost-efficient | | 3 | E-commerce MVP | Monolithic | Quick to build, easy deployment | | 4 | E-commerce Large | Microservices | Independent scaling of Order, Payment, Inventory | | 5 | Ride Sharing | Event-Driven | Asynchronous workflows for ride assignment & billing | | 6 | Chat App | Event-Driven | Real-time messaging, decoupled services | | 7 | Image Upload Service | Serverless | Triggered by S3, no server management | | 8 | Payment Gateway | Microservices | Independent services for payment processing & fraud detection | | 9 | Analytics Platform | Event-Driven | Streaming data processing, decoupled services | | 10 | Social Media MVP | Monolithic | Start small, scale later | | 11 | Social Media Full | Microservices | Feed service, notification service, user service | | 12 | Video Streaming | Microservices | Independent services for encoding, delivery, user accounts | | 13 | Server Monitoring Tool | Serverless | Event-based alerts, cost-efficient | | 14 | IoT Device Management | Event-Driven | Async device events, real-time updates | | 15 | Inventory Management Small | Monolithic | Easy CRUD, low concurrency | | 16 | Inventory Management Enterprise | Microservices | Separate stock, orders, reporting services | | 17 | Notification System | Event-Driven | Decoupled sending to email, SMS, push | | 18 | Logging System | Event-Driven | High throughput, multiple consumers | | 19 | AI Inference API | Serverless | Short-lived function calls, scalable on demand | | 20 | Booking System | Microservices | Booking, payment, notification decoupled | | 21 | CMS Small | Monolithic | Simple admin panel and content | | 22 | CMS Enterprise | Microservices | Separate editor, workflow, publishing services | | 23 | Email Service | Event-Driven | Event-driven to handle retries & throttling | | 24 | File Processing Pipeline | Serverless | Process files triggered by upload events | | 25 | Online Exam Platform | Microservices | Exam service, result service, user service | | 26 | Food Delivery MVP | Monolithic | Small initial launch | | 27 | Food Delivery Full | Microservices | Orders, delivery, payment, notifications separate | | 28 | Weather Alert System | Event-Driven | Async alerts based on events | | 29 | Analytics Dashboard | Microservices | Data ingestion, processing, dashboard services | | 30 | Small ToDo App | Monolithic | Simple CRUD | | 31 | Corporate ERP | Microservices | Finance, HR, Inventory as separate services | | 32 | Video Transcoding | Serverless | Event-triggered video conversion | | 33 | Fraud Detection System | Event-Driven | Async event processing for transactions | | 34 | IoT Sensor Data Pipeline | Event-Driven | Streams of data from multiple devices | | 35 | Job Portal | Monolithic | MVP launch with basic features | | 36 | Job Portal Large | Microservices | Search service, application service, notification service | | 37 | Live Sports Score App | Event-Driven | Real-time updates | | 38 | Image Thumbnail Generator | Serverless | Triggered by image upload events | | 39 | Payment Notification | Event-Driven | Async notifications to multiple channels | | 40 | Chatbot Backend | Serverless | Event-driven function for each request | | 41 | Travel Booking | Microservices | Flight, hotel, payment services | | 42 | Streaming Analytics | Event-Driven | Stream processing & alerts | | 43 | E-learning MVP | Monolithic | Start with small scale | | 44 | E-learning Full | Microservices | Courses, Users, Payments decoupled | | 45 | Coupon System | Event-Driven | Async discount events | | 46 | Image Recognition API | Serverless | Event-triggered model inference | | 47 | Small CRM | Monolithic | Easy CRUD for small business | | 48 | Large CRM | Microservices | Leads, sales, reporting separated | | 49 | Notification Hub | Event-Driven | High-throughput, multiple channels | | 50 | Form Submission Handler | Serverless | Event-driven processing, low cost |

Loading When To Use What