What’s New In Couchbase Server 4files.meetup.com/4289122/Whats New in Couchbase 4.5 .pdf ·...

Preview:

Citation preview

What’sNewInCouchbaseServer4.5

KarthikBabuSekar

Solu&onsArchitect,WWFieldOpera&ons@Couchbase-  Linkedin-h=ps://www.linkedin.com/in/karthikbabusekar

-  Twi=er-h=ps://twi=er.com/SKBhere

©2015CouchbaseInc. 2

Disclaimer

▪  CouchbaseServer4.5iss&llunderdevelopmentinthebetaperiod.Detailspresentedheremaychangebasedoncustomerfeedbackandotherfactorsbythe&methefinalversionoftheproductisreleased.

©2014CouchbaseInc.

HistoryofCouchbase

3

©2015CouchbaseInc. 4

CouchbaseDefined

▪ First NoSQL Database to have a multi-model NoSQL Server & NoSQL Mobile Database Solution

Managed Cache Key-Value Store Document Database

Embedded Database

Sync Management

©2015CouchbaseInc. 5

DevelopwithAgility

▪ WithCouchbaseServer,youcanDevelopApplica&onswithAgility.Here’s why:

Easier, Faster Development Flexible Data Modeling Powerful Querying

SQL Integration & Migration Big Data Integration Mobile / IoT

©2015CouchbaseInc. 6

OperateatAnyScale

▪ WithCouchbaseServer,youcandeploy,manage,andscaleappswithoutlimits.Here’s why:

Elastic Scalability Consistent High Performance

Always-on Availability

Multi-Data Center Deployment Simple, Powerful Administration

Enterprise Grade Security

©2015CouchbaseInc. 7

TheJourneythusFar

FocusedonTechnicalInnova&on

CouchbaseServer1.8

HighScaleKey/ValueDatabase

CouchbaseMobile1.0

OfflineDataAvailabilityAuto-synchroniza&on

CouchbaseServer3.0

Mission-Cri&calScale&PerformanceSimplifiedAdministra&onImprovedHA/DR&Security

CouchbaseServer4.0

SQL-likeQuerieswithNewSecondaryIndexingMul&-DimensionalScalingArchitecture

ImprovedSecurity

CouchbaseServer2.0DocumentExtensions

NewXDCR

CouchbaseServer2.1EnhancedSecurity

HA/DR

CouchbaseServer2.2ImprovedXDCR

AdvancedStorageEngine

©2015CouchbaseInc. 8

RecentAdvances–4.0

▪  CouchbaseServer4.0–  QueryandIndexing:

•  N1QLandNewGlobalSecondaryIndexing–  EnhancedClusterManagement

•  NewClusterZoneswithMul&-dimensionalScaling(MDS)

–  EnhancedIntegra&ons•  NewODBC/JDBCDriverswithconnec&vitytoETLandBITools•  NewNa&ve,SparkStreaming,SparkSQLandKaiaIntegra&on

–  EnhancedSecurity•  Audi&ngandEnterpriseLDAPIntegra&on

–  EnhancedHighAvailability•  FasterXDCRandFilteringXDCR

CouchbaseServerArchitectureOverview

©2015CouchbaseInc. 10

Service-BasedArchitecture

QueryandIndexServicestobuildricherappsUnifiedProgrammingInterfaceandAdministra&on

©2015CouchbaseInc. 11

Scale-uporScale-out

Mul&-DimensionalScaling–IndependentScalingandWorkloadIsola&on

What’sNewin4.5

©2015CouchbaseInc. 13

Couchbase4.5-KeyFeatures

• Integratedqueryworkbenchwithauto-schemainference• ExtendedJOINsyntax• Integratedfull-textsearchqueries[preview]

EASIER,MOREEFFICIENTQUERYING

• EfficientRead/Writeofdatastructureswithsub-documentAPI• Fasterread-your-own-write(RYOW)consistencywithN1QLqueries

SIMPLER,MOREADVANCEDDATAACCESS

• FasterIndexingwithMemory-opVmizedindexes• ArrayindexingforfasterN1QLqueriesonarraysinJSON• ImprovedindexwriteperformancewithForestDB’scircularwrites

FASTER,MOREPOWERFULINDEXING

