Challenge: Reservation Queue
Explore how to implement a reservation queue in a library system using Spring Data Redis. Learn to manage book availability, create user and loan data models, and handle queues for book reservations efficiently.
We'll cover the following...
We'll cover the following...
Implement a reservation queue
Extend the existing library management system to include a reservation queue for popular books. We should allow users to join a reservation queue to be notified when the book becomes available.
Tasks
In this challenge, complete the following tasks:
-
Add the
Booleanavailableproperty to theBookPOJO class. -
Create the
Userclass in thecom.smartdiscover.modelpackage to store ...