Slice | SDE3 | LLD

slice logo
slice
SDE III
May 1, 202510 reads

Summary

I was presented with a Low-Level Design problem focused on creating a Library Book Management System, detailing functional requirements and system constraints.

Full Experience

Problem Statement: Library Book Management System

Objective:

Design and implement a backend service that allows users to manage books, borrow and return them, and track availability.

Functional Requirements

Book Management

  1. Add a new book to the library.
  2. Retrieve book details by ID.
  3. List books with filters (e.g., available books, books by author).

User Management

  1. Register a new user.
  2. Fetch user details.

Borrow & Return Books

  1. Borrow a book if it is available.
  2. Return a borrowed book, updating its availability.
  3. List books borrowed by a user.

Constraints:

· A book can be borrowed by one user at a time. · Users can borrow up to 3 books at once.

Interview Questions (1)

Q1
Design a Library Book Management System
System Design

Objective:

Design and implement a backend service that allows users to manage books, borrow and return them, and track availability.

Functional Requirements

Book Management

  1. Add a new book to the library.
  2. Retrieve book details by ID.
  3. List books with filters (e.g., available books, books by author).

User Management

  1. Register a new user.
  2. Fetch user details.

Borrow & Return Books

  1. Borrow a book if it is available.
  2. Return a borrowed book, updating its availability.
  3. List books borrowed by a user.

Constraints:

· A book can be borrowed by one user at a time. · Users can borrow up to 3 books at once.

Discussion (0)

Share your thoughts and ask questions

Join the Discussion

Sign in with Google to share your thoughts and ask questions

No comments yet

Be the first to share your thoughts and start the discussion!