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

Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Victor Rentea
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Victor Rentea
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
?#DUbAI#??##{{(☎️+971_581248768%)**%*]'#abortion pills for sale in dubai@
 

Último (20)

AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
WSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering DevelopersWSO2's API Vision: Unifying Control, Empowering Developers
WSO2's API Vision: Unifying Control, Empowering Developers
 
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
Modular Monolith - a Practical Alternative to Microservices @ Devoxx UK 2024
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
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...
 
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
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)Introduction to Multilingual Retrieval Augmented Generation (RAG)
Introduction to Multilingual Retrieval Augmented Generation (RAG)
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024Finding Java's Hidden Performance Traps @ DevoxxUK 2024
Finding Java's Hidden Performance Traps @ DevoxxUK 2024
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
+971581248768>> SAFE AND ORIGINAL ABORTION PILLS FOR SALE IN DUBAI AND ABUDHA...
 
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
Apidays New York 2024 - APIs in 2030: The Risk of Technological Sleepwalk by ...
 
AI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by AnitarajAI in Action: Real World Use Cases by Anitaraj
AI in Action: Real World Use Cases by Anitaraj
 
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUKSpring Boot vs Quarkus the ultimate battle - DevoxxUK
Spring Boot vs Quarkus the ultimate battle - DevoxxUK
 

HeavenORHell,MongoDB