PHP IN THE CLOUD             Juozas “Joe” Kaziukėnas http://juokaz.com / juozas@juokaz.com / @juokaz
WHO IS THIS GUY?  Juozas Kaziukėnas, Lithuanian  You can call me Joe  3 years in Edinburgh, UK  CEO of Web Species Ltd...
CLOUD
SOMEONE’S IMAGINATION?
CAME TO PHP IN 2010*
WHAT CLOUD MEANS“A model for consumption & delivery on theinternet where flexibility is essential & can beguaranteed throug...
ENOUGH OF THIS *CLOUD*
IF YOU TAKE ONE THING      OUT OF THIS     PRESENTATIONWHAT WOULD THAT BE?
CLOUD DRINKING GAME             Every time           someone says           “cloud”, take a               drink
LAYERSIaaS PaaSSaaS
IAAS VS PAAS Multiple apps per instance    One app per instance Freedom to configure          Pre-configured system U...
WHY WOULD I WANT    THAT?
YOU WANT THIS BECAUSE Abstraction Flexibility Agile Scale: vertical or horizontal It sells nowadays
ZYNGA CASE
CLOUD READY APP Any app deployed to the cloud – not really what cloud is for Cloud can be just a host, but it’s more If...
CLOUDS Amazon EC2 Microsoft Windows Azure Rackspace Gazillion more
CLOUDS Custom setup Learning curve Unmanaged cloud Can take a lot of hoops
SETTING SERVERS UP ISNOT EASY    YOUR BUSINESS IS TO           CREATE APPS
This talkis about  PaaS
PHP COMMUNITY MOVING We decided to create our own clouds On top of existing platforms Optimized and made easier for PHP...
PHP CLOUDS
PHP CLOUDS Similar approaches Deploy from Git/SVN or push Very simple to deploy Cheap to run Out of the box support f...
HOW IT WORKS
LET’S DEPLOYSo you want to deploy to a   cloud…
LET’S DEPLOY If internet works Simple PHP app deployed to     • Orchestra     • Azure+ This is so cool
AZURE+                  V S.   ORCHESTRA Runs on Windows Azure          Runs on Amazon EC2 Microsoft SQL server        ...
HARDCORE DEPLOY ACTI ON
PRETTY MUCH ANY APPWILL WORK, UNLESS…
YOUR APP SHOULD BE… Don’t use local disk/storage     • Sessions     • Files Don’t expect things to exist Latency betwee...
SHARE NOTHING Makes horizontal scaling impossible State stored between server Application files in network drive
MUCH MORE EASIER If you use a framework     • Stops you from doing stupid things Abstract database interactions     • Us...
LEVERAGE SERVICES API wrappers and SDK available in PHP Store files in CDN Use cloud databases Manage the service Aut...
DEPLOY I like to push code Deploy branch in a repository is fine too Use automated scripts     • Preconfigure apps     ...
UNHAPPY CLOUD
CAN BE DOWN“A lightning strike in Dublin, Ireland knockedAmazons European cloud services offline Sundayand some customers ...
CAN BE DOWN“Sites across the U.S. went offline for up to 12 hoursyesterday as Amazons northern Virginia data centrewas hit...
CAN BE DOWN“During a routine operating system upgrade onFriday (March 13th), the deployment service withinWindows Azure be...
UNHAPPY CLOUD It’s not magically reliable It can be less reliable than on-premises server      • Need multiple instances...
CONCLUSION Make a choice IaaS vs PaaS Try out PaaS just for fun (doesn’t cost anything) Write your apps correctly Scale
THANK YOU!Keep in touch http://juokaz.com juozas@juokaz.com twitter: @juokaz                      Rate at http://joind...
PHP in the Cloud - PHP Barcelona
PHP in the Cloud - PHP Barcelona
Upcoming SlideShare
Loading in...5
×

PHP in the Cloud - PHP Barcelona

6,066

Published on

Published in: Technology
0 Comments
1 Like
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
6,066
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
32
Comments
0
Likes
1
Embeds 0
No embeds

No notes for slide

