Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.
optimize, reduce & cache   Improving Page Speed   With Open Source Tools           March 2010      by Ralf Schwoebel, CEO ...
Who is Ralf?• Started one of the first online Shopping Malls  in Germany 1995• Got into SEO in 2002• Started tradebit.com ...
Focus on speed when SEO is done21.03.12                            3
What makes it slow               Your             Provider                                                                ...
optimize, reduce and cache• Optimize:       improve database, improve                  code, etc.• Reduce:         picture...
Using Open Source tools• Search:        Sphinx (or Lucene)• Cache:         Memcache & Squid• Code:          XCache for PHP...
Embrace the Squid• www.squid-cache.org : free proxy for Lin/Win• Easy to setup, powerful, stable, scalable, fast          ...
Divide and conquer!• Put the statics into cache, lower server load!                 Transparent Proxy with Squid          ...
Go global• Local delivery from the closed hub• Load balancing included, also fail-over                  squid             ...
How much is it?• Example calculation with 8 VPS Installations• Medium VPS: ca. $50 / month = 400US$ / mThink: „main market...
Config for the adminhttp_port                93.189.89.113:80 vhost vportvisible_hostname         es.tradebit.comcache_pee...
Conclusion• A fistful of dollars gives you:      – A global content distribution network      – Increased speed = higher c...
Thank you!For questions:   puzzler@tradebit.comTwitter:         trabitSkype:           tradebit                 Have a gre...
Upcoming SlideShare
Loading in …5
×

Simple Site Speed Improvements (SMX 2010)

951 views

Published on

Here an older presentation from 2010 - the basics are still alright and setting up a squid network on your own is even simpler today than it ever was! We use a form of this optimization on http://www.tradebit.com/ ourselves!

Published in: Technology
  • Be the first to comment

  • Be the first to like this

Simple Site Speed Improvements (SMX 2010)

  1. 1. optimize, reduce & cache Improving Page Speed With Open Source Tools March 2010 by Ralf Schwoebel, CEO www.tradebit.com
  2. 2. Who is Ralf?• Started one of the first online Shopping Malls in Germany 1995• Got into SEO in 2002• Started tradebit.com in 2005 as Tradebit, Inc.• Today: more than 20,000 digital good sellers• Answering more than 5 mio. web requests daily21.03.12 2
  3. 3. Focus on speed when SEO is done21.03.12 3
  4. 4. What makes it slow Your Provider Your Your … …… PotentialCool Site.com ………….. Buyer ………. code (1) The distance of your buyer to the server (2) Your database setup (3) Your programming logic (PHP, Java, etc.) (4) Amount of objects per page requested 21.03.12 4
  5. 5. optimize, reduce and cache• Optimize: improve database, improve code, etc.• Reduce: picture size, objects per page, distance, etc.• Cache: have everything ready for the next request21.03.12 5
  6. 6. Using Open Source tools• Search: Sphinx (or Lucene)• Cache: Memcache & Squid• Code: XCache for PHP21.03.12 6
  7. 7. Embrace the Squid• www.squid-cache.org : free proxy for Lin/Win• Easy to setup, powerful, stable, scalable, fast images Your Wordpress/ vBulletin/ shop + javascript = 20+ reqs .php css21.03.12 7
  8. 8. Divide and conquer!• Put the statics into cache, lower server load! Transparent Proxy with Squid images Your Wordpress/ vBulletin/ javascript etc .php css21.03.12 8
  9. 9. Go global• Local delivery from the closed hub• Load balancing included, also fail-over squid squid Your page images .php javascript css21.03.12 9
  10. 10. How much is it?• Example calculation with 8 VPS Installations• Medium VPS: ca. $50 / month = 400US$ / mThink: „main market and who is far away?“Hosting: California4 US Squids in: TX, NY, MI and FL4 globals in: 1 Europe, 2 Asia, 1 Australia21.03.12 10
  11. 11. Config for the adminhttp_port 93.189.89.113:80 vhost vportvisible_hostname es.tradebit.comcache_peer_access p1 allow httpcache_peer 74.55.216.24 parent 80 0 no-query originserver ....sourcehash monitorurl=http://p1.tradebit.com/livewatch.php name=p1 login=PASS#(add more peers for failover)collapsed_forwarding onrefresh_stale_hit 600 secondsacl all src 0/0http_access allow allcache_mem 256 MBcache_swap_low 90cache_swap_high 95cache_dir ufs /opt/squid 10000 16 256maximum_object_size 2048 KBmaximum_object_size_in_memory 512 KB 21.03.12 11
  12. 12. Conclusion• A fistful of dollars gives you: – A global content distribution network – Increased speed = higher conversions – A security layer between your site and hackers – A fail-over solution to sleep better – Less load on your main servers21.03.12 12
  13. 13. Thank you!For questions: puzzler@tradebit.comTwitter: trabitSkype: tradebit Have a great day! Ralf Schwoebel21.03.12 13

×