2012-09-17 - WDC12: Node.js & MongoDB

1,890 views
1,852 views

Published on

Zwei neue Technologien für die Cloud sind das JavaScript-Framework Node.js und die NoSQL-Datenbank MongoDB. Johannes Hoppe gibt einen Schnellstart in die beiden Open-Source-Systeme.

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

  • Be the first to like this

No Downloads
Views
Total views
1,890
On SlideShare
0
From Embeds
0
Number of Embeds
1,122
Actions
Shares
0
Downloads
14
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

2012-09-17 - WDC12: Node.js & MongoDB

  1. 1. Anno 2006
  2. 2. Live Demosolartournament.org
  3. 3. var result = db.query("select * from table");doSomething(result); // wait!doSomethingWithOutResult(); // blocked
  4. 4. db.query("select * from table", callback);doSomethingWithOutResult();
  5. 5. db.query("select * from table", function(result){ doSomething(result); //wait!});doSomethingWithOutResult();
  6. 6. var http = require(http);http.createServer(callback).listen();
  7. 7. var http = require(http);var callback = function (request, response) { response.writeHead(200, {Content-Type: text/plain}); response.end(Hello Worldn);};http.createServer(callback).listen();
  8. 8. http://bsonspec.org
  9. 9. { _id : ObjectId("5055e94ae0745519e458ac70"), Title : "MongoDB Testeintrag", Message : "Ein gruener Postit", Added : ISODate("2012-05-12T22:00:00Z"), Categories : [ { Name : "Normal Importance", Color : "green" }, { Name : "Private", Color : "gray" }]}
  10. 10. ››

×