mosc2012 - building high-performance web-application with php & mongodb

28
-- future web-technologies today -- http://r1.my Building High-Performance Web-Applications With PHP and MongoDB

Upload: r1dotmy

Post on 05-Dec-2014

2.546 views

Category:

Technology


2 download

DESCRIPTION

 

TRANSCRIPT

Page 1: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

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

CHAPTER 1:

A BRIEF HISTORY IN TIME

Page 3: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

A LONG TIME AGO IN A GALAXY, FAR-FAR AWAY

Page 4: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

1974

RELATIONAL DATABASES

1989

WORLD WIDE WEB

IMPORTANT DATES

Page 5: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

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

RUBY SLIPPERS (ON RAILS) IN 2004 - THE ERA OF WEB-APPS BEGIN

Page 7: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

CHAPTER 2:

WHERE DO PHP DEVELOPERS NOW STAND?

Page 8: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

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

FRAMEWORKS

THE MVC ERA

Page 10: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

THE DESIGN

THE BIG DATABASE

THE APPLICATION

High-Performance Applications

THE TRILOGY

Page 11: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

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

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

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

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

EXCELLENT GEOLOCATION SUPPORT Have you ever heard of Foursquare …?

Page 16: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

REPLICA-SETS AND SHARDING

Page 17: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

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

GRIDFS – MEDIA STORAGE & SERVING

Page 19: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

NO LANGUAGE BARRIERS ( ALSO KEEPS ALL LOGIC IN ONE PLACE )

Page 20: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

PERFORMANCE - VS - FUNCTIONALITY

Page 21: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

PERFORMANCE - VS - FUNCTIONALITY

Page 22: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

PERFORMANCE - VS - FUNCTIONALITY

Page 23: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

THERE IS NO SPOON !!! ( OR NEED TO LEAVE YOUR APP )

Page 24: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

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

CHAPTER 3:

THE FUTURE

Page 26: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

-- 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 27: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

http://mongobase.org/

Page 28: MOSC2012 - Building High-Performance Web-Application with PHP & MongoDB

-- Mark Smalley --

@m_smalley

LEARN MORE ABOUT

MongoDB

Kuala Lumpur MongoDB User-Group: http://facebook.com/groups/klmug/