• Like
  • Save
MongoDB and Node.js
Upcoming SlideShare
Loading in...5
×
 

MongoDB and Node.js

on

  • 2,219 views

HTML5與Node.js在台灣 聯合技術小聚 - Part 2

HTML5與Node.js在台灣 聯合技術小聚 - Part 2

Statistics

Views

Total Views
2,219
Views on SlideShare
2,217
Embed Views
2

Actions

Likes
2
Downloads
19
Comments
0

1 Embed 2

http://bitly.com 2

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

    MongoDB and Node.js MongoDB and Node.js Presentation Transcript

    • MongoDB and Node.jsxpsteven, about.me/xpsteven
    • Why Node.jsjavascript簡單好用瀏覽器戰爭讓Node.js越來越好
    • Why Node.js# of followers rails11037 node 10807 express 4236 (MVC-framework like Rubys Sinatra)5075 modules in npm
    • Why Node.jsMicrosoft iisnode加入Node.js開發團隊 MS考慮提供official MSSQL driver for Node.jsYahoo 明年釋出整合前後端的MVC:Yahoo MojitoLinkedIn 使用Node.js提供RESTful API給Mobile AppAmeba 20台Servers跑320個Node支撐70萬DAU Node.js+MongoDB
    • Why Node.jsCSC Studio 魔幻軍魂(iphone game app)映雲科技 VideoPK(videoin.cc)完全使用Node.js express.js as MVC ejs as View Engine mongoose as ODM 資料庫MongoDB
    • VideoPK經驗同時最高併發連線數 5000+單日最高PV 10000+壓測靜態首頁 1000+ rps壓測灌票(update) 800+ rpsPowered by AWS EC2 micro instance
    • Why MongoDB BigTable Cassandra HBase ---------------- Redis MongoDB MySQL MySQL Tyrant CouchDB Cluster Oracle
    • Why MongoDB高效能有商業支持(10gen最近荷包滿滿XD)有索引功能有完整的文件沒有JOIN功能沒有資料綱要支援巢狀結構
    • Why MongoDBnode-mysql 688mongoose 1402mongodb 1031node-postgres 229
    • 從MySQL到MongoDBdatabase => databasetable => collectionrow => documentSQL到Mongo的對應表(超實用)http://www.mongodb.org/display/DOCS/SQL+to+Mongo+Mapping+Chart
    • 限制與注意事項建議安裝於64位元作業系統 32位元mmap作多只能2GB一個document最大16MB 約可以存13萬個以字串儲存的UUID不要讓索引大小超過記憶體如果重啟不能 試著刪掉/var/lib/mongodb/mongod.lock
    • Demo