Riak’s redundant, fault-tolerant design ensures that advertising companies can serve data reliably and quickly. Some of the main technical benefits of Riak for advertisers include:
Low-Latency Data Storage:Riak is built to serve predictable, low-latency requests and provide a highly available experience to end users. Scale-Out Design:Riak makes it easy for operators to add additional capacity, scale out to handle the growth of advertising data, and accommodate peak loads. Simple Data Model:Riak’s key/value design is fast and flexible for storing advertising content, user information, and session data. Multi-Datacenter Replication:Riak Enterprise allows advertisers to failover to secondary sites in the event of datacenter failure and serve content to clients, devices, customers, and partners all over the world.
Here are some common ways advertisers leverage Riak:
OpenX is an ad technology platform available as a hosted service or as a download. OpenX uses Riak for user and trafficking data behind its data services API. OpenX chose Riak Enterprise in order to provide up-to-date data throughout its global infrastructure. For more details about how OpenX uses Riak, check out the video of Anthony Molinaro, OpenX engineer, speaking at RICON2012, Basho’s 2012 developer conference.
Velti is a mobile marketing and advertising technology provider. They use Riak for their interactive mobile platform, which lets people interact with their TV by voting, giving feedback, participating in contests, etc. Riak provides Velti with scale, durability, and availability. They also use Riak Enterprise’s multi-datacenter capabilities. For more information on Velti’s use of Riak check out the complete case study.
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 advertising data with Riak’s key/value design:
|Advertisement||Campaign ID||Ad Content|
|User Data||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 or Session ID||Session Data|
On top of the fundamental key/value model, Riak also offers robust querying, including: