Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

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

2,241 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
  • Be the first to comment

  • Be the first to like this

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. ››

×