Databases Reference
In-Depth Information
The Product Page
The Product Page shows information related to a specific product, such as price,
title, and category. The URL for this page is http://localhost:3000/product/:id . (See
Figure 6-3 .)
Figure 6-3. Product page
The Product Stats Page
This page shows the information computed by the Storm cluster, which is collected
as users navigate the website. It can be summarized as follows: users that viewed
this Product looked at Products in those Categories n times. The URL for this page
is http://localhost:3000/product/:id/stats . (See Figure 6-4 .)
Figure 6-4. Product stats view
Starting the Node.js Web Application
After starting the Redis server, start the web application by running the following com-
mand on the project's path:
node webapp/app.js
The web application will automatically populate Redis with some sample products for
you to play with.
The Storm Topology
The goal of the Storm topology in this system is to update the product stats in real time
while users navigate the website. The Product Stats Page is shows a list of categories
 
Search WWH ::




Custom Search