alternative database technology in the cloud

50
Community Stacker Bret Piatt LinuxCon 2010 Alternative Database Technologies for the Cloud &

Upload: bret-piatt

Post on 19-May-2015

4.525 views

Category:

Technology


1 download

DESCRIPTION

This presentation covers how open source technologies are being used to meet the specific needs of large scale problems on the Internet. No one solution meets all needs but open source provides a variety of solutions for different use cases.

TRANSCRIPT

Page 1: Alternative Database Technology in the Cloud

Community StackerBret Piatt

LinuxCon 2010Alternative Database Technologies for the Cloud

&

Page 2: Alternative Database Technology in the Cloud

OPEN SOURCE ISDRIVING THE CLOUD

Page 3: Alternative Database Technology in the Cloud

LINUX

Page 4: Alternative Database Technology in the Cloud

XEN

Page 5: Alternative Database Technology in the Cloud

KVM

Page 6: Alternative Database Technology in the Cloud

APACHE

Page 7: Alternative Database Technology in the Cloud

MEMCACHED

Page 8: Alternative Database Technology in the Cloud

VARNISH

Page 9: Alternative Database Technology in the Cloud

WORDPRESS

Page 10: Alternative Database Technology in the Cloud

DRUPAL

Page 11: Alternative Database Technology in the Cloud

MAGENTO

Page 12: Alternative Database Technology in the Cloud

THE HARDEST PARTIS STILL THE DATABASE

Page 13: Alternative Database Technology in the Cloud
Page 14: Alternative Database Technology in the Cloud
Page 15: Alternative Database Technology in the Cloud
Page 16: Alternative Database Technology in the Cloud
Page 17: Alternative Database Technology in the Cloud

TIMES HAVE CHANGED

Page 18: Alternative Database Technology in the Cloud
Page 19: Alternative Database Technology in the Cloud
Page 20: Alternative Database Technology in the Cloud
Page 21: Alternative Database Technology in the Cloud
Page 22: Alternative Database Technology in the Cloud

OTHER THINGSHAVE ALSO CHANGED

Page 23: Alternative Database Technology in the Cloud
Page 24: Alternative Database Technology in the Cloud
Page 25: Alternative Database Technology in the Cloud
Page 26: Alternative Database Technology in the Cloud
Page 27: Alternative Database Technology in the Cloud

THE WEB

WEB APPS ARE BUILT DIFFERENTLY

SERVER-SIDE PROCESSING

BURSTY LOADS, UNPREDICTABILITY

DISTRIBUTED USERS

SIMPLIFIED PROBLEM SET

SIMPLIFIED OPERATING ENVIRONMENT

Page 28: Alternative Database Technology in the Cloud

WEB SCALE REQUIREMENTS

TERABYTES OF DATA, INCLUDING STRUCTURED DATA

MILLIONS TO BILLIONS OF WRITES EACH DAY

GLOBAL REPLICATION AND REDUNDANCY–EVENTUAL CONSISTANCY

COMMODITY HARDWARE–SCALE OUT NOT UP

CACHE EVERYTHING YOU READ

MORE CORES, MORE MEMORY, MORE MACHINES

Page 29: Alternative Database Technology in the Cloud

RIAK

JSON AND REST–WEB GENERATION INTERFACE

MAP/REDUCE TERM MATCHING QUERIES

SCALE HORIZONTALLY WITH MULTIPLE MASTERS

EVENTUAL CONSISTENCY WITH VECTOR CLOCKS

WRITTEN IN ERLANG–CONCURRENT FUNCTIONAL PROGRAMMING

MORE CORES, MORE MEMORY, MORE MACHINES

Page 30: Alternative Database Technology in the Cloud

HBASE

REST-FUL WEB SERVICE GATEWAY

DISTRIBUTED COLUMN STORE MODELED AFTER BIGTABLE

SCALE HORIZONTALLY WITH MULTIPLE MASTERS

ROLLING RESTART FOR CONFIG CHANGES AND MINOR UPGRADES

HIGH PERFORMANCE THRIFT GATEWAY

CASCADING, HIVE, AND PIG SOURCE AND SINK MODULES

