SlideShare a Scribd company logo
GridFS
Mitch Pirtle
CTO Sounday Music
MongoTorino, 2011-10-01
Who?
Who?
Joomla! founder, OSM founder
Who?
Joomla! founder, OSM founder
New Yorker, moved to Torino in May 2011
Who?
Joomla! founder, OSM founder
New Yorker, moved to Torino in May 2011
Skateboard, snowboard, bike, bass, guitar, drums, dad
Who?
Joomla! founder, OSM founder
New Yorker, moved to Torino in May 2011
Skateboard, snowboard, bike, bass, guitar, drums, dad
CTO at Sounday Music
Who?
Joomla! founder, OSM founder
New Yorker, moved to Torino in May 2011
Skateboard, snowboard, bike, bass, guitar, drums, dad
CTO at Sounday Music
Contributor to MongoDB, evangelist for Lithium PHP
Framework
Who?
Joomla! founder, OSM founder
New Yorker, moved to Torino in May 2011
Skateboard, snowboard, bike, bass, guitar, drums, dad
CTO at Sounday Music
Contributor to MongoDB, evangelist for Lithium PHP
Framework
Yes, I am learning Italian :-)
About this presentation
How the web began
How the web began
How the web began


Grey pages
How the web began


Grey pages
Black text
Added some stuff...
Added some stuff...
Added some stuff...


Images
Added some stuff...


Images
Colored backgrounds
Added some stuff...


Images
Colored backgrounds
Blinking text
More stuff...
More stuff...
More stuff...


 Javascript
More stuff...


 Javascript
 Flash
More stuff...


 Javascript
 Flash
 Streaming media
More stuff...


 Javascript
 Flash
 Streaming media
 Social media
Mess!
All the media types
 PNG            MPEG
 JPG            OGG
 GIF            MP3
 MOV / QT       ...and so on
 FLA
 FLV
 AVI
Where does all this go?
Approach 1: Filesystem
Approach 1: Filesystem


Store media locally on hard drive of webserver
Approach 1: Filesystem


Store media locally on hard drive of webserver
Fast access
Approach 1: Filesystem


Store media locally on hard drive of webserver
Fast access
Simple management
Approach 1: Filesystem


Store media locally on hard drive of webserver
Fast access
Simple management
Easy for code
Approach 2: SAN
Approach 2: SAN


Network access to files from N webservers
Approach 2: SAN


Network access to files from N webservers
Redundant
Approach 2: SAN


Network access to files from N webservers
Redundant
Scalable
Approach 2: SAN


Network access to files from N webservers
Redundant
Scalable
Hey, at least it’s not NFS
Approach 3: Database
Approach 3: Database


Easy access from application
Approach 3: Database


Easy access from application
Additional reporting possibilities
Why they all suck
Why they all suck


 Filesystems are a pain to keep in sync
 NAS are €xpen$ive
 Media storage was an afterthought for databases
 Databases are the hardest part to scale right?
New approach: GridFS
New approach: GridFS


Stores media in the database
New approach: GridFS


Stores media in the database
Access to sharding, replication
New approach: GridFS


Stores media in the database
Access to sharding, replication
Network access
New approach: GridFS


Stores media in the database
Access to sharding, replication
Network access
Documents == metadata!
GridFS Documentation
http://www.mongodb.org/display/DOCS/GridFS
It is a standard.
GridFS Specification
http://www.mongodb.org/display/DOCS/GridFS
+Specification
Why GridFS is better
Why GridFS: Access


Available to network
Support for many programming languages
Access parts of larger files, or stream entire file
Why GridFS: It’s MongoDB


MongoDB sharding == scale
Replica sets == redundancy
Slaves == reliability and performance
Why GridFS: Metadata
Why GridFS: Metadata


Separately stores metadata from actual file data
Why GridFS: Metadata


Separately stores metadata from actual file data
Schemaless, you can add attributes as you need
Why GridFS: Metadata