• Role-based-accesscontrolforadministrators&X.509cer&ficatesforencryptedcommunica&on• Queryprofilingandmonitoring• Fasterbackupandrestore

BETTER,MORECOMPREHENSIVEADMINISTRATION

©2015CouchbaseInc. 14

SimplifiedDevelopment

©2015CouchbaseInc. 15

QueryWorkbenchwithAutoCompleteforN1QL

NewIntegratedN1QLQueryWorkbenchTool(QWT)

N1QLEditorwithAuto-Comple&on&QueryHistory

DataWindowwithVisualTable,TreeandJSONOutput

BucketAnalyzerwithSmartSchemaInference

©2015CouchbaseInc. 16

AutomaVcSchemaInferenceandAuto-CompleVon

▪  SmartSchemaInference:Automa&callyexaminessampleofdocumentsfrombucketsanddiscoversyourschema–  DocumentTypeDistribu&on–  ListofA=ributes–  DataTypesforA=ributes

BucketAnalyzerinWebConsole CBQCommandlineShell

©2015CouchbaseInc. 17

Auto-CompletewithQueryEditor

▪  Auto-Comple&oninN1QLeditorprovides–  MatchingN1QLKeywords–  FieldNamesfromInferredSchema–  Addbackquotesfornameswithhyphen

©2015CouchbaseInc. 18

NewFlexibleJOINswithN1QL

7XfasterquerywithflexibleJOIN

©2015CouchbaseInc. 19

Full-textSearchService[DeveloperPreview]

SearchtextdatainyourCouchbasedocuments▪  Powersearchboxesfordocumentcontents,websites,blogposts,Tweets,&cke&ngandcatalogapps

©2015CouchbaseInc. 20

Full-textSearchService[DeveloperPreview]

▪  Benefits–  Fullycapablesearchservice,integratedinCouchbase–  ImmediatelyfamiliartousersofElas&csearchandSolr–  Couchbaseadministra&onandmanagement

•  Automa&callypar&&oned,distributedandreplicated

–  Noexternalsearchdependencies•  Noneedtoprovisionhostsandinstallextrasosware•  Avoiddatatransfersetupandsyncmanagement

©2015CouchbaseInc. 21

Full-textSearchService[DeveloperPreview]

▪  FullRangeofTextQueriesSupported–  Basic

•  Match,MatchPhrase,Fuzzy,Prefix,Regexp,Wildcard,BooleanField

–  Compound•  QueryString,Boolean,Conjunc&on,Disjunc&on

–  Range•  DateRange,NumericRange

–  SpecialPurpose•  DocIDQuery,MatchAll,MatchNone,Phrase,Term

▪  Plusscoring(TF/IDF),boos&ng,fieldscoping,highligh&ng,andmore

©2015CouchbaseInc. 22

ImprovedPerformanceandScale

©2015CouchbaseInc. 23

EfficientSub-DocumentOperaVons

DocumentMutaVons:

•  AtomicOperateonindividualfields

•  Iden&calsyntaxbehaviortoregularbucketmethods(upsert,insert,get,replace)

•  SupportforJSONfragments.•  SupportforArrayswith

uniquenessguaranteesandordinalplacement(front/back)

©2015CouchbaseInc. 24

FasterKeyBasedOperaVons!

10-14XFasterDocumentRead&UpdateOpera&on

95% Get Latency 95%SetLatency

95%Get&SetLatencyMeasured(Msecs)onsingleINTfieldupdatewithsub-documentvsfull-documentcall

©2015CouchbaseInc. 25

GlobalSecondaryIndexes

NewStorageOpVonsforGlobalSecondaryIndex1.  Memory-Op&mizedGlobalSecondaryIndexes(MOI)

•  OpVmizedforMemory:smallmemoryfootprint,op&mizedforlowestlatencyqueries•  FasterIndexing:freshindexesunderheavymuta&onswithlockfreeindex

maintenance•  PredictablelowlatencywithQueryandKeyBasedOperaVons,eveninpresenceof

largenumberofindexes

2.  StandardGlobalSecondaryIndexes

•  OpVmizedforStorage+Memory:efficientspilltodiskwithForestDBasthestorageengine

•  AdvancedIOPerformance:newcircularwritesthatminimizecompac&onoverheadofappendonlywrites

