MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB
-
Upload
r1dotmy -
Category
Technology
-
view
2.547 -
download
2
description
Transcript of MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB
![Page 1: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/1.jpg)
-- future web-technologies today --
http://r1.my
Building High-Performance Web-Applications
With PHP and MongoDB
![Page 2: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/2.jpg)
CHAPTER 1:
A BRIEF HISTORY IN TIME
![Page 3: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/3.jpg)
A LONG TIME AGO IN A GALAXY, FAR-FAR AWAY
![Page 4: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/4.jpg)
1974
RELATIONAL DATABASES
1989
WORLD WIDE WEB
IMPORTANT DATES
![Page 5: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/5.jpg)
WordPress
Publishing Platform Vs CMS
Web Applications Vs Other Languages
From Blogs, to CMS, to Web-Applications SO STARTS A GENERATION OF SELF-TAUGHT DEVELOPERS
![Page 6: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/6.jpg)
RUBY SLIPPERS (ON RAILS) IN 2004 - THE ERA OF WEB-APPS BEGIN
![Page 7: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/7.jpg)
CHAPTER 2:
WHERE DO PHP DEVELOPERS NOW STAND?
![Page 8: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/8.jpg)
ALTERNATIVES
SUITABLE FOR A SELF-TAUGHT GENERATION
- HOWEVER -
WE’RE HERE TO TALK ABOUT PHP
![Page 9: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/9.jpg)
FRAMEWORKS
THE MVC ERA
![Page 10: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/10.jpg)
THE DESIGN
THE BIG DATABASE
THE APPLICATION
High-Performance Applications
THE TRILOGY
![Page 11: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/11.jpg)
DESIGNING FOR PERFORMANCE
MOBILE FIRST DEVELOPMENT
( FOCUS ON FEATURES – ONLY LOAD WHAT’S NEEDED )
OPTIMISTIC ON-SCREEN ACTIONS
( SHOW LIKES AND COMMENTS ON SCREEN IMMEDIATELY )
PREEMPTIVE ACTIONS
( UPLOAD IMAGES WHILST TAGGING, PRE-FETCH TABS, ETC )
![Page 12: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/12.jpg)
DATA AT THE APPLICATION LEVEL
“In 2012, NoSQL document stores like MongoDB received more than 70 percent of total big-data tool demand. MongoDB from 10gen remains the top performer in this group.”
-- CNET
MongoDB Clients:
How MTV use mongoDB as a CMS - http://www.10gen.com/presentations/mongonyc-2011/how-mtv-networks-leverages-mongodb-for-cms
![Page 13: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/13.jpg)
MongoDB Adoption
http://blogs.the451group.com/information_management/2012/03/27/update-on-the-relative-popularity-of-nosql-database-skills/
![Page 14: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/14.jpg)
MongoDB Traction
http://blogs.the451group.com/information_management/2012/05/30/a-different-perspective-on-nosql-vendor-traction/
![Page 15: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/15.jpg)
EXCELLENT GEOLOCATION SUPPORT Have you ever heard of Foursquare …?
![Page 16: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/16.jpg)
REPLICA-SETS AND SHARDING
![Page 17: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/17.jpg)
IT’S LIGHTENING FAST !!! Some say 6,000 times faster than MySQL – http://lauli.ma/geo1
![Page 18: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/18.jpg)
GRIDFS – MEDIA STORAGE & SERVING
![Page 19: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/19.jpg)
NO LANGUAGE BARRIERS ( ALSO KEEPS ALL LOGIC IN ONE PLACE )
![Page 20: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/20.jpg)
PERFORMANCE - VS - FUNCTIONALITY
![Page 21: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/21.jpg)
PERFORMANCE - VS - FUNCTIONALITY
![Page 22: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/22.jpg)
PERFORMANCE - VS - FUNCTIONALITY
![Page 23: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/23.jpg)
THERE IS NO SPOON !!! ( OR NEED TO LEAVE YOUR APP )
![Page 24: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/24.jpg)
APPLICATION ARCHITECTURE
REMOVE LEGACY RELIANCE
( OLDER VERSIONS OF PHP ARE USELESS TODAY )
OBJECT ORIENTATED PROGRAMMING
( EASIER TO MAINTAIN - OBJECTS CAN BE CACHED )
ONLY INCLUDE WHAT IS NECESSARY
( AUTO-LOADING AND INCLUSION OF CLASSES )
![Page 25: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/25.jpg)
CHAPTER 3:
THE FUTURE
![Page 26: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/26.jpg)
-- R1 DOT MY SDN BHD --
MongoPress MongoMail MongoKong High-Performance CMS
http://mongopress.org
Email as a Platform
http://mongomail.org
HTML5 Social-Gaming
http://mongokong.com
POWERED BY
![Page 28: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB](https://reader034.fdocuments.net/reader034/viewer/2022042613/54899bdeb47959050d8b5a32/html5/thumbnails/28.jpg)
-- Mark Smalley --
@m_smalley
LEARN MORE ABOUT
MongoDB
Kuala Lumpur MongoDB User-Group: http://facebook.com/groups/klmug/