O slideshow foi denunciado.
Utilizamos seu perfil e dados de atividades no LinkedIn para personalizar e exibir anúncios mais relevantes. Altere suas preferências de anúncios quando desejar.

Mongodb @ vrt

312 visualizações

Publicada em

How mongodb is used at VRT.

Publicada em: Software
  • Login to see the comments

Mongodb @ vrt

  1. 1. 1 MongoDB @ VRT
  2. 2. 2 Content ▪ Status ▪ Technology Stack ▪ MongoDB Technology Stack ▪ How we Use MongoDB
  3. 3. 3 m.redactie.be ▪ Yes, we are Live ▪ Please check the website later, not now ;-)
  4. 4. 4 Technology Stack ▪ AngularJS ▪ Spring MVC / REST ▪ MongoDB
  5. 5. 5 MongoDB: Technology Stack ▪ MongoDB version 2.4.9 - 2.6 is going to be investigated after the elections 25/05 ▪ RoboMongo (http://robomongo.org/) and the mongo-shell are used as view on the DB. - Downside of RoboMongo : "copy JSON" produces invalid JSON => ISOdate and ObjectID - Change is underway but RoboMongo is written in C++ so can't help, feel free to do so - Will check for alternatives later, anyone already experience with others?
  6. 6. 6 How We Use It ▪ JavaDriver 2.12 ▪ No ORM, hardcore java FTW ▪ BasicDbObject and QueryBuilder, latter provides a fluent api (add example) Application Side
  7. 7. 77 How we use it
  8. 8. 8 How We Use It ▪ NoSQL Unit https://github.com/lordofthejars/nosql-unit/ ▪ UsingDataSet and @ShouldMatchDataSet uses JSON files to insert data and check data ▪ Created custom comparison strategy for more fine grained control of what and how to check the resulting data se Integration Testing
  9. 9. 9 How We Use It ▪ Replica set : - 1 primary - 4 secondaries - Read-preference : secondary preferred - Eventual consistency is ok for our application ▪ No sharding (yet?) DB Side
  10. 10. 10 How We Use It ▪ All queries are indexed, dramatical increase of performance - not covered queries, to much data, sometimes big articles - if data-set fits in RAM, full-covered query has small to no performance gain - indexes created based on profiling (system.profile) and query.explain. Use it, the knowledge you get from is extremely useful. DB Side
  11. 11. 1111 Questions ?

×