Design a Seller Experience application

Difficulty: MEDIUMCategory: LLDFrequency: 1Asked On 2025-04-21

Problem Statement

Design the Low-Level Design (LLD) of a Seller Experience Application, similar to platforms like Amazon Seller Central, Flipkart Seller Hub, or Meesho Supplier Panel.


The goal of the system is to provide sellers with a platform to manage their catalog, inventory, orders, performance, and payments efficiently.


Your focus should be on object-oriented modeling, class relationships, and core interactions, not on scalability, microservices, or infrastructure (which would belong to HLD).


🧩 Functional Requirements


Seller Management

β€’Sellers can register, log in, and maintain their profiles.
β€’Each seller has details like name, business info, contact, address, and verification status.

Product & Catalog Management

β€’Sellers can:
β€’Add new products (name, price, SKU, category, description, images).
β€’Edit or deactivate existing products.
β€’Manage product variants (size, color, etc.).
β€’System should validate mandatory product fields before publishing.

Inventory Management

β€’Track stock levels for each product variant.
β€’Update inventory when:
β€’A new order is placed.
β€’A product is restocked or removed.
β€’Trigger alerts for low-stock or out-of-stock items.

Order Management

β€’Sellers can view and manage orders received from customers.
β€’Each order contains:
β€’Order ID, product details, quantity, buyer info, payment status, and shipping status.
β€’Sellers can update order status: Pending β†’ Packed β†’ Shipped β†’ Delivered.

Payment Management

β€’Track payments for each order (amount, transaction ID, settlement date, status).
β€’View total earnings, pending payments, and commission deductions.

Performance & Insights

β€’Sellers can view dashboards with performance data:
β€’Total sales, orders, cancellations, and ratings.
β€’Product-level performance metrics.

Notification System

β€’Notify sellers about:
β€’New orders
β€’Low inventory
β€’Payment settlements
β€’Account updates or feedback


🚫 Non-Functional Requirements


β€’Extensible β€” Support new modules like promotions, advertising, or analytics later.
β€’Modular β€” Catalog, order, and payment modules should work independently.
β€’Reliable β€” No data loss for transactions or inventory updates.
β€’Fast UI response β€” Underlying services must respond quickly (<200ms).


🧱 Suggested Classes


ClassResponsibility


Seller


Represents a seller with profile info, catalog, and performance stats.


Product


Represents a product listed by a seller. Contains SKU, price, category, and variants.


ProductVariant


Represents a specific variant of a product (size, color, etc.) with stock.


Inventory


Tracks available quantity for each product variant.


Order


Represents an order placed by a buyer for a seller’s product.


OrderItem


Represents individual items within an order.


Payment


Handles payment transactions and settlements for completed orders.


SellerDashboard


Provides aggregated data like total sales, revenue, and ratings.


NotificationService


Sends system alerts and notifications to sellers.


PerformanceReport


Generates reports based on sales, returns, and ratings.


CatalogManager


Manages addition, modification, and removal of products.


OrderManager


Handles order updates and shipping workflows.


PaymentManager


Tracks payment processing and settlement.


πŸ”„ Example Flow


1️⃣ Seller Registration

1 2Seller registers β†’ Verification done β†’ Seller account activated.

2️⃣ Product Listing

1 2Seller adds a new product β€œBluetooth Speaker” 3β†’ Adds variant: Color = Black, Stock = 100, Price = β‚Ή999 4β†’ CatalogManager validates & publishes product.

3️⃣ Customer Places Order

1 2Order created for β€œBluetooth Speaker” 3β†’ OrderManager reduces stock in Inventory. 4β†’ Payment initiated and recorded.

4️⃣ Order Fulfillment

1 2Seller updates order to β€œShipped” 3β†’ Notification sent to customer. 4β†’ Payment settled post-delivery.

5️⃣ Dashboard Summary

1 2SellerDashboard shows: 3 - Total Sales: β‚Ή50,000 4 - Orders Delivered: 120 5 - Average Rating: 4.5


βš™οΈ Example Entities (Simplified)

1 2Seller 3 β”œβ”€β”€ id 4 β”œβ”€β”€ name 5 β”œβ”€β”€ email 6 β”œβ”€β”€ businessInfo 7 β”œβ”€β”€ products: List<Product> 8 β”œβ”€β”€ orders: List<Order> 9 β”œβ”€β”€ payments: List<Payment> 10 11Product 12 β”œβ”€β”€ id 13 β”œβ”€β”€ name 14 β”œβ”€β”€ description 15 β”œβ”€β”€ price 16 β”œβ”€β”€ category 17 β”œβ”€β”€ variants: List<ProductVariant> 18 19ProductVariant 20 β”œβ”€β”€ id 21 β”œβ”€β”€ sku 22 β”œβ”€β”€ color 23 β”œβ”€β”€ size 24 β”œβ”€β”€ inventory: Inventory 25 26Order 27 β”œβ”€β”€ id 28 β”œβ”€β”€ buyerName 29 β”œβ”€β”€ items: List<OrderItem> 30 β”œβ”€β”€ status (PENDING, PACKED, SHIPPED, DELIVERED) 31 β”œβ”€β”€ payment: Payment 32 33Payment 34 β”œβ”€β”€ id 35 β”œβ”€β”€ orderId 36 β”œβ”€β”€ amount 37 β”œβ”€β”€ transactionId 38 β”œβ”€β”€ status (PENDING, COMPLETED, FAILED)


πŸ§ͺ Example Input / Output


Input:

1 2Seller: Sahil Electronics 3Action: Add Product β€œWireless Mouse” (Price β‚Ή499, Stock 50) 4Customer places 2 orders


Output:

1 2Order #123 confirmed 3Stock updated β†’ Remaining: 48 4Payment of β‚Ή998 received 5Dashboard updated


πŸ“ Constraints


β€’Max products per seller: 10,000
β€’Max variants per product: 50
β€’Max concurrent orders per seller: 5,000
β€’Payment settlement time: within 2 business days


🧠 Extension Ideas


β€’Add promotional campaigns (discounts, ads).
β€’Integrate return/refund management.
β€’Include review and feedback module.
β€’Add multi-warehouse inventory support.


βœ… In short:


Design a Seller Experience Application that allows sellers to manage their products, inventory, orders, and payments efficiently β€” with modular, object-oriented, and extensible class design.

Solution

Comments