16. Riak’s Use Cases
Application Type Key Value
Session User/Session id Data
Advertising Campaign id Data
Logs Date Log file
text, json,
Content title, integer
xml, media..
17. When is Riak a good fit
When availability is more
important than consistency
When data can be
modeled as keys/values
When the problem fits
34. Disable SWAP
^ Riak process pages
should not hit swap
Swap usage can result
in unresponsive server
Let the kernel kill it
35. Mount & SCHEDULER
^ Mount with noatime flag
Use deadline scheduler
on EBS
cat /sys/block/xvdj1/queue/scheduler
noop [deadline] cfq
echo deadline > /sys/block/xvdj1/queue/
scheduler
36. Linux FILESYSTEMS
^ xfs, ext3
ext4
barrier = 0
data = writeback
ZFS not recommended
37. Backup STRATEGY
^ Backup both the ring
and data directories
scp or rsync data dir
EBS snapshots
45. Polyglot PERSISTENCE
Pick the right tool
for the job
Apps & Services
can have multiple
databases
46. On SOA
My super nice e-commerce site
Shopping Cart & Completed Inventory and Recommendations
Session Data Orders Item Pricing Engine
Session Order Inventory & Nodes and
Storage Persistence Price service relations
service service service
RDBMS
K/V Store Document Graph Store
Store
NoSQL Distilled: Fowler & Sadalage
47. We RECOMMEND
Don’t optimize too quickly
Take time to understand
your problem
Complexity increases with
more databases
48. Do KEEP IN MIND
Different paradigms
are different
Document
Relational != Store