Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Mongodb lab

1,038 views

Published on

We prepared a small 30 min workshop for the Dutch Java User Group to introduce MongoDB basics. This slideshow contains the mongoDB concepts, which will be workout basic in labs . The labs could be found at: http://mongodb.info/labs/

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Mongodb lab

  1. 1. db.NLJUG.insert({ “presenters” : “Maikel Alderhout & Bas van Oudenaarde”, “type” : “JFALL”, “datum” : ISODate(31/10/2012) } )
  2. 2. NoSQL Hype• Not only ... of No SQL ‘not only’ relationele data opslag
  3. 3. Database evolution #1
  4. 4. Database evolution #2
  5. 5. Database evolution #3
  6. 6. De huidige trends hebben een behoorlijke impact in het traditionele database landschap Agile&Development& •  Itera&ve( •  Con&nuous( Data$Volume,$ Type$&$Use$ •  Trillions(of(records( •  100’s(of(millions(of( queries(per(second( •  Real6Time(Analy9cs( •  Unstructured(/(semi6 structured( New$Hardware$Architectures$ •  Commodity(servers( •  Cloud(Compu0ng( •  Horizontal(Scaling(
  7. 7. Hoezo Java problemen?• Schaalbaarheid 3-tier architecturen• ORM, mapping vanuit domain objecten. Lekker alles aan elkaar knopen• Caching, niet te veel naar de database• Alles in memory, dan maar?
  8. 8. NoSQL oplossingen Key-Value Column Document G Key-value store Document bv.Voldemort, Dynomite, Tokyo bv CouchDB, MongoDB, Riak ColumnFamily /Column Document BigTable clones Graph Graph databases bv Google BT, HBase, Hypertable, Neo4J, Sones, AllegroGraph Cassandra
  9. 9. MongoDB is a scalable, high-performance NoSQLdatabase. •  Open%source,%wri.en%in%C++% •  Full$featured$indexes,$query$ •  Document4oriented%Storage% language$$ –  Based%on%JSON%Documents% •  Replica6on$&$High$Availability$ –  Schema4less% •  Auto>sharding$
  10. 10. JSON DocumentPerson{name" : "Bas","group" : [ "Open Source", "mongoDB", "Big Data" ] }
  11. 11. Replication ShardingDurability
  12. 12. Replicatie read read/write Asynchronous Replication readAutomatic election of new Primary
  13. 13. Sharding
  14. 14. Sharding features• Automatic partitioning• Automatic Load-Balancing across shards• Range-based• Convert to sharded system with no downtime• Fully consistent• Application code unaware of data location• Zero code changes
  15. 15. Durability

×