Backend service for a library system including real-time stock tracking, an automated late-fee engine, and concurrent borrowing logic.