PHP in the Cloud - PHP Barcelona

  1. 1. PHP IN THE CLOUD Juozas “Joe” Kaziukėnas http://juokaz.com / juozas@juokaz.com / @juokaz
  2. 2. WHO IS THIS GUY?  Juozas Kaziukėnas, Lithuanian  You can call me Joe  3 years in Edinburgh, UK  CEO of Web Species Ltd  Occasional open source developer  Conferences speaker  More info in http://juokaz.com Tweet me @juokaz
  3. 3. CLOUD
  4. 4. SOMEONE’S IMAGINATION?
  5. 5. CAME TO PHP IN 2010*
  6. 6. WHAT CLOUD MEANS“A model for consumption & delivery on theinternet where flexibility is essential & can beguaranteed through abstraction” – Thijs Feryn
  7. 7. ENOUGH OF THIS *CLOUD*
  8. 8. IF YOU TAKE ONE THING OUT OF THIS PRESENTATIONWHAT WOULD THAT BE?
  9. 9. CLOUD DRINKING GAME Every time someone says “cloud”, take a drink
  10. 10. LAYERSIaaS PaaSSaaS
  11. 11. IAAS VS PAAS Multiple apps per instance  One app per instance Freedom to configure  Pre-configured system Unmanaged  Managed Learning steps  Out of the box Hybrid cloud  Super cool
  12. 12. WHY WOULD I WANT THAT?
  13. 13. YOU WANT THIS BECAUSE Abstraction Flexibility Agile Scale: vertical or horizontal It sells nowadays
  14. 14. ZYNGA CASE
  15. 15. CLOUD READY APP Any app deployed to the cloud – not really what cloud is for Cloud can be just a host, but it’s more If you don’t need elasticity… Use surrounding services • Storage • Database • Queues • Etc.
  16. 16. CLOUDS Amazon EC2 Microsoft Windows Azure Rackspace Gazillion more
  17. 17. CLOUDS Custom setup Learning curve Unmanaged cloud Can take a lot of hoops
  18. 18. SETTING SERVERS UP ISNOT EASY YOUR BUSINESS IS TO CREATE APPS
  19. 19. This talkis about PaaS
  20. 20. PHP COMMUNITY MOVING We decided to create our own clouds On top of existing platforms Optimized and made easier for PHP developers We know how to make PHP work well Community support
  21. 21. PHP CLOUDS
  22. 22. PHP CLOUDS Similar approaches Deploy from Git/SVN or push Very simple to deploy Cheap to run Out of the box support for tools and frameworks Horizontal scaling
  23. 23. HOW IT WORKS
  24. 24. LET’S DEPLOYSo you want to deploy to a cloud…
  25. 25. LET’S DEPLOY If internet works Simple PHP app deployed to • Orchestra • Azure+ This is so cool
  26. 26. AZURE+ V S. ORCHESTRA Runs on Windows Azure  Runs on Amazon EC2 Microsoft SQL server  Mysql, MongoDB etc. Deploy from GIT or push  Deploy from GIT Choose PHP version  PHP 5.3 (custom) In development  Stable
  27. 27. HARDCORE DEPLOY ACTI ON
  28. 28. PRETTY MUCH ANY APPWILL WORK, UNLESS…
  29. 29. YOUR APP SHOULD BE… Don’t use local disk/storage • Sessions • Files Don’t expect things to exist Latency between servers Shared state Abstract enough, no direct calls
  30. 30. SHARE NOTHING Makes horizontal scaling impossible State stored between server Application files in network drive
  31. 31. MUCH MORE EASIER If you use a framework • Stops you from doing stupid things Abstract database interactions • Using ORM Don’t try to do things with PHP which are not meant to be done
  32. 32. LEVERAGE SERVICES API wrappers and SDK available in PHP Store files in CDN Use cloud databases Manage the service Automate
  33. 33. DEPLOY I like to push code Deploy branch in a repository is fine too Use automated scripts • Preconfigure apps • You don’t get access to PaaS servers Forget about FTP
  34. 34. UNHAPPY CLOUD
  35. 35. CAN BE DOWN“A lightning strike in Dublin, Ireland knockedAmazons European cloud services offline Sundayand some customers were expected to be down forup to two days” – Information Week
  36. 36. CAN BE DOWN“Sites across the U.S. went offline for up to 12 hoursyesterday as Amazons northern Virginia data centrewas hit by a series of outages” – Daily Mail
  37. 37. CAN BE DOWN“During a routine operating system upgrade onFriday (March 13th), the deployment service withinWindows Azure began to slow down due tonetworking issues. This caused a large number ofservers to time out and fail” – MSDN blog
  38. 38. UNHAPPY CLOUD It’s not magically reliable It can be less reliable than on-premises server • Need multiple instances • Load balancer Deploy across data centers Hybrid cloud, again
  39. 39. CONCLUSION Make a choice IaaS vs PaaS Try out PaaS just for fun (doesn’t cost anything) Write your apps correctly Scale
  40. 40. THANK YOU!Keep in touch http://juokaz.com juozas@juokaz.com twitter: @juokaz Rate at http://joind.in/4317
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×