Mongo reporting

911 views

Published on

Published in: Technology
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
911
On SlideShare
0
From Embeds
0
Number of Embeds
37
Actions
Shares
0
Downloads
12
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Mongo reporting

  1. 1. @akhilkodali
  2. 2. dev @ Lexity LabsAdvertising made simple
  3. 3. Sharing practical experiences on reporting
  4. 4. Balanced View
  5. 5. Why MongoDBAgile friendlyDocument orientedTransactions not neededNo specialist DBAs(couldnt afford one)Devs not very good with traditional sql anyway
  6. 6. What do I think about MongoDBMysql beats MongoDB hands down in terms of featuresIts the best NoSql out there in terms of usability + featuresIts essentially a key value store with features in drivers instead of the DB itself This allows for easy app scaling
  7. 7. Strength of MongoDB is the mapper Sadly RoR(ActiveRecord) guys seem to a well about it
  8. 8. Constraints?OpenSource available but not robust enoughCouldnt rely(afford) on reporting specialistsDevs had to handle the reporting
  9. 9. Couldnt rely(afford) reporting specialistsThe requirements evolved every dayReporting had to keep up with it
  10. 10. Devs had to handle reportingMap Reduce...painful...I have it...love the sqlLike the comfort of application layerMongo – Key, Value store Driver did the rest at app layerRealTime reportingReporting no longer a disjoint
  11. 11. RealTime ReportingMap Reduce is not an option
  12. 12. RealTime reportingSpecific Documents for tracking Update the documents in backgroundAlready had queue routing and processing framework
  13. 13. User Session SessionId Start Time End Time
  14. 14. User AggregatePer Day UserId Date Total Session Duration Average Session Total SessionPer Week...Per Month...
  15. 15. HowData Updates are atomicOne query (schema less)REST based reportingJquery plugins / HTML5 for display Reports felt more responsive and lighterSmaller front end code base allowed for faster iterations
  16. 16. Scenario1000s of writes per minuteLasts for a few hours a dayRealTime monitoring of the processing
  17. 17. Questions?

×