Separately stores metadata from actual file data
Schemaless, you can add attributes as you need
Opens new possibilities for reporting, access, analytics
Sho me da money!
(insert code)
Case study: Totsy
Case study: Sounday
Time for my favorite game
Stump the Nerd™
Thanks!
Email: mitch.pirtle@gmail.com
Twitter: @mitchitized
Web: http://about.me/mitchitized
Slides: slideshare.net/spacemonkeylabs

More Related Content

PPT
Podcasting
PDF
Group C
PPT
Ppt podcast
PPT
MongoDB gridfs
PDF
Grid FS
PPT
Mongo db技术交流
KEY
Serving Images with GridFS
PPTX
Getting Started with MongoDB and NodeJS
Podcasting
Group C
Ppt podcast
MongoDB gridfs
Grid FS
Mongo db技术交流
Serving Images with GridFS
Getting Started with MongoDB and NodeJS

Viewers also liked (20)

PPTX
MongoDB Operations for Developers
PPTX
MongoDB Internals
PPTX
PPTX
Get expertise with mongo db
PDF
Warum 'ne Datenbank, wenn wir Elasticsearch haben?
PDF
MongoDB- Crud Operation
PPTX
MongoDB on EC2 and EBS
PPTX
An Enterprise Architect's View of MongoDB
PDF
Suplemento La Ley Universidad Austral 27 junio 2014
PDF
199 Pens‚es Et Citations Sp‚ciales Pour Acqu‚rir Un Plus Grand Bien Etre A To...
PDF
Environmental Tracking: Global 800 2013 Carbon Rankings
PPTX
Alma de dios tarea 1-enfoques pedagogicos
PDF
Wig flexible working
PDF
Catálogo de novedades abril 2015. Biblioteca Provincial A Coruña
PDF
121224 st13 konzept
PDF
Catalogo decanter 2012
PPTX
ENSEÑANZAS DEPORTIVAS.pptx
PPT
Motherboard
PDF
PXIE-brochure-A4 smaller
PPTX
Eular grafo-y-digrafo
MongoDB Operations for Developers
MongoDB Internals
Get expertise with mongo db
Warum 'ne Datenbank, wenn wir Elasticsearch haben?
MongoDB- Crud Operation
MongoDB on EC2 and EBS
An Enterprise Architect's View of MongoDB
Suplemento La Ley Universidad Austral 27 junio 2014
199 Pens‚es Et Citations Sp‚ciales Pour Acqu‚rir Un Plus Grand Bien Etre A To...
Environmental Tracking: Global 800 2013 Carbon Rankings
Alma de dios tarea 1-enfoques pedagogicos
Wig flexible working
Catálogo de novedades abril 2015. Biblioteca Provincial A Coruña
121224 st13 konzept
Catalogo decanter 2012
ENSEÑANZAS DEPORTIVAS.pptx
Motherboard
PXIE-brochure-A4 smaller
Eular grafo-y-digrafo
Ad

Similar to Gridfs and MongoDB (20)

PPT
Running a Megasite on Microsoft Technologies
PDF
Data storage in cloud computing
PDF
Improving The Performance of Your Web App
PPTX
CMS Mongo DB
PPT
Knowledge share about scalable application architecture
PPTX
storage system, iscsi,file storage, NAS, SAS
PDF
Mongodb, Node.js and You: PART I
PPTX
Scaling your website
PPTX
Scalable Web Architecture and Distributed Systems
PDF
MongoDB, Development and You
PDF
Facebook architecture
PDF
Qcon 090408233824-phpapp01
PDF
Facebook的架构
PDF
Facebook architecture
PPTX
Big Data (NJ SQL Server User Group)
PPT
EQR Reporting: Rails + Amazon EC2
PDF
Scale Fail: How I Learned to Love the Downtime
PDF
Dealing with Enterprise Level Data
PPT
Key Challenges in Cloud Computing and How Yahoo! is Approaching Them
PPTX
Jaringan virtual komputasi awan bagian ke 2
Running a Megasite on Microsoft Technologies
Data storage in cloud computing
Improving The Performance of Your Web App
CMS Mongo DB
Knowledge share about scalable application architecture
storage system, iscsi,file storage, NAS, SAS
Mongodb, Node.js and You: PART I
Scaling your website
Scalable Web Architecture and Distributed Systems
MongoDB, Development and You
Facebook architecture
Qcon 090408233824-phpapp01
Facebook的架构
Facebook architecture
Big Data (NJ SQL Server User Group)
EQR Reporting: Rails + Amazon EC2
Scale Fail: How I Learned to Love the Downtime
Dealing with Enterprise Level Data
Key Challenges in Cloud Computing and How Yahoo! is Approaching Them
Jaringan virtual komputasi awan bagian ke 2
Ad

