Things I learned while running http://www.tradebit.com/ : Very simple steps to get your hardware and system in order for high performance web services. Do more, do more faster. 5 things you can take away from Pubcon Las Vegas 2012.
1. What every webmaster
should know about
code installation
Las Vegas Pubcon 2012
optimization on all levels
Ralf Schwoebel
Tradebit.com
2. Who is talking?
• Started coding with Games in 1986
• Wrote books, created web shops in the 90s
• SEO/affiliate marketeer early 2000s
• Started Tradebit.com as a 1-man band 2004
5. It is holistic
Planning
• Hardware: think SSD, amount of RAM, etc.
• System: OS considerations and software choice
• Connectivity: Security walls can slow you down
• Network: how fast or slow is your uplink
• Customers: where are they
• HTML Coding: how fast are my pages
• Customers: what do they use
• HTML Layout: how well do they convert
• Business process: chargebacks, support
Implementation
6. It is holistic
Fast loading pages:
Tue, http://www.slideshare.net/extremelongusername/simple-site-speed-improvements-smx-2010
3.10pm
PHP Do you REALLY need that mod_?
MySQL INT, not VARCHAR & set INDEX
Apache Remove unneeded modules
OS Remove unneeded packages
Hardware Disable USB, Serial, etc. in BIOS
8. 1: Caching
• A page on your domains consists of many objects
⇒put these objects in an external cache!
• Many config/base code snippets NEVER change
=> activate a code cache (e.g. APC in 10 minutes)
10. 2: Stripping
• Apache comes with MANY(!) extra modules
⇒ Disable what you do not need, now!
• Same for the OS and PHP
11. 3: Cleaning
Eg:
•Compress your style sheets, clean them first
•Create a “trashcan/” and move EVERYTHING
you think is not needed into it
•Revisit old code and think about it
•Test your site thoroughly then!
12. 4: Hunting
1 day of hunting for sloppy code can raise your
revenue by 5% - just with faster pages!
•SQL loops vs. RIGHT/LEFT joins
•Uncompressed images, CSS, nested HTML errors
•Etc. The nested loop
will not see me
coming… har har!
14. 5: Combining
Combine SQL statements to chunks to execute:
UPDATE mytable SET mycol=2 WHERE my2ndcol LIKE ‘%.jpg’
is evil on a cluster!
=> SELECT the INDEX and UPDATE then – e.g.!
15. 5: Combining upper level
Minimize!
(Optimizing Your Site for Contextual Ads,
Thursday, 11.30)
16. Links and tools
• SQUID: super simple reverse proxy
• http://code.google.com/p/modpagespeed/
• SNORT and GUARDIAN: filter script kiddies
• http://mysqltuner.pl/
• SPHINXsearch: Ultra fast full text search
• SOFTLAYER.net : CDN on demand
• https://developers.google.com/speed/pagespeed/
• http://www.hidemyass.com/ (global VPN surfing)