SlideShare uma empresa Scribd logo
1 de 59
Heaven or Hell


                                @kenzouyeh
                            kenzouyeh@gmail.com



Wednesday, December 21,
About Me


                            Kenzou Yeh
                          Co-Founder @Lingtelli, Inc. & AnswerMe, Inc.
                              Consultant @Fliptop, Inc. & Hiiir, Inc.




Wednesday, December 21,
Agenda

       It’s all about MongoDB:


                          bright side
                               &
                           dark side

Wednesday, December 21,
NoSQL?




Wednesday, December 21,
Wednesday, December 21,
Introduction


                                      MongoDB

                                Database     Database

                          Collections Collections Collections




Wednesday, December 21,
Bson
                  Document-Oriented
                            with
                          Json-Style

Wednesday, December 21,
which means...




Wednesday, December 21,
It’s AWESOME




Wednesday, December 21,
and Json-Reference Support




Wednesday, December 21,
collection “company”: {
                             “_id”: ObjectId(“tasdfbhxnkj19”),
                             “name”: “answerme”,
                             “founder”: DBRef(“person”, “ijqywhxnkj19j4”)
                          }

                          collection “person”: {
                             “_id”: ObjectId(“ijqywhxnkj19j4”),
                             “name”: “Kenzou Yeh”,
                             “company”: DBRef(“company”, “tasdfbhxnkj19”)
                          }




Wednesday, December 21,
Join??



Wednesday, December 21,
don’t be silly...



Wednesday, December 21,
Indexing Support

                                    OS: Is that a feature!!??

Wednesday, December 21,
efficient and easy to use




Wednesday, December 21,
B-tree indexing
                                    &
                          compound index support




Wednesday, December 21,
eat a lot of memory




Wednesday, December 21,
Replication



Wednesday, December 21,
master/slave & replica set




Wednesday, December 21,
replica set works with


                          OpLog

Wednesday, December 21,
Capped Collections




Wednesday, December 21,
and


                          Voting
       with primary, secondary, arbiter(node type) and priority




Wednesday, December 21,
Auto-Sharding



Wednesday, December 21,
sharding environment




Wednesday, December 21,
balancing with chunks




Wednesday, December 21,
please select your sharding key


                               Wisely

Wednesday, December 21,
SQL-like
                     Rich Query Interface



Wednesday, December 21,
find, sort, skip, limit, operators including $in, $exists, $gte...




Wednesday, December 21,
just like CouchDB
                     Map/Reduce Support



Wednesday, December 21,
Sample Schema



                             Mapper



                            Reducer




Wednesday, December 21,
It’s more like a toy, please don’t easily use it on production




Wednesday, December 21,
See! It’s wonderful with all these
                 features, but..



Wednesday, December 21,
“Come to the dark side”
                                           - Darth Vader


Wednesday, December 21,
Before that...




Wednesday, December 21,
CAP Theorem




Wednesday, December 21,
and MongoDB?




Wednesday, December 21,
Availability       Consistency



Wednesday, December 21,
How?




Wednesday, December 21,
Global Write Lock



Wednesday, December 21,
Issues
Wednesday, December 21,
without concurrent write...




Wednesday, December 21,
lose performance




Wednesday, December 21,
and frequently update?




Wednesday, December 21,
MongoDB crashed
                             at any day, any hour and unpredictable




Wednesday, December 21,
under high load?




Wednesday, December 21,
sharding & replication set

                          doesn’t work correctly


Wednesday, December 21,
even more..




Wednesday, December 21,
without any error logs



Wednesday, December 21,
one more thing




Wednesday, December 21,
data might be lost!!




Wednesday, December 21,
Wednesday, December 21,
conclusion




Wednesday, December 21,
just like all NoSQL database




Wednesday, December 21,
depend on how you use it




Wednesday, December 21,
another mystery




Wednesday, December 21,
Facebook is still using MySQL




Wednesday, December 21,
Come on, you’re not facebook!




Wednesday, December 21,
Fliptop is   RECRUITING!!



Wednesday, December 21,
@kenzouyeh

                          kenzouyeh@gmail.com




Wednesday, December 21,

Mais conteúdo relacionado

Semelhante a HeavenORHell,MongoDB

Design for change
Design for changeDesign for change
Design for change
UX Booth
 
HTW2011: Jon Bradford - The perfect team: it's a patchwork quilt
HTW2011: Jon Bradford - The perfect team: it's a patchwork quiltHTW2011: Jon Bradford - The perfect team: it's a patchwork quilt
HTW2011: Jon Bradford - The perfect team: it's a patchwork quilt
How to Web
 
A Morning with MongoDB Barcelona: Introduction
A Morning with MongoDB Barcelona: IntroductionA Morning with MongoDB Barcelona: Introduction
A Morning with MongoDB Barcelona: Introduction
MongoDB
 

Semelhante a HeavenORHell,MongoDB (8)

A Morning with MongoDB Barcelona: MongoDB Basic Concepts
A Morning with MongoDB Barcelona: MongoDB Basic ConceptsA Morning with MongoDB Barcelona: MongoDB Basic Concepts
A Morning with MongoDB Barcelona: MongoDB Basic Concepts
 
Things I hate to do as a designer but do anyway
Things I hate to do as a designer but do anywayThings I hate to do as a designer but do anyway
Things I hate to do as a designer but do anyway
 
Design for change
Design for changeDesign for change
Design for change
 
HTW2011: Jon Bradford - The perfect team: it's a patchwork quilt
HTW2011: Jon Bradford - The perfect team: it's a patchwork quiltHTW2011: Jon Bradford - The perfect team: it's a patchwork quilt
HTW2011: Jon Bradford - The perfect team: it's a patchwork quilt
 
A Morning with MongoDB Barcelona: Introduction
A Morning with MongoDB Barcelona: IntroductionA Morning with MongoDB Barcelona: Introduction
A Morning with MongoDB Barcelona: Introduction
 
Mominis: Making it to the 1%
Mominis: Making it to the 1%Mominis: Making it to the 1%
Mominis: Making it to the 1%
 
living drupal
living drupalliving drupal
living drupal
 
Webinar: MongoDB on the JVM
Webinar: MongoDB on the JVMWebinar: MongoDB on the JVM
Webinar: MongoDB on the JVM
 

Último

Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
panagenda
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Safe Software
 

Último (20)

Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
Boost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdfBoost Fertility New Invention Ups Success Rates.pdf
Boost Fertility New Invention Ups Success Rates.pdf
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Why Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire businessWhy Teams call analytics are critical to your entire business
Why Teams call analytics are critical to your entire business
 
Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...Apidays New York 2024 - The value of a flexible API Management solution for O...
Apidays New York 2024 - The value of a flexible API Management solution for O...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
ICT role in 21st century education and its challenges
ICT role in 21st century education and its challengesICT role in 21st century education and its challenges
ICT role in 21st century education and its challenges
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers:  A Deep Dive into Serverless Spatial Data and FMECloud Frontiers:  A Deep Dive into Serverless Spatial Data and FME
Cloud Frontiers: A Deep Dive into Serverless Spatial Data and FME
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost SavingRepurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
Repurposing LNG terminals for Hydrogen Ammonia: Feasibility and Cost Saving
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 

HeavenORHell,MongoDB