More from Mitch Pirtle (20)

PDF
Cloudy with a chance of scale
PDF
My life with MongoDB
PDF
PHP Cloud Deployment Toolkits
PDF
MongoDB, Node.js, and You: PART III
PDF
MongoDB, Node.js And You: PART II
PDF
MongoTorino 2013 Opening Keynote
PDF
Data as Documents: Overview and intro to MongoDB
PDF
Cloud conference - mongodb
KEY
Unified Content Model and Joomla!
KEY
Joomla - an Overview
KEY
Operational MongoDB
KEY
Joomla Extreme Performance
KEY
Joomla and MongoDB
PDF
Mongodb and Totsy: An e-commerce case study
KEY
Mongodb and Totsy - E-commerce Case Study
KEY
PHP, Lithium and MongoDB
KEY
Content Management Systems and MongoDB
KEY
MongoDB: Built for Speed
KEY
Content Mangement Systems and MongoDB
KEY
Joomla For Entrepreneurs
Cloudy with a chance of scale
My life with MongoDB
PHP Cloud Deployment Toolkits
MongoDB, Node.js, and You: PART III
MongoDB, Node.js And You: PART II
MongoTorino 2013 Opening Keynote
Data as Documents: Overview and intro to MongoDB
Cloud conference - mongodb
Unified Content Model and Joomla!
Joomla - an Overview
Operational MongoDB
Joomla Extreme Performance
Joomla and MongoDB
Mongodb and Totsy: An e-commerce case study
Mongodb and Totsy - E-commerce Case Study
PHP, Lithium and MongoDB
Content Management Systems and MongoDB
MongoDB: Built for Speed
Content Mangement Systems and MongoDB
Joomla For Entrepreneurs

Recently uploaded (20)

PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PPTX
sap open course for s4hana steps from ECC to s4
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PPTX
Cloud computing and distributed systems.
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPT
Teaching material agriculture food technology
PDF
Encapsulation theory and applications.pdf
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PDF
Approach and Philosophy of On baking technology
PDF
cuic standard and advanced reporting.pdf
DOCX
The AUB Centre for AI in Media Proposal.docx
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PPTX
Big Data Technologies - Introduction.pptx
PDF
Profit Center Accounting in SAP S/4HANA, S4F28 Col11
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
Diabetes mellitus diagnosis method based random forest with bat algorithm
Dropbox Q2 2025 Financial Results & Investor Presentation
sap open course for s4hana steps from ECC to s4
Building Integrated photovoltaic BIPV_UPV.pdf
“AI and Expert System Decision Support & Business Intelligence Systems”
Cloud computing and distributed systems.
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Teaching material agriculture food technology
Encapsulation theory and applications.pdf
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
Approach and Philosophy of On baking technology
cuic standard and advanced reporting.pdf
The AUB Centre for AI in Media Proposal.docx
Chapter 3 Spatial Domain Image Processing.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Spectral efficient network and resource selection model in 5G networks
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Big Data Technologies - Introduction.pptx
Profit Center Accounting in SAP S/4HANA, S4F28 Col11

Gridfs and MongoDB

Editor's Notes