MORE CORES, MORE MEMORY, MORE MACHINES

Page 31: Alternative Database Technology in the Cloud

REDIS

API LIBRARIES AVAILABLE IN MANY LANGUAGES

MORE THAN JUST A PLAIN KEY-VALUE STORE

THE DATABASE IS IN MEMORY–RAM IS CHEAP

ASYNCHRONOUS FLUSH TO DISK

REPLICATION IS MASTER->SLAVE

MORE CORES, MORE MEMORY, MORE MACHINES

Page 32: Alternative Database Technology in the Cloud

MONGODB

BSON INTERFACE DOCUMENT DATABASE

FULL INDEX SUPPORT

REPLICATION & HIGH AVAILABLITY ACROSS WANS

AUTO-SHARDING FOR HORIZONTAL SCALE

GRIDFS TO STORE LARGE FILES

MAP/REDUCE BATCH MANIPULATION

MORE CORES, MORE MEMORY, MORE MACHINES

Sources: http://www.businessinsider.com/how-we-use-mongodb-2009-11 -- andhttp://blog.boxedice.com/2010/02/28/notes-from-a-production-mongodb-deployment/

Page 33: Alternative Database Technology in the Cloud

CASSANDRA

FULLY DISTRIBUTED

TRUE HORIZONTAL SCALEABILITY

REPLICATION–INCLUDING WIDE-AREA REPLICATION

PREDICTABLE, BLAZING WRITE PERFORMANCE

CONTROLLABLE READ/WRITE CONSISTENCY

MORE CORES, MORE MEMORY, MORE MACHINES

Page 34: Alternative Database Technology in the Cloud

DRIZZLE

RELEASE EARLY, RELEASE OFTEN–NO 2-YEAR CYCLES

UTF8-THE WEB IS “WORLDWIDE” AFTER ALL

STRONG SQL INTERFACES MEAN STABILITY & INNOVATION

MODULAR ARCHITECTURE ALLOWS EXTENSION…

…OR PERFORMANCE BY REMOVING WHAT YOU DON’T NEED

MORE CORES, MORE MEMORY, MORE MACHINES

Page 35: Alternative Database Technology in the Cloud

WHY OPEN MATTERS

LOCK-IN IS A REAL CONCERN IN THE CLOUD

OPEN SOURCE MAKES IT ACCESSIBLE TO YOU

TECHNOLOGY IS NOT A SUSTAINABLE, LONG-TERM ADVANTAGE

GAIN THE KNOWLEDGE OF A COMMUNITY

SHARE YOUR KNOWLEDGE WITH EVERYONE

TURNS COMPETITION INTO COOPERATION

Page 36: Alternative Database Technology in the Cloud

THERE IS NOSILVER BULLET

Page 37: Alternative Database Technology in the Cloud

MASSIVE SCALESPECIFIC PROBLEMS

Page 38: Alternative Database Technology in the Cloud

REQUIRE OPTIMIZEDSPECIFIC SOLUTIONS

Page 39: Alternative Database Technology in the Cloud

HOW SHOULDI CHOOSE?

Source: http://blog.mozilla.com/data/2010/05/18/riak-and-cassandra-and-hbase-oh-my/

Page 40: Alternative Database Technology in the Cloud

SCALABILITY

Page 41: Alternative Database Technology in the Cloud

ELASTICITY

Page 42: Alternative Database Technology in the Cloud

RELIABILITY

Page 43: Alternative Database Technology in the Cloud

STORAGE

Page 44: Alternative Database Technology in the Cloud

DATA ANALYSIS

Page 45: Alternative Database Technology in the Cloud

COST

Page 46: Alternative Database Technology in the Cloud

SECURITY

Page 47: Alternative Database Technology in the Cloud

EXTENSIBILITY

Page 48: Alternative Database Technology in the Cloud

DR / MIGRATION

Page 49: Alternative Database Technology in the Cloud

ANALYZE THEN DECIDE

Page 50: Alternative Database Technology in the Cloud

QUESTION & ANSWERS

Bret Piatt

Twitter: @bpiatt

Email: [email protected]

THANK YOU