Top Banner
ndows Azure Conference 2014 Windows Azure Conference 2014 David Makogon @Dmakogon [email protected] Shweta Gupta@ShwetasTweets [email protected] Polyglot Persistence: NoSQL + Azure!
31
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Windows Azure Conference 2014

Windows Azure Conference 2014

David Makogon @[email protected]

Shweta [email protected]@microsoft.com

Polyglot Persistence:NoSQL + Azure!

Page 2: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

The multi-database paradigm shift NoSQL database typesDemo time

Today’s agenda

Page 3: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Many decisions to makeQuery semantics DurabilityScalabilityEase of Azure integrationStrengths vs limitations

How to map your solution to a database?

Page 4: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Traditionally, we compromised…Referential Integrity and transactionsSchema flexibilityScaleReporting needsSkillsetsExisting DR/HA procedures3rd-party tools, ecosystem

Page 5: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Polyglot persistence: pick many!Hybrid / mixed approachUse case: Shopping siteCart: Key/valueOrders: RDBMSCatalog, Reviews: DocumentSuggestions: Graph

Combine SQL, NoSQL, NewSQLSQL Server 2014 (Hekaton)SAP HANAOracle 12c

Key/value

OrdersCart Catalog &

Reviews

Document

Suggestions

Graph

E-Commerce platform

RDBMS

Page 6: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Data in many flavors

Azure TablesSQL DB

SQL NoSQL

Page 7: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

NoSQLSchemalessConsistency, Availability, Partition Tolerance (CAP)High Availability through clusteringExpect failures

Typically Scale Out

(doesn’t enforce schema)

Page 8: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

NoSQL typesKey/valueDocumentGraphColumn

Page 9: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

NoSQL typesKey/value - Memcached, Azure Tables, DynamoDBKey-based lookupOpaque values

Page 10: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

NoSQL typesDocument – MongoDB, CouchDB, RavenDBOO data modelingSearchingSQL-like queries

Page 11: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

NoSQL typesColumn family – Cassandra, Big TableColumns collocated: Row=column aggregateSQL-like queries

Page 12: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

NoSQL typesGraph – Neo4j, InfiniteGraphNode + relationship traversal

Page 13: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Table storage<key/value>

storage

Page 14: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Azure tablesPartitioned storage with primary keyTriple-replicated, strong consistencyOptionally geo-redundantScalable: 200TB per namespaceSDKs: .NET, PHP, Python, Node, Java, Ruby

Page 15: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Demo: Azure Tables

Page 16: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

MongoDB<document>

Page 17: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

MongoDBDocument database – Binary JSON (BSON)Powerful query languageDocs, sub-docs, indexesMap/reduce, aggregationReplicas, shards, replicated shardsDozens of language SDKs

Page 18: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

MongoDBRuns on Linux or WindowsInstalls in AzureHosted by MongoLab, MongoHQ

Installation instructions:http://bit.ly/mongodbonazure

Page 19: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Demo: MongoDB

Page 20: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Neo4j<graph>

Page 21: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Neo4jGraph database: Nodes and relationshipsStandalone or HASDKs: Java, PHP, Python, Ruby, Node, .NETQuery languages: Cypher, Gremlin, REST

Page 22: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Neo4jInstallable on Windows and LinuxTutorials at neo4j.org

Neo4j+Azure docs and walkthroughs: http://bit.ly/neo4jonazure

Pre-built Azure image in VM Depot

Page 23: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Demo: Neo4j

Page 24: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Cassandra<column family>

Page 25: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

CassandraPartitioned storageSelectable consistency + availabilityMap/reduce on Cassandra File SystemOptimized for high write throughputSDKs: PHP, Python, Ruby, Node, .NETCassandra Query Language (CQL)

Page 26: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

NoSQL+AzureSelf-host DBaaS

Azure Tables

MongoDB

Cassandra

CouchDB

HBase

Neo4j

Redis Memcached

Page 27: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Remember this???What might this look like?…like… in a demo app?

Key/value

OrdersCart Catalog &

Reviews

Document

Suggestions

Graph

E-Commerce platform

RDBMS

Page 28: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Demo: Cloud NinjaShopping app

Page 29: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

More infoCN2P shopping demo app: https://cn2p.codeplex.com/Windows Azure: www.windowsazure.comWindows Azure Open Platform video series: http://bit.ly/openplatformAzure SDK’s: https://github.com/WindowsAzureAzure Training kit: http://bit.ly/azuretrainingkit

Page 30: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Windows Azure Conference 2014Windows Azure Conference 2014

Customer Interaction Zone (CiZ)

Any question on Anything Azure!

Book your slot now! @ the registration desk at the CiZ

Ask the Experts

GBRDay 15:15 PM

Page 31: Windows Azure Conference 2014 Polyglot Persistence: NoSQL + Azure!

Windows Azure Conference 2014Windows Azure Conference 2014

© 2014 Microsoft Corporation. All rights reserved. Microsoft, Windows, and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.