devcon summit 2014 #developersuniteph: the "what" and "why" of nosql by matias...
TRANSCRIPT
![Page 2: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/2.jpg)
Who Am I?
• Originally from Buenos Aires, Argentina
• Solutions Architect @ MongoDB based in
Singapore
• Software Engineer, most of my experience
in web environments
• In my toolbox I have Java, Python and
Node.js
![Page 3: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/3.jpg)
Let me tell you a story…
• Beginning of 2011
• Tier-1 hardware manufacturer wanted to
build a social aggregator backend
• Supported platforms: Twitter, Facebook
and blogs (RSS/Atom)
• We were a MySql shop
![Page 4: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/4.jpg)
That moment!
Based on estimations:
- # of users
- dataset size
- write throughput
…we had some doubts
![Page 5: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/5.jpg)
The Expert
![Page 6: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/6.jpg)
NoSQL
![Page 7: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/7.jpg)
Not OnlySQL
![Page 8: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/8.jpg)
Why do we need to look
for new databases?
![Page 9: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/9.jpg)
![Page 10: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/10.jpg)
First:Requirements
![Page 11: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/11.jpg)
Some facts of our age
• 3M of emails sent per second
• 20 hs of video uploaded to YouTube p/min
• 75 products ordered on Amazon p/sec
• 100K new tweets per minute
![Page 12: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/12.jpg)
Structured Data
![Page 13: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/13.jpg)
Structured DataUnstructured Data
![Page 14: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/14.jpg)
![Page 15: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/15.jpg)
SAY BIG DATA
ONE MORE TIME
![Page 16: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/16.jpg)
![Page 17: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/17.jpg)
Second:New Hardware
![Page 18: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/18.jpg)
![Page 19: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/19.jpg)
![Page 20: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/20.jpg)
.. and not so long time ago
![Page 21: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/21.jpg)
Hardware nowadays
HTTP POST https://ec2.amazonaws.com/?Action=StartInstances &InstanceId.1=i-10a64379 &AUTHPARAMS
![Page 22: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/22.jpg)
![Page 23: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/23.jpg)
![Page 24: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/24.jpg)
NoSql Families
• Key-value stores
• Document databases
• BigTable
• Search engines
![Page 25: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/25.jpg)
Key-value stores
• Access only by primary key
• Implementations are mainly in memory
• Insanely fast
• Value is "something" like a BLOB
![Page 26: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/26.jpg)
Document databases
• General purpose data storage
• Dynamic schema / unstructured data
• Flexible query & indexing capabilities
• Consistent writes
• Aggregation capabilities
![Page 27: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/27.jpg)
BigTable
• Multidimensional sorted maps
• Data stored across a ring of nodes (P2P)
• Eventually consistent based on quorum
• Append only storage
• Fast when writing, not so fast when
reading.
![Page 28: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/28.jpg)
Search engines
• Not used as primary storage
• Full-text search capabilities
• Faceted search
• Lightweight integration with REST APIs
![Page 29: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/29.jpg)
![Page 30: DevCon Summit 2014 #DevelopersUnitePH: The "What" and "Why" of NoSQL by Matias Cascallares, MongoDB](https://reader033.vdocuments.us/reader033/viewer/2022060205/55a0a2651a28abe12f8b4840/html5/thumbnails/30.jpg)
Thanks!