O'Reilly logo

Redis Applied Design Patterns by Arun Chinnachamy

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Inventory management

Inventory management is a critical part of any e-commerce system. It is a basic expectation from all users that any online retail website will not let you order items unless they are available. This part of the book covers a basic overview about the inventory system data model in Redis.

Let's begin by assuming that a user's shopping cart shows the following information: item title, order quantity, and order price. Every user will have their own cart and should be able to add any number of items into their carts. For the sake of simplicity, we will not update the inventory on adding to cart and we will not let the user checkout unless we have the item in stock.

The solution overview

Like we discussed earlier, we will start by ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required