Upgrade to Pro — share decks privately, control downloads, hide ads and more …

MongoDB @ Johannesburg day 1

Norberto
October 08, 2013

MongoDB @ Johannesburg day 1

Norberto

October 08, 2013
Tweet

More Decks by Norberto

Other Decks in Technology

Transcript

  1. 5 To provide the best database for how we build

    and run apps today MongoDB Vision Build –  New and complex data –  Flexible –  New languages –  Faster development Run –  Big Data scalability –  Real-time –  Commodity hardware –  Cloud
  2. 6 4,000,000+ MongoDB Downloads 100,000+ Online Education Registrants 20,000+ MongoDB

    User Group Members 20,000+ MongoDB Days Attendees 15,000+ MongoDB Management Service (MMS) Users Global Community
  3. 7 Indeed.com Trends Top Job Trends 1. HTML 5 2. MongoDB 3. iOS

    4. Android 5. Mobile Apps 6. Puppet 7. Hadoop 8. jQuery 9. PaaS 10. Social Media Leading NoSQL Database LinkedIn Job Skills MongoDB Competitor 1 Competitor 2 Competitor 3 Competitor 4 Competitor 5 All Others Google Search MongoDB Competitor 1 Competitor 2 Competitor 3 Competitor 4 Jaspersoft Big Data Index Direct Real-Time Downloads MongoDB Competitor 1 Competitor 2 Competitor 3
  4. 8 Data Hub User Data Management Big Data Content Mgmt

    & Delivery Mobile & Social MongoDB Solutions
  5. 10 Relational Database Challenges Data Types •  Unstructured data • 

    Semi-structured data •  Polymorphic data Volume of Data •  Petabytes of data •  Trillions of records •  Millions of queries per second Agile Development •  Iterative •  Short development cycles •  New workloads New Architectures •  Horizontal scaling •  Commodity servers •  Cloud computing
  6. 11 RDBMS Agility MongoDB { _id : ObjectId("4c4ba5e5e8aabf3"), employee_name: "Dunham,

    Justin", department : "Marketing", title : "Product Manager, Web", report_up: "Neray, Graham", pay_band: “C", benefits : [ { type : "Health", plan : "PPO Plus" }, { type : "Dental", plan : "Standard" } ] }
  7. 12 MongoDB Performance* Top 5 Marketing Firm Government Agency Top

    5 Investment Bank Data Key/value 10+ fields, arrays, nested documents 20+ fields, arrays, nested documents Queries Key-based 1 – 100 docs/query 80/20 read/write Compound queries Range queries MapReduce 20/80 read/write Compound queries Range queries 50/50 read/write Servers ~250 ~50 ~40 Ops/sec 1,200,000 500,000 30,000 * These figures are provided as examples. Your application governs your performance.
  8. 13 MongoDB Features •  JSON Document Model with Dynamic Schemas

    •  Auto-Sharding for Horizontal Scalability •  Text Search •  Aggregation Framework and MapReduce •  Full, Flexible Index Support and Rich Queries •  Built-In Replication for High Availability •  Advanced Security •  Large Media Storage with GridFS
  9. 14 MongoDB and Enterprise IT Strategy Legacy Strategic Apps On-Premise

    SaaS, Mobile, Social Database Oracle MongoDB Offline Data Teradata Hadoop Compute Scale-Up Server Commodity HW / Cloud Storage SAN Local Storage / Cloud Network Routers and Switches Software-Defined Networks
  10. 15 MongoDB and Enterprise IT Stack EDW Hadoop Management &

    Monitoring Security & Auditing RDBMS CRM, ERP, Collaboration, Mobile, BI OS & Virtualization, Compute, Storage, Network RDBMS Applications Infrastructure Data Management Online Data Offline Data
  11. 18 Scalability Auto-Sharding •  Increase capacity as you go • 

    Commodity and cloud architectures •  Improved operational simplicity and cost visibility
  12. 19 High Availability •  Automated replication and failover •  Multi-data

    center support •  Improved operational simplicity (e.g., HW swaps) •  Data durability and consistency
  13. 22 Shell Command-line shell for interacting directly with database Shell

    and Drivers Drivers Drivers for most popular programming languages and frameworks > db.collection.insert({product:“MongoDB”, type:“Document Database”}) > > db.collection.findOne() { “_id” : ObjectId(“5106c1c2fc629bfe52792e86”), “product” : “MongoDB” “type” : “Document Database” } Java Python Perl Ruby Haskell JavaScript
  14. 23 MongoDB is full featured MongoDB Rich Queries •  Find

    Paul’s cars •  Find everybody in London with a car built between 1970 and 1980 Geospatial •  Find all of the car owners within 5km of Trafalgar Sq. Text Search •  Find all the cars described as having leather seats Aggregation •  Calculate the average value of Paul’s car collection Map Reduce •  What is the ownership pattern of colors by geography over time? (is purple trending up in China?) { ! first_name: ‘Paul’,! surname: ‘Miller’,! city: ‘London’,! location: [45.123,47.232],! cars: [ ! { model: ‘Bentley’,! year: 1973,! value: 100000, … },! { model: ‘Rolls Royce’,! year: 1965,! value: 330000, … }! }! }!
  15. 24 Document Data Model Relational MongoDB { ! first_name: ‘Paul’,!

    surname: ‘Miller’,! city: ‘London’,! location: [45.123,47.232],! cars: [ ! { model: ‘Bentley’,! year: 1973,! value: 100000, … },! { model: ‘Rolls Royce’,! year: 1965,! value: 330000, … }! }! }!
  16. 25 Document Model Benefits •  Agility and flexibility –  Data

    models can evolve easily –  Companies can adapt to changes quickly •  Intuitive, natural data representation –  Developers are more productive –  Many types of applications are a good fit •  Reduces the need for joins, disk seeks –  Programming is more simple –  Performance can be delivered at scale
  17. 27 And Makes Things Hard to Change New Table New

    Table New Column Name Pet Phone Email New Column 3 months later…
  18. 32 •  High Availability – Ensure application availability during many

    types of failures •  Disaster Recovery – Address the RTO and RPO goals for business continuity •  Maintenance – Perform upgrades and other maintenance operations with no application downtime Availability Considerations
  19. 33 Replica Sets •  Replica Set – two or more

    copies •  “Self-healing” shard •  Addresses many concerns: -  High Availability -  Disaster Recovery -  Maintenance
  20. 34 Replica Set Benefits Business Needs Replica Set Benefits High

    Availability Automated failover Disaster Recovery Hot backups offsite Maintenance Rolling upgrades Low Latency Locate data near users Workload Isolation Read from non-primary replicas Data Privacy Restrict data to physical location Data Consistency Tunable Consistency
  21. 35 Automatic Sharding •  Three types of sharding: hash-based, range-based,

    tag- aware •  Increase or decrease capacity as you go •  Automatic balancing
  22. 36 Query Routing •  Multiple query optimization models •  Each

    sharding option appropriate for different apps
  23. 41 Single Data Center •  Automated failover •  Tolerates server

    failures •  Tolerates rack failures •  Number of replicas defines failure tolerance Primary – A Primary – B Primary – C Secondary – A Secondary – A Secondary – B Secondary – B Secondary – C Secondary – C
  24. 42 Active/Standby Data Center •  Tolerates server and rack failure

    •  Standby data center Data Center - West Primary – A Primary – B Primary – C Secondary – A Secondary – B Secondary – C Data Center - East Secondary – A Secondary – B Secondary – C
  25. 43 Active/Active Data Center •  Tolerates server, rack, data center

    failures, network partitions Data Center - West Primary – A Primary – B Primary – C Secondary – A Secondary – B Secondary – C Data Center - East Secondary – A Secondary – B Secondary – C Secondary – B Secondary – C Secondary – A Data Center - Central Arbiter – A Arbiter – B Arbiter – C
  26. 44 Global Data Distribution Real-time Real-time Real-time Real-time Real-time Real-time

    Real-time Primary Secondary Secondary Secondary Secondary Secondary Secondary Secondary
  27. 46 •  Monitoring, with charts, dashboards and alerts on 100+

    metrics •  Backup and restore, with point- in-time recovery, support for sharded clusters MongoDB Management Service Cloud-based suite of services for managing MongoDB deployments •  MMS On-Prem included with MongoDB Enterprise (backup coming soon)
  28. 48 MongoDB Overview 300+ employees 600+ customers Offices in New

    York, Palo Alto, Washington DC, London, Dublin, Barcelona and Sydney Over $231 million in funding
  29. 49 MongoDB Products and Services Training Online and In-Person for

    Developers and Administrators MongoDB Management Service (MMS) Cloud-Based Suite of Services for Managing MongoDB Deployments Subscriptions MongoDB Enterprise, MMS (On-Prem), Professional Support, Commercial License Consulting Expert Resources for All Phases of MongoDB Implementations
  30. 50 Subscriptions Community Basic Standard Enterprise Edition MongoDB MongoDB MongoDB

    MongoDB Enterprise SLA N/A 4 hours 1 Hour 30 Minutes Support Community 9am – 9pm ET M – F 24x7x365 24x7x365 License AGPL AGPL Commercial Commercial
  31. 51 MongoDB Enterprise Enterprise build with value-added capabilities •  Advanced

    Security w/Kerberos •  On-Prem Management –  Visualization and alerts on 100+ system metrics –  Backup features coming soon –  On-premise version of MongoDB Monitoring Services (MMS) •  Enterprise Software Integration via SNMP •  Private, On-Demand MongoDB University Training •  Certified OS Support
  32. 52 MongoDB Distribution Model Channel Partners Cloud Partners SW/HW Partners

    Service Partners •  Directly Manage Named Accounts •  Help Partners with Co-Sell Activities •  Share Opportunities with Partners •  Re-Sell MongoDB to Customers •  Add Value by Providing Solutions and Services •  Help Go-To-Market Activities •  Acts as a Distribution Channel (via Marketplaces) •  Facilitate Adoption of MongoDB •  Co-Market 10gen’s Products (XaaS) •  Embed, Certify and Enhance MongoDB •  Co-Market and Co-Sell 10gen’s products •  Facilitate Adoption of MongoDB •  Build MongoDB Applications •  Adopt MongoDB as a Standard Development Platform •  Deliver Consulting and Training Services Direct Sales
  33. 53 •  10 of the Top Financial Services Institutions • 

    10 of the Top Electronics Companies •  10 of the Top Media and Entertainment Companies •  8 of the Top Retailers •  6 of the Top Telcos •  5 of the Top Technology Companies •  4 of the Top Healthcare Companies Fortune 500 & Global 500
  34. 55 •  Physical Presence •  Partner Network •  Local Training

    •  Support Community MongoDB Strategy in South Africa