©2015CouchbaseInc. 26

EfficientIOwithCircularWritesinStandardGSI

▪  ReducedDiskIORequirements–  Append-OnlyWriteswithfrequentfullcompac&on(Version4.1&Earlier)–  Circular-ReuseWriteswithreducedfullcompac&ons(Newin4.5:)

•  Reusedorphanedblocksintheindexfile•  Reducetheneedforfrequentfull-compac&onsoftheindexfile

IndexMuta&on

Append-OnlyWriteCircularWrite

FileforGlobalSecondaryIndexes

IndexMuta&on

IndexMuta&on

©2015CouchbaseInc. 27

ArrayIndexes--FasterSearchforNestedData

▪  EfficientlyIndexArraysCREATE INDEX … ON bucket(ARRAY i FOR i IN b END, a)

USING GSI;

▪  SampleQueries

SELECT * FROM default

WHERE ANY i IN b SATISFIES i<=1 END;

SELECT * FROM default X

UNNEST X.b Y

WHERE y<=1;

insertintodefault(key,value)values("1",

{"a":1,"b":[1,2],"c":{"ca":[1,2,3],"cb":4},"d":[

{"da":5,"db":6,“dc”:6.5},{"da":7,"db":8}],

"e":[{"ea":9,"eb":[10,11,12]},{"ea":13,"eb":[14,15,16]}],

"f":[[17,18],[19,20,21]]

});

©2015CouchbaseInc. 28

HigherAvailability

©2015CouchbaseInc. 29

EnterpriseBackupandRestore

>10xFasterBackups▪  Be=erDataProtec&onwithEnterpriseBackupRestore

–  Scaletolargerdatasets–  Fastbackupsandrestores–  Be=erConsistencyinbackupdata–  Resilienttofailures/TopologyChanges

©2015CouchbaseInc. 30

SimplifiedSecurityCompliance

©2015CouchbaseInc. 31

AdministraVveRoleBasedAccessControl

▪  Administra&veRBACenablessegrega&onofadmindu&es▪  Administra&veuserscanbemappedtoout-of-the-boxroles▪  Separa&onofsecurityadministra&onfromfulladministra&on▪  Rolespre-definedwithpermissionsforspecificresources

–  FullAdmin–  ClusterAdmin–  BucketAdmin–  ViewAdmin–  XDCRAdmin

FullAdmin

ClusterAdminBucketAdmin

ViewAdminXDCRAdmin

©2015CouchbaseInc. 32

X.509Client-ServerCerVficates▪  Bring-Your-OwnCer&ficateAuthority

–  SupportforcommerciallyandinternallyissuedX.509cer&ficates

▪  StronglyCAtrustedon-the-wireencryp&onforapplica&onsandbetweendata-centers(XDCR)

▪  Simplifiedcer&ficatemanagementandrota&on

©2015CouchbaseInc. 33

EasyDevOps

©2014CouchbaseInc.

Achievingscale&availabilitywithCouchbase

©2014Couchbase,Inc. 34

▪  Scaleclusteronlinewithgrowingapplica&onneeds,ondemand

▪  Buildalwaysavailableappswithreplica&on&failover

▪  Removeprogrammingcomplexitybypushingshardingtothedatabase

©2014CouchbaseInc.

AchieveGlobalDataDistribuVonandHA/DR

35

Built-inCrossDataCenterReplica&on(XDCR)

©2015CouchbaseInc. 36

CouchbaseintegrateswiththeBigDataecosystem

©2015CouchbaseInc. 37

InfrastructureasaService

CouchbasesupportsIaaSenvironments

▪  AvailableinAWSmarketplace

▪  BYOLorhourlypricing

▪  AvailableinAzuremarketplace

▪  BYOLorhourlypricing

▪  Marketplaceimageintheworks

▪  BYOLatthemoment▪  Hourlypricingsoon

AcoupleofotherIaaSproviderssupported

©2015CouchbaseInc. 38

Couchbase&Containers

▪  CouchbaseServeronDockerandOrchestra&onTechnologies▪  OfficialDockerSupportwithMacOS,Ubuntuiscoming

©2015CouchbaseInc. 39

PlatormasaService

CouchbaserunsonPaaSenvironments

CurrentFocus FuturePlan

Thankyou

Recommended