Lean and mean MongoDB
Upcoming SlideShare
Loading in...5
×
 

Lean and mean MongoDB

on

  • 1,532 views

Why MongoDB is a good fit for startups.

Why MongoDB is a good fit for startups.

Statistics

Views

Total Views
1,532
Views on SlideShare
1,385
Embed Views
147

Actions

Likes
1
Downloads
6
Comments
0

3 Embeds 147

http://lanyrd.com 108
https://twitter.com 38
http://gazeta.yandex.ru 1

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

Lean and mean MongoDB Lean and mean MongoDB Presentation Transcript

  • Lean and mean MongoDB or why MongoDB is good for start ups
  • /whois olegp
  • /whois olegp● doing startups since 2000 – RIOT-E● tech DD for investors since 2008● Startup Sauna coach● new venture: StartHQ View slide
  • Web apps 101 View slide
  • Web apps 101● REST API centric design● One primary data store – Except blobs● No premature optimization – e.g. caching
  • The Contenders
  • Background Reading● “How FriendFeed uses MySQL to store schemaless data” – “mariadb dynamic columns”● “PostgreSQL as a schemaless database”
  • The Pros
  • The Pros● Simpler schema design – Fewer many to one relationships – Design is part of development, not separate● No DB setup step● No DB migrations *● No ORMs● JSON as query language
  • Hosting● Amazon RDS: from $18● Heroku Postgres: from $10● MongoHQ & MongoLab: from FREE
  • Database as a Service
  • Database as a Service● Web admin FTW – Saves you building your own● No SSL – But on AWS you cant sniff traffic● Expensive backups – But you can easily roll your own
  • Some Codereturn db.getCollection("apps").find({ nameLowerCase:{ $regex:utils.prettify(request.queryParams.term) }, verified:true}, { name:true, url:true}).sort({extractors.social.score:-1}) .limit(10).toArray().map(function(app) { return { label:app.name, value:app.url };});
  • Tools● 10gen MMS● Metrica● Nodetime
  • Getting Started
  • Getting Started● try.mongodb.org● “dailyjs lmaw”● olegp/notes & olegp/tokenize
  • Summary● Optimize for ease of development● Do design your schema● Do not prematurely optimize● Have fun!
  • Thanks! @olegpodsechinstarthq.com/apps/?q=mongodb