MongoDB-casestudy

NoSQL-concepten

Miriam Antona

Software engineer

MongoDB - overzicht

MongoDB-logo

  • Populaire documentendatabase
  • BSON (Binary JSON)-formaat
NoSQL-concepten

MongoDB - functies

  • MongoDB Query Language (MQL)
db.users.find({ "address.zipcode" : "10245" })
  • Native drivers voor programmeertalen: C#, Java, Python, Scala, etc.
  • Indexen op elk veld
  • ACID-transacties (Atomicity, Consistency, Isolation, Durability)
  • Joins in queries
NoSQL-concepten

MongoDB - functies

  • Horizontaal schalen
    • native sharding
    • shards toevoegen/verplaatsen
  • Replicatie
    • 50 kopieën van onze data
NoSQL-concepten

MongoDB - producten

  • MongoDB Compass:
    • Gratis GUI
    • Verken schema, maak visuele queries...
  • MongoDB Atlas:
    • Cloudservice
    • AWS, Azure, Google Cloud
  • MongoDB Enterprise Advanced:
    • Draai MongoDB op je eigen infrastructuur
NoSQL-concepten

MongoDB - producten

  • MongoDB Atlas Lake:
    • Query en analyseer data
    • AWS S3 en MongoDB Atlas
    • MQL
  • MongoDB Charts:
    • Visualisaties van data
  • Realm Mobile Database:
    • Sla data lokaal op iOS of Android op
NoSQL-concepten

MongoDB - populaire toepassingen

  • Single view-apps: financiële diensten, overheid, hightech, retail...
  • Gaming: spelersprofielen, ranglijsten...
  • Catalogi: financiële diensten, overheid, hightech, retail...
  • Realtime analytics
  • Contentbeheer
  • Internet of Things
NoSQL-concepten

MongoDB - klanten

Logo's van enkele MongoDB-klanten

NoSQL-concepten

Shutterfly-casestudy - overzicht

  • Online fotoservice
    • Deel gepersonaliseerde foto-albums
    • Producten met afdrukken
  • Miljoenen klanten
  • Meer dan zes miljard afbeeldingen

Shutterfly-logo

NoSQL-concepten

Shutterfly-casestudy - probleem en oplossing

  • Explosieve datagroei
  • Prestatiegrenzen van Oracle
  • Lange ontwikkeltijd
  • Apps waren niet snel genoeg
  • Oracle werd te duur
  • Koos voor MongoDB
NoSQL-concepten

Shutterfly-casestudy - resultaten

  • Prestatieverbetering
    • Inserts 400 ms -> 2 ms
  • Horizontaal schalen
  • Flexibel schema -> snelle ontwikkeling
    • Tags, reacties, enz. zijn makkelijk te bouwen
  • Nieuwe querypatronen
  • Kostenreductie
NoSQL-concepten

Shutterfly-casestudy - resultaten

  • Prestatieverbetering
    • Inserts 400 ms -> 2 ms
  • Horizontaal schalen
  • Flexibel schema -> snelle ontwikkeling
    • Tags, reacties, enz. zijn makkelijk te bouwen
  • Nieuwe querypatronen
  • Kostenreductie
1 https://www.mongodb.com/who-uses-mongodb
NoSQL-concepten

Laten we oefenen!

NoSQL-concepten

Preparing Video For Download...