Slide Seminar Open Source (CodeLabs UNIKOM Bandung)

1,176 views

Published on

Slide materi seminar opensource programming with node.js and mongoDB.
Slide for opensource programming seminar (with node.js and mongoDB)
in CodeLabs UNIKOM (Indonesian Computer University) Bandung

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

No Downloads
Views
Total views
1,176
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
17
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

Slide Seminar Open Source (CodeLabs UNIKOM Bandung)

  1. 1. a Simple Powerful Platform Hendri Karisma CodeLabs UNIKOM 2014
  2. 2. What is NodeJS? “Node.js is a platform built on Chrome’s JavaScript runtime for easily building fast, scalable network applications. Node.js uses an event-driven, non-blocking I/O model that makes it lightweight and efficient, perfect for dataintensive real-time applications that run across distributed devices.”
  3. 3. How Fast Against Python3, JavaScript V8 Engine has a median benchmark 13 times as fast with a roughly similar code size. 3 Against Ruby 1.9, the median benchmark is eight times as fast
  4. 4. Theory • Build Google’s V8 JavaScript engine • I/O Latency
  5. 5. I/O Latency
  6. 6. The Problem
  7. 7. Scale with Multi Thread • Overhead pada switching • Execution stask take up memory • Complicate concurrency
  8. 8. Scale with Process • High memmory Usage • Process scheduling
  9. 9. The Solution in Node.js
  10. 10. Tantangan • Asynchronizing I/O • Debugging • CPU-Intensive Tasks – Harus berhati-hati terhadap penggunaan thread untuk setiap tasks • Perkembangan versi platform sangat cepat
  11. 11. Keuntungan • • • Multiplatform Lightweight Deadlock free – single thread, simplifies concurency • Monoglot Programming – dari mulai back-end hingga front end dapat hanya menggunakan javascript • • • Popular Fast Community and NPM (8,465 packages) *2012-03-21 • • Small core Short Learning Curve
  12. 12. NPM • express • socket.io • mongoose • connect • async • jade
  13. 13. how to install node.js • sudo add-apt-repository ppa:chrislea/node.js • sudo apt-get update • sudo apt-get install nodejs
  14. 14. Demo • Hello World • SimpleChat Application
  15. 15. MongoDB (NoSql Database) • Not Only SQL (NoSQL) • Non Relastional Database Management System
  16. 16. Kenapa NoSQL (MongoDB) • • • • • Database non relasional Terdistribusi dan scale out (secara horisontal) Tanpa skema atau dengan skema yang longgar Sederhana dalam pemakaian (API) Kemudahan replikasi
  17. 17. Document-Oriented • Notion of a Document • Enkapsulasi dokumen dan enkoding dalam format standard (XML, JSON, YAML, PDF, dll) • Mirip relational DB, tetapi setiap ‘row’ tidak harus memiliki struktur yang sama.
  18. 18. Demo • Simple CRUD with express and MongoDB
  19. 19. Thanks.... Hendri Karisma http://about.me/hendriKarisma source code sample program demo dapat di download di https://github.com/situkangsayur?tab=repositories

×