Your SlideShare is downloading. ×
0
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Scalability In PHP
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×
Saving this for later? Get the SlideShare app to save on your phone or tablet. Read anywhere, anytime – even offline.
Text the download link to your phone
Standard text messaging rates apply

Scalability In PHP

12,217

Published on

Optimizing code, opcode caching, and building PHP apps to scale properly

Optimizing code, opcode caching, and building PHP apps to scale properly

Published in: Technology
0 Comments
27 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
12,217
On Slideshare
0
From Embeds
0
Number of Embeds
9
Actions
Shares
0
Downloads
369
Comments
0
Likes
27
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • Transcript

    • 1. Scalability in PHP Optimizing your code, and building your apps to scale Ian Selby Senior Web Developer at Aptana www.aptana.com
    • 2. So, how do I … at least how do I do it in PHP? Build a Scalable App?
    • 3. We can optimize in three places:
    • 4. Bad Practices in Coding…
    • 5. Bad Practices in Coding…
    • 6. Bad Practices in Coding…
    • 7. Bad Practices in Coding…
    • 8. Bad Practices in Coding…
    • 9. Good Practices in Coding…
    • 10. Good Practices in Coding…
    • 11. Good Practices in Coding…
    • 12. Good Practices in Coding…
    • 13. Now that my code is optimized, How do I make it run faster?
    • 14. Easy! Use Opcode Caching! Duh!
    • 15. What is opcode caching? Opcode caching optimizes PHP intermediate code and caches data and compiled code from the PHP bytecode compiler in shared memory.
    • 16.  
    • 17. What is opcode caching? Basically, your code is pre-compiled, and then stored in memory. So, it runs faster.
    • 18. APC – Alternative PHP Cache http://pecl.php.net/apc http://php.net/apc
    • 19. But, it gets better… You can actually cache your own data with APC! Let’s take a look at that now…
    • 20. Source code available at gen-x-design.com
    • 21. So, my code is gooder and cached.. What can I do to speed up my database stuff?
    • 22. Speed up your database stuff…
    • 23. Speed up your database stuff…
    • 24. Speed up your database stuff…
    • 25. Cool, my databases are tuned… What kind of infrastructure should I set up?
    • 26. Building a scalable infrastructure
    • 27. Building a scalable infrastructure http://code.google.com/p/netgearman/
    • 28. Building a scalable infrastructure Gearman Client
    • 29. Building a scalable infrastructure Gearman Job
    • 30. Building a scalable infrastructure Gearman Worker
    • 31.  
    • 32. Building a scalable infrastructure http://www.aptana.com/cloud
    • 33. I’ll Show You Now!
    • 34.  
    • 35. That’s It! For more information, and to ask any questions, visit us on the web: www.aptana.com Contact me: ian@aptana.com To download studio, visit www.aptana.com/studio

    ×