Riak is a highly available, low-latency database for retailers that need to provide always-on eCommerce and mobile services. Some key technical benefits of Riak for retailers include:
Highly Available Experience for Shoppers:Riak’s design ensures that users can always add products to the shopping cart and that content will always be served at low-latency. Scale to Peak Loads with Low Operational Cost:Riak lets retailers increase their capacity quickly during major holidays or other high traffic periods. Global Data Locality:Riak Enterprise’s multi-datacenter replication provides a global data footprint and failover to secondary sites in the event of datacenter failure.
Here are some common ways retailers use Riak:
Riak has been an integral part in the trasformation push to re-platform Best Buy’s eCommerce platform. Riak’s architecture has helped Best Buy build and operate its platform. For more information on Best Buy and Riak, check out Joel Crabb, Director of Web Architecture at BestBuy.com, speak at RICON2012, Basho’s 2012 developer conference.
ideel is one of the fastest growing retailers in the US. They use Riak to serve HTML documents and user-specific products. ideel chose Riak to power their event-based shopping experience due to Riak’s ability to serve users information at low-latency and provide ease of use and scale to ideel’s operations team. For more information on ideel’s use of Riak, check out the complete case study.
Copious is a social commerce marketplace that makes it easy for people to buy and sell the things they love. They currently store all registered accounts in Riak as well as the tokens that make it possible for users to authenticate with Copious via their Facebook or Twitter accounts. They chose to use Riak for their social login functionality because of its operational simplicity. For more information, check out Rob Zuber, Copious Co-Founder, speak on how they are using Riak for their multi-datastore strategy.
DATA MODELING IN RIAK
Riak has a “schemaless” design. Objects are comprised of key/value pairs, which are stored in flat namespaces called buckets. Here are some common approaches to structuring retail data with Riak’s key/value design:
|Item in Product Inventory||Product ID||JSON, XML, Text or HTML document|
|Product Advertising||Campaign Identifier||Ad Content|
|User Profile||Login, Email, UUID||User Attributes (often stored as a JSON document)|
|Image or Video Content||Content Name, ID or Integer||.JPG .PNG, .GIF or other image format; .MOV, .MPG, .MP4 or other video file format|
|Session Information||User/Session ID||Session Data|
Riak also offers robust querying, including: