内容简介
如果不用考虑可伸缩性,想象一下你能做些什么?在这本实践指南中,你将会了解到Cassandra数据库管理系统是如何在为多个数据中心提供高可用服务的同时处理上百TB的数据。扩充后的第二版已经更新到了Cassandra3.0,书中给出了各种技术细节以及实例,当你将Cassandra投入实际生产环境时,这些内容都是必不可少的。
作者JeffCarpenter和EbenHewitt阐述了Cassandra非关系型设计的优势,着重介绍了其数据模型。
《Cassandra**指南(第2版影印版)》向开发者、DBA、正在寻找数据库的可扩展性解决方案的应用架构师展示了Cassandra的速度和灵活性。作者简介
JeffCarpenter,精品国际酒店集团(ChoiceHotelsInternational)的一名系统架构师,在服务业和国防工业有着20年的从业经验。他的兴趣包括SOA/微服务、大规模系统架构设计以及数据架构。
EbenHewitt是精品国际酒店集团(世界大酒店之一)的首席技术官。
他还是好几《Cassandra权威指南(第2版 影印版)》籍的作者,题材涉及系统架构、分布式系统以及编程。目录
Foreword
Foreword
Preface
1.BeyondRelationalDatabases
What'sWrongwithRelationalDatabases?
AQuickReviewofRelationalDatabases
RDBMSs:TheAwesomeandtheNot-So-Much
WebScale
TheRiseofNoSQL
Summary
2.IntroducingCassandra
TheCassandraElevatorPitch
Cassandrain50WordsorLess
DistributedandDecentralized
ElasticScalability
HighAvailabilityandFaultTolerance
TuneableConsistency
Brewer'sCAPTheorem
Row-Oriented
HighPerformance
WhereDidCassandraComeFrom?
ReleaseHistory
IsCassandraaGoodFitforMyProject?
LargeDeployments
LotsofWrites,Statistics,andAnalysis
GeographicalDistribution
EvolvingApplications
GettingInvolved
Summary
3.InstallingCassandra
InstallingtheApacheDistribution
ExtractingtheDownload
What'sInThere?
BuildingfromSource
AdditionalBuildTargets
RunningCassandra
OnWindows
OnLinux
StartingtheServer
StoppingCassandra
OtherCassandraDistributioaas
RunningtheCQLShell
BasiccqlshCommands
cqlshHelp
DescribingtheEnvironmentincqlsh
CreatingaKeyspaceandTableincqlsh
WritingandReadingDataincqlsh
Summary
4.TheCassandraQueryLanguage
TheRelationalDataModel
Cassandra'sDataModel
Clusters
Keyspaces
Tables
Columns
CQLTypes
NumericDataTypes
TextualDataTypes
TimeandIdentityDataTypes
OtherSimpleDataTypes
Collections
User-DefinedTypes
SecondaryIndexes
Summary
……前言/序言
Cassandrawasopen-sourcedbyFacebookinJuly2008.ThisoriginalversionofCassandrawaswrittenprimarilybyanex-employeefromAmazonandonefromMicrosoft.ItwasstronglyinfluenceydbyDynamo,Amazon'spioneeringdistributedkey/valuedatabase.CassandraimplementsaDynamo-stylereplicationmodelwithnosinglepointoffailure,butaddsamorepowerful"columnfamily"datamodel.
IbecameinvolvedinDecemberofthatyear,whenRackspaceaskedmetobuildthemascalabledatabase.Thiswasgoodtiming,becausealloftoday'simportantopensourcescalabledatabaseswereavailableforevaluation,Despiteinitiallyhavingonlyasinglemajorusecase,Cassandra'sunderlyingarchitecturewasthestrongest,andI
directedmyeffortstowardimprovingthecodeandbuildingacommunity.
CassandrawasacceptedintotheApacheIncubator,andbythetimeitgraduatedinMarch2010,ithadbecomeatrueopensourcesuccessstory,withcommittersfromRackspace,Digg,Twitter,andothercompaniesthatwouldn'thavewrittentheirown
databasefromscratch,buttogetherbuiltsomethingimportant.
Today'sCassandraismuchmorethantheearlysystemthatpowered(andstillpowers)Facebook'sinboxsearch;ithasbecome"thehands-downwinnerfortransaction
processingperformance:'toquoteTonyBain,withadeservedreputationforreliabilityandperformanceatscale.
AsCassandramaturedandbeganattractingmoremainstreamusers,itbecameclearthattherewasaneedforcommeraalsupport;thus,MattPfeilandIcofoundedRiptanoinApril2010.HelpingdriveCassandraadoptionhasbeenveryrewarding,espeaallyseeingtheusesthatdon'tgetdiscussedinpublic.
Anotherneedhasbeenabooklikethisone.Likemanyopensourceprojects,Cassandra'sdocumentationhashistoricallybeenweak.Andevenwhenthedocumentation
ultimatelyimproves,abook-lengthtreatmentlikethiswillremainuseful.