Learning Redis by Unknown

Learning Redis by Unknown

Author:Unknown
Language: eng
Format: mobi, epub
Publisher: Packt Publishing


Simple e-commerce – a Redis backed e-commerce site

This sample e-commerce site, like other e-commerce sites, has products which the registered user can browse, purchase, and so on. The website also recommends products based on the users' browsing and purchasing habits. In parallel, the website gives real time statistics of the activities happening in the website and provides you with capabilities to do real-time and soft-real-time analytics. So, let's get cracking and build this website, and like in any design, let's divide the requirement into commands, which are listed as follows:

Session and catalogue management: The following commands are offered as service:Register user: Command name is register; this command will register the user to the system.

See my data: Command name is mydata; this command will allow the user to see his/her data.

Edit my data: Command name is editmydata; this command will allow the user to edit his data.

Login user: Command name is login; this command will log in the user and generates a session-ID for the user to communicate with the server.

Relogin user: Command name is relogin; this command will again log the user but the session-ID will remain the same. All the session or profile data of the user will also remain the same.

Logout user: Command name is logout; this command will log out the user and kill his session or profile data.

Add to cart: Command name is add2cart; this command will add the item to the shopping cart.

See my shopping cart: Command name is showmycart; this command will show the items in the shopping cart.

Edit my shopping cart: Command name is editcart; this command will edit user preference in the shopping cart.

Buy products: Command name is buy; this command will buy the items in the shopping cart of the user. For the current application, we will not take you to some merchant's site but instead we will generate a sample receipt for you. The idea is to have analysis, so when somebody buys the product we give credit points for that product which will help us for our recommendation service. The credit point for buying is 10.

Commission product: Command name is commission; this command will commission the product and create its profile in the system.

Display product: Command name is display; this command will display the product.

Browse products: Command name is browse; this command will log the product the user is currently browsing. The idea is that when somebody browses the product, we give credit points for the product which will help us for our recommendation service. The credit point for browsing is 